3 instantiations of FormattedClassification
Microsoft.AspNetCore.App.Analyzers.Test (3)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (1)
16
=> new
FormattedClassification
(text, typeName);
RouteEmbeddedLanguage\RoutePatternClassifierTests.cs (2)
33
var actualFormatted = actualOrdered.Select(a => new
FormattedClassification
(rewrittenCode.Substring(a.TextSpan.Start, a.TextSpan.Length), a.ClassificationType)).ToArray();
156
private static FormattedClassification Parameter(string name) => new
FormattedClassification
(name, "json - object");
61 references to FormattedClassification
Microsoft.AspNetCore.App.Analyzers.Test (61)
RouteEmbeddedLanguage\Infrastructure\FormattedClassification.cs (1)
27
if (obj is
FormattedClassification
other)
RouteEmbeddedLanguage\Infrastructure\FormattedClassifications.cs (49)
15
private static
FormattedClassification
New(string text, string typeName)
19
public static
FormattedClassification
Struct(string text)
23
public static
FormattedClassification
Enum(string text)
27
public static
FormattedClassification
Interface(string text)
31
public static
FormattedClassification
Class(string text)
35
public static
FormattedClassification
Record(string text)
39
public static
FormattedClassification
RecordStruct(string text)
43
public static
FormattedClassification
Delegate(string text)
47
public static
FormattedClassification
TypeParameter(string text)
51
public static
FormattedClassification
Namespace(string text)
55
public static
FormattedClassification
Label(string text)
59
public static
FormattedClassification
Field(string text)
63
public static
FormattedClassification
EnumMember(string text)
67
public static
FormattedClassification
Constant(string text)
71
public static
FormattedClassification
Local(string text)
75
public static
FormattedClassification
Parameter(string text)
79
public static
FormattedClassification
Method(string text)
83
public static
FormattedClassification
ExtensionMethod(string text)
87
public static
FormattedClassification
Property(string text)
91
public static
FormattedClassification
Event(string text)
95
public static
FormattedClassification
Static(string text)
99
public static
FormattedClassification
String(string text)
103
public static
FormattedClassification
Verbatim(string text)
107
public static
FormattedClassification
Escape(string text)
111
public static
FormattedClassification
Keyword(string text)
115
public static
FormattedClassification
PunctuationText(string text)
119
public static
FormattedClassification
ControlKeyword(string text)
123
public static
FormattedClassification
WhiteSpace(string text)
127
public static
FormattedClassification
Text(string text)
131
public static
FormattedClassification
NumericLiteral(string text)
135
public static
FormattedClassification
PPKeyword(string text)
139
public static
FormattedClassification
PPText(string text)
143
public static
FormattedClassification
Identifier(string text)
147
public static
FormattedClassification
Inactive(string text)
151
public static
FormattedClassification
Comment(string text)
155
public static
FormattedClassification
Number(string text)
158
public static
FormattedClassification
LineContinuation { get; }
162
public static
FormattedClassification
Module(string text)
166
public static
FormattedClassification
VBXmlName(string text)
170
public static
FormattedClassification
VBXmlText(string text)
174
public static
FormattedClassification
VBXmlProcessingInstruction(string text)
178
public static
FormattedClassification
VBXmlEmbeddedExpression(string text)
182
public static
FormattedClassification
VBXmlDelimiter(string text)
186
public static
FormattedClassification
VBXmlComment(string text)
190
public static
FormattedClassification
VBXmlCDataSection(string text)
194
public static
FormattedClassification
VBXmlAttributeValue(string text)
198
public static
FormattedClassification
VBXmlAttributeQuotes(string text)
202
public static
FormattedClassification
VBXmlAttributeName(string text)
206
public static
FormattedClassification
VBXmlEntityReference(string text)
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);
RouteEmbeddedLanguage\RoutePatternClassifierTests.cs (2)
26
params
FormattedClassification
[] expected)
156
private static
FormattedClassification
Parameter(string name) => new FormattedClassification(name, "json - object");