57 references to New
Microsoft.AspNetCore.App.Analyzers.Test (57)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (48)
20
=>
New
(text, ClassificationTypeNames.StructName);
24
=>
New
(text, ClassificationTypeNames.EnumName);
28
=>
New
(text, ClassificationTypeNames.InterfaceName);
32
=>
New
(text, ClassificationTypeNames.ClassName);
36
=>
New
(text, ClassificationTypeNames.RecordClassName);
40
=>
New
(text, ClassificationTypeNames.RecordStructName);
44
=>
New
(text, ClassificationTypeNames.DelegateName);
48
=>
New
(text, ClassificationTypeNames.TypeParameterName);
52
=>
New
(text, ClassificationTypeNames.NamespaceName);
56
=>
New
(text, ClassificationTypeNames.LabelName);
60
=>
New
(text, ClassificationTypeNames.FieldName);
64
=>
New
(text, ClassificationTypeNames.EnumMemberName);
68
=>
New
(text, ClassificationTypeNames.ConstantName);
72
=>
New
(text, ClassificationTypeNames.LocalName);
76
=>
New
(text, ClassificationTypeNames.ParameterName);
80
=>
New
(text, ClassificationTypeNames.MethodName);
84
=>
New
(text, ClassificationTypeNames.ExtensionMethodName);
88
=>
New
(text, ClassificationTypeNames.PropertyName);
92
=>
New
(text, ClassificationTypeNames.EventName);
96
=>
New
(text, ClassificationTypeNames.StaticSymbol);
100
=>
New
(text, ClassificationTypeNames.StringLiteral);
104
=>
New
(text, ClassificationTypeNames.VerbatimStringLiteral);
108
=>
New
(text, ClassificationTypeNames.StringEscapeCharacter);
112
=>
New
(text, ClassificationTypeNames.Keyword);
116
=>
New
(text, ClassificationTypeNames.Punctuation);
120
=>
New
(text, ClassificationTypeNames.ControlKeyword);
124
=>
New
(text, ClassificationTypeNames.WhiteSpace);
128
=>
New
(text, ClassificationTypeNames.Text);
132
=>
New
(text, ClassificationTypeNames.NumericLiteral);
136
=>
New
(text, ClassificationTypeNames.PreprocessorKeyword);
140
=>
New
(text, ClassificationTypeNames.PreprocessorText);
144
=>
New
(text, ClassificationTypeNames.Identifier);
148
=>
New
(text, ClassificationTypeNames.ExcludedCode);
152
=>
New
(text, ClassificationTypeNames.Comment);
156
=>
New
(text, ClassificationTypeNames.NumericLiteral);
159
=
New
("_", ClassificationTypeNames.Punctuation);
163
=>
New
(text, ClassificationTypeNames.ModuleName);
167
=>
New
(text, ClassificationTypeNames.XmlLiteralName);
171
=>
New
(text, ClassificationTypeNames.XmlLiteralText);
175
=>
New
(text, ClassificationTypeNames.XmlLiteralProcessingInstruction);
179
=>
New
(text, ClassificationTypeNames.XmlLiteralEmbeddedExpression);
183
=>
New
(text, ClassificationTypeNames.XmlLiteralDelimiter);
187
=>
New
(text, ClassificationTypeNames.XmlLiteralComment);
191
=>
New
(text, ClassificationTypeNames.XmlLiteralCDataSection);
195
=>
New
(text, ClassificationTypeNames.XmlLiteralAttributeValue);
199
=>
New
(text, ClassificationTypeNames.XmlLiteralAttributeQuotes);
203
=>
New
(text, ClassificationTypeNames.XmlLiteralAttributeName);
207
=>
New
(text, ClassificationTypeNames.XmlLiteralEntityReference);
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.Regex.cs (9)
16
public static FormattedClassification Anchor(string value) =>
New
(value, ClassificationTypeNames.RegexAnchor);
19
public static FormattedClassification Grouping(string value) =>
New
(value, ClassificationTypeNames.RegexGrouping);
22
public static FormattedClassification OtherEscape(string value) =>
New
(value, ClassificationTypeNames.RegexOtherEscape);
25
public static FormattedClassification SelfEscapedCharacter(string value) =>
New
(value, ClassificationTypeNames.RegexSelfEscapedCharacter);
28
public static FormattedClassification Alternation(string value) =>
New
(value, ClassificationTypeNames.RegexAlternation);
31
public static FormattedClassification CharacterClass(string value) =>
New
(value, ClassificationTypeNames.RegexCharacterClass);
34
public static FormattedClassification Text(string value) =>
New
(value, ClassificationTypeNames.RegexText);
37
public static FormattedClassification Quantifier(string value) =>
New
(value, ClassificationTypeNames.RegexQuantifier);
40
public static FormattedClassification Comment(string value) =>
New
(value, ClassificationTypeNames.RegexComment);