81 references to New
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (81)
Classification\FormattedClassifications.cs (51)
19=> New(text, ClassificationTypeNames.StructName); 23=> New(text, ClassificationTypeNames.EnumName); 27=> New(text, ClassificationTypeNames.InterfaceName); 31=> New(text, ClassificationTypeNames.ClassName); 35=> New(text, ClassificationTypeNames.RecordClassName); 39=> New(text, ClassificationTypeNames.RecordStructName); 43=> New(text, ClassificationTypeNames.DelegateName); 47=> New(text, ClassificationTypeNames.TypeParameterName); 51=> New(text, ClassificationTypeNames.NamespaceName); 55=> New(text, ClassificationTypeNames.LabelName); 59=> New(text, ClassificationTypeNames.FieldName); 63=> New(text, ClassificationTypeNames.EnumMemberName); 67=> New(text, ClassificationTypeNames.ConstantName); 71=> New(text, ClassificationTypeNames.LocalName); 75=> New(text, ClassificationTypeNames.ParameterName); 79=> New(text, ClassificationTypeNames.MethodName); 83=> New(text, ClassificationTypeNames.ExtensionMethodName); 87=> New(text, ClassificationTypeNames.PropertyName); 91=> New(text, ClassificationTypeNames.EventName); 95=> New(text, ClassificationTypeNames.ObsoleteSymbol); 99=> New(text, ClassificationTypeNames.StaticSymbol); 103=> New(text, ClassificationTypeNames.StringLiteral); 107=> New(text, ClassificationTypeNames.VerbatimStringLiteral); 111=> New(text, ClassificationTypeNames.StringEscapeCharacter); 115=> New(text, ClassificationTypeNames.Keyword); 119=> New(text, ClassificationTypeNames.Punctuation); 123=> New(text, ClassificationTypeNames.ControlKeyword); 127=> New(text, ClassificationTypeNames.WhiteSpace); 131=> New(text, ClassificationTypeNames.Text); 135=> New(text, ClassificationTypeNames.NumericLiteral); 139=> New(text, ClassificationTypeNames.PreprocessorKeyword); 143=> New(text, ClassificationTypeNames.PreprocessorText); 147=> New(text, ClassificationTypeNames.Identifier); 151=> New(text, ClassificationTypeNames.ExcludedCode); 155=> New(text, ClassificationTypeNames.Comment); 159=> New(text, ClassificationTypeNames.NumericLiteral); 162= New("_", ClassificationTypeNames.Punctuation); 166=> New(text, ClassificationTypeNames.ModuleName); 170=> New(text, ClassificationTypeNames.XmlLiteralName); 174=> New(text, ClassificationTypeNames.XmlLiteralText); 178=> New(text, ClassificationTypeNames.XmlLiteralProcessingInstruction); 182=> New(text, ClassificationTypeNames.XmlLiteralEmbeddedExpression); 186=> New(text, ClassificationTypeNames.XmlLiteralDelimiter); 190=> New(text, ClassificationTypeNames.XmlLiteralComment); 194=> New(text, ClassificationTypeNames.XmlLiteralCDataSection); 198=> New(text, ClassificationTypeNames.XmlLiteralAttributeValue); 202=> New(text, ClassificationTypeNames.XmlLiteralAttributeQuotes); 206=> New(text, ClassificationTypeNames.XmlLiteralAttributeName); 210=> New(text, ClassificationTypeNames.XmlLiteralEntityReference); 214=> New(text, ClassificationTypeNames.TestCode); 218=> New(text, ClassificationTypeNames.TestCodeMarkdown);
Classification\FormattedClassifications.Json.cs (11)
15public static FormattedClassification Array(string value) => New(value, ClassificationTypeNames.JsonArray); 18public static FormattedClassification Object(string value) => New(value, ClassificationTypeNames.JsonObject); 21public static FormattedClassification PropertyName(string value) => New(value, ClassificationTypeNames.JsonPropertyName); 24public static FormattedClassification Punctuation(string value) => New(value, ClassificationTypeNames.JsonPunctuation); 27public static FormattedClassification Number(string value) => New(value, ClassificationTypeNames.JsonNumber); 30public static FormattedClassification Operator(string value) => New(value, ClassificationTypeNames.JsonOperator); 33public static FormattedClassification Keyword(string value) => New(value, ClassificationTypeNames.JsonKeyword); 36public static FormattedClassification ConstructorName(string value) => New(value, ClassificationTypeNames.JsonConstructorName); 39public static FormattedClassification Comment(string value) => New(value, ClassificationTypeNames.JsonComment); 42public static FormattedClassification Text(string value) => New(value, ClassificationTypeNames.JsonText); 45public static FormattedClassification String(string value) => New(value, ClassificationTypeNames.JsonString);
Classification\FormattedClassifications.Regex.cs (9)
15public static FormattedClassification Anchor(string value) => New(value, ClassificationTypeNames.RegexAnchor); 18public static FormattedClassification Grouping(string value) => New(value, ClassificationTypeNames.RegexGrouping); 21public static FormattedClassification OtherEscape(string value) => New(value, ClassificationTypeNames.RegexOtherEscape); 24public static FormattedClassification SelfEscapedCharacter(string value) => New(value, ClassificationTypeNames.RegexSelfEscapedCharacter); 27public static FormattedClassification Alternation(string value) => New(value, ClassificationTypeNames.RegexAlternation); 30public static FormattedClassification CharacterClass(string value) => New(value, ClassificationTypeNames.RegexCharacterClass); 33public static FormattedClassification Text(string value) => New(value, ClassificationTypeNames.RegexText); 36public static FormattedClassification Quantifier(string value) => New(value, ClassificationTypeNames.RegexQuantifier); 39public static FormattedClassification Comment(string value) => New(value, ClassificationTypeNames.RegexComment);
Classification\FormattedClassifications.XmlDoc.cs (10)
18=> New(text, ClassificationTypeNames.XmlDocCommentAttributeName); 22=> New(text, ClassificationTypeNames.XmlDocCommentAttributeQuotes); 26=> New(text, ClassificationTypeNames.XmlDocCommentAttributeValue); 30=> New(text, ClassificationTypeNames.XmlDocCommentCDataSection); 34=> New(text, ClassificationTypeNames.XmlDocCommentComment); 38=> New(text, ClassificationTypeNames.XmlDocCommentDelimiter); 42=> New(text, ClassificationTypeNames.XmlDocCommentEntityReference); 46=> New(text, ClassificationTypeNames.XmlDocCommentName); 50=> New(text, ClassificationTypeNames.XmlDocCommentProcessingInstruction); 54=> New(text, ClassificationTypeNames.XmlDocCommentText);