4 instantiations of FormattedClassification
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Classification\FormattedClassifications.cs (1)
15
=> new
FormattedClassification
(text, typeName);
Classification\FormattedClassifications.Operators.cs (1)
18
=> new
FormattedClassification
(text, ClassificationTypeNames.Operator);
Classification\FormattedClassifications.OverloadedOperators.cs (1)
18
=> new
FormattedClassification
(text, ClassificationTypeNames.OperatorOverloaded);
Classification\FormattedClassifications.Punctuation.cs (1)
18
=> new
FormattedClassification
(text, ClassificationTypeNames.Punctuation);
221 references to FormattedClassification
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Classification\AbstractCSharpClassifierTests.cs (1)
23
protected override async Task DefaultTestAsync(string code, string allCode, TestHost testHost,
FormattedClassification
[] expected)
Classification\SemanticClassifierTests.cs (1)
45
params
FormattedClassification
[] expected)
Classification\SemanticClassifierTests_TestMarkup.cs (2)
36
params
FormattedClassification
[] expected)
60
FormattedClassification
[] expected)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (217)
Classification\AbstractClassifierTests.cs (23)
34
protected abstract Task DefaultTestAsync(string code, string allCode, TestHost testHost,
FormattedClassification
[] expected);
41
params
FormattedClassification
[] expected)
76
params
FormattedClassification
[] expected)
88
params
FormattedClassification
[] expected)
96
params
FormattedClassification
[] expected)
105
params
FormattedClassification
[] expected)
114
params
FormattedClassification
[] expected)
124
params
FormattedClassification
[] expected)
135
params
FormattedClassification
[] expected)
146
params
FormattedClassification
[] expected)
154
params
FormattedClassification
[] expected)
162
params
FormattedClassification
[] expected)
173
params
FormattedClassification
[] expected)
186
params
FormattedClassification
[] expected)
198
params
FormattedClassification
[] expected)
210
params
FormattedClassification
[] expected)
219
params
FormattedClassification
[] expected)
228
params
FormattedClassification
[] expected)
236
params
FormattedClassification
[] expected)
245
params
FormattedClassification
[] expected)
255
params
FormattedClassification
[] expected)
263
protected static
FormattedClassification
[] Classifications(params
FormattedClassification
[] expected) => expected;
Classification\ClassificationTestHelper.cs (4)
18
private static string GetText(
FormattedClassification
formattedClassification)
26
IEnumerable<
FormattedClassification
> expectedClassifications,
52
var
expected = expectedClassificationList[i];
63
IEnumerable<
FormattedClassification
> expectedClassifications,
Classification\FormattedClassification.cs (1)
35
if (obj is
FormattedClassification
other)
Classification\FormattedClassifications.cs (52)
14
private static
FormattedClassification
New(string text, string typeName)
18
public static
FormattedClassification
Struct(string text)
22
public static
FormattedClassification
Enum(string text)
26
public static
FormattedClassification
Interface(string text)
30
public static
FormattedClassification
Class(string text)
34
public static
FormattedClassification
RecordClass(string text)
38
public static
FormattedClassification
RecordStruct(string text)
42
public static
FormattedClassification
Delegate(string text)
46
public static
FormattedClassification
TypeParameter(string text)
50
public static
FormattedClassification
Namespace(string text)
54
public static
FormattedClassification
Label(string text)
58
public static
FormattedClassification
Field(string text)
62
public static
FormattedClassification
EnumMember(string text)
66
public static
FormattedClassification
Constant(string text)
70
public static
FormattedClassification
Local(string text)
74
public static
FormattedClassification
Parameter(string text)
78
public static
FormattedClassification
Method(string text)
82
public static
FormattedClassification
ExtensionMethod(string text)
86
public static
FormattedClassification
Property(string text)
90
public static
FormattedClassification
Event(string text)
94
public static
FormattedClassification
Obsolete(string text)
98
public static
FormattedClassification
Static(string text)
102
public static
FormattedClassification
String(string text)
106
public static
FormattedClassification
Verbatim(string text)
110
public static
FormattedClassification
Escape(string text)
114
public static
FormattedClassification
Keyword(string text)
118
public static
FormattedClassification
PunctuationText(string text)
122
public static
FormattedClassification
ControlKeyword(string text)
126
public static
FormattedClassification
WhiteSpace(string text)
130
public static
FormattedClassification
Text(string text)
134
public static
FormattedClassification
NumericLiteral(string text)
138
public static
FormattedClassification
PPKeyword(string text)
142
public static
FormattedClassification
PPText(string text)
146
public static
FormattedClassification
Identifier(string text)
150
public static
FormattedClassification
Inactive(string text)
154
public static
FormattedClassification
Comment(string text)
158
public static
FormattedClassification
Number(string text)
161
public static
FormattedClassification
LineContinuation { get; }
165
public static
FormattedClassification
Module(string text)
169
public static
FormattedClassification
VBXmlName(string text)
173
public static
FormattedClassification
VBXmlText(string text)
177
public static
FormattedClassification
VBXmlProcessingInstruction(string text)
181
public static
FormattedClassification
VBXmlEmbeddedExpression(string text)
185
public static
FormattedClassification
VBXmlDelimiter(string text)
189
public static
FormattedClassification
VBXmlComment(string text)
193
public static
FormattedClassification
VBXmlCDataSection(string text)
197
public static
FormattedClassification
VBXmlAttributeValue(string text)
201
public static
FormattedClassification
VBXmlAttributeQuotes(string text)
205
public static
FormattedClassification
VBXmlAttributeName(string text)
209
public static
FormattedClassification
VBXmlEntityReference(string text)
213
public static
FormattedClassification
TestCode(string text)
217
public static
FormattedClassification
TestCodeMarkdown(string text)
Classification\FormattedClassifications.Json.cs (11)
15
public static
FormattedClassification
Array(string value) => New(value, ClassificationTypeNames.JsonArray);
18
public static
FormattedClassification
Object(string value) => New(value, ClassificationTypeNames.JsonObject);
21
public static
FormattedClassification
PropertyName(string value) => New(value, ClassificationTypeNames.JsonPropertyName);
24
public static
FormattedClassification
Punctuation(string value) => New(value, ClassificationTypeNames.JsonPunctuation);
27
public static
FormattedClassification
Number(string value) => New(value, ClassificationTypeNames.JsonNumber);
30
public static
FormattedClassification
Operator(string value) => New(value, ClassificationTypeNames.JsonOperator);
33
public static
FormattedClassification
Keyword(string value) => New(value, ClassificationTypeNames.JsonKeyword);
36
public static
FormattedClassification
ConstructorName(string value) => New(value, ClassificationTypeNames.JsonConstructorName);
39
public static
FormattedClassification
Comment(string value) => New(value, ClassificationTypeNames.JsonComment);
42
public static
FormattedClassification
Text(string value) => New(value, ClassificationTypeNames.JsonText);
45
public static
FormattedClassification
String(string value) => New(value, ClassificationTypeNames.JsonString);
Classification\FormattedClassifications.Operators.cs (45)
17
private static
FormattedClassification
New(string text)
20
public static
FormattedClassification
Ampersand { get; } = New("&");
21
public static
FormattedClassification
AmpersandAmpersand { get; } = New("&&");
22
public static
FormattedClassification
AmpersandEquals { get; } = New("&=");
23
public static
FormattedClassification
Asterisk { get; } = New("*");
24
public static
FormattedClassification
AsteriskEquals { get; } = New("*=");
25
public static
FormattedClassification
Bar { get; } = New("|");
26
public static
FormattedClassification
BarBar { get; } = New("||");
27
public static
FormattedClassification
BarEquals { get; } = New("|=");
28
public static
FormattedClassification
Caret { get; } = New("^");
29
public static
FormattedClassification
CaretEquals { get; } = New("^=");
30
public static
FormattedClassification
Colon { get; } = New(":");
31
public static
FormattedClassification
ColonColon { get; } = New("::");
32
public static
FormattedClassification
ColonEquals { get; } = New(":=");
33
public static
FormattedClassification
Dot { get; } = New(".");
34
public static new
FormattedClassification
Equals { get; } = New("=");
35
public static
FormattedClassification
EqualsEquals { get; } = New("==");
36
public static
FormattedClassification
EqualsGreaterThan { get; } = New("=>");
37
public static
FormattedClassification
Exclamation { get; } = New("!");
38
public static
FormattedClassification
ExclamationEquals { get; } = New("!=");
39
public static
FormattedClassification
GreaterThan { get; } = New(">");
40
public static
FormattedClassification
GreaterThanEquals { get; } = New(">=");
41
public static
FormattedClassification
GreaterThanGreaterThan { get; } = New(">>");
42
public static
FormattedClassification
GreaterThanGreaterThanGreaterThan { get; } = New(">>>");
43
public static
FormattedClassification
GreaterThanGreaterThanEquals { get; } = New(">>=");
44
public static
FormattedClassification
GreaterThanGreaterThanGreaterThanEquals { get; } = New(">>>=");
45
public static
FormattedClassification
LessThan { get; } = New("<");
46
public static
FormattedClassification
LessThanEquals { get; } = New("<=");
47
public static
FormattedClassification
LessThanGreaterThan { get; } = New("<>");
48
public static
FormattedClassification
LessThanLessThan { get; } = New("<<");
49
public static
FormattedClassification
LessThanLessThanEquals { get; } = New("<<=");
50
public static
FormattedClassification
Minus { get; } = New("-");
51
public static
FormattedClassification
MinusEquals { get; } = New("-=");
52
public static
FormattedClassification
MinusGreaterThan { get; } = New("->");
53
public static
FormattedClassification
MinusMinus { get; } = New("--");
54
public static
FormattedClassification
Percent { get; } = New("%");
55
public static
FormattedClassification
PercentEquals { get; } = New("%=");
56
public static
FormattedClassification
Plus { get; } = New("+");
57
public static
FormattedClassification
PlusEquals { get; } = New("+=");
58
public static
FormattedClassification
PlusPlus { get; } = New("++");
59
public static
FormattedClassification
QuestionMark { get; } = New("?");
60
public static
FormattedClassification
QuestionQuestionEquals { get; } = New("??=");
61
public static
FormattedClassification
Slash { get; } = New("/");
62
public static
FormattedClassification
SlashEquals { get; } = New("/=");
63
public static
FormattedClassification
Tilde { get; } = New("~");
Classification\FormattedClassifications.OverloadedOperators.cs (35)
17
private static
FormattedClassification
New(string text)
20
public static
FormattedClassification
Ampersand { get; } = New("&");
21
public static
FormattedClassification
AmpersandEquals { get; } = New("&=");
22
public static
FormattedClassification
Asterisk { get; } = New("*");
23
public static
FormattedClassification
AsteriskEquals { get; } = New("*=");
24
public static
FormattedClassification
Bar { get; } = New("|");
25
public static
FormattedClassification
BarEquals { get; } = New("|=");
26
public static
FormattedClassification
Caret { get; } = New("^");
27
public static
FormattedClassification
CaretEquals { get; } = New("^=");
28
public static
FormattedClassification
ColonEquals { get; } = New(":=");
29
public static
FormattedClassification
EqualsEquals { get; } = New("==");
30
public static
FormattedClassification
Exclamation { get; } = New("!");
31
public static
FormattedClassification
ExclamationEquals { get; } = New("!=");
32
public static
FormattedClassification
GreaterThan { get; } = New(">");
33
public static
FormattedClassification
GreaterThanEquals { get; } = New(">=");
34
public static
FormattedClassification
GreaterThanGreaterThan { get; } = New(">>");
35
public static
FormattedClassification
GreaterThanGreaterThanGreaterThan { get; } = New(">>>");
36
public static
FormattedClassification
GreaterThanGreaterThanEquals { get; } = New(">>=");
37
public static
FormattedClassification
GreaterThanGreaterThanGreaterThanEquals { get; } = New(">>>=");
38
public static
FormattedClassification
LessThan { get; } = New("<");
39
public static
FormattedClassification
LessThanEquals { get; } = New("<=");
40
public static
FormattedClassification
LessThanGreaterThan { get; } = New("<>");
41
public static
FormattedClassification
LessThanLessThan { get; } = New("<<");
42
public static
FormattedClassification
LessThanLessThanEquals { get; } = New("<<=");
43
public static
FormattedClassification
Minus { get; } = New("-");
44
public static
FormattedClassification
MinusEquals { get; } = New("-=");
45
public static
FormattedClassification
MinusMinus { get; } = New("--");
46
public static
FormattedClassification
Percent { get; } = New("%");
47
public static
FormattedClassification
PercentEquals { get; } = New("%=");
48
public static
FormattedClassification
Plus { get; } = New("+");
49
public static
FormattedClassification
PlusEquals { get; } = New("+=");
50
public static
FormattedClassification
PlusPlus { get; } = New("++");
51
public static
FormattedClassification
Slash { get; } = New("/");
52
public static
FormattedClassification
SlashEquals { get; } = New("/=");
53
public static
FormattedClassification
Tilde { get; } = New("~");
Classification\FormattedClassifications.Punctuation.cs (14)
17
private static
FormattedClassification
New(string text)
20
public static
FormattedClassification
OpenCurly { get; } = New("{");
21
public static
FormattedClassification
CloseCurly { get; } = New("}");
22
public static
FormattedClassification
OpenParen { get; } = New("(");
23
public static
FormattedClassification
CloseParen { get; } = New(")");
24
public static
FormattedClassification
OpenAngle { get; } = New("<");
25
public static
FormattedClassification
CloseAngle { get; } = New(">");
26
public static
FormattedClassification
OpenBracket { get; } = New("[");
27
public static
FormattedClassification
CloseBracket { get; } = New("]");
28
public static
FormattedClassification
Comma { get; } = New(",");
29
public static
FormattedClassification
Semicolon { get; } = New(";");
30
public static
FormattedClassification
Colon { get; } = New(":");
31
public static
FormattedClassification
DotDot { get; } = New("..");
34
public static
FormattedClassification
Text(string text) => New(text);
Classification\FormattedClassifications.Regex.cs (9)
15
public static
FormattedClassification
Anchor(string value) => New(value, ClassificationTypeNames.RegexAnchor);
18
public static
FormattedClassification
Grouping(string value) => New(value, ClassificationTypeNames.RegexGrouping);
21
public static
FormattedClassification
OtherEscape(string value) => New(value, ClassificationTypeNames.RegexOtherEscape);
24
public static
FormattedClassification
SelfEscapedCharacter(string value) => New(value, ClassificationTypeNames.RegexSelfEscapedCharacter);
27
public static
FormattedClassification
Alternation(string value) => New(value, ClassificationTypeNames.RegexAlternation);
30
public static
FormattedClassification
CharacterClass(string value) => New(value, ClassificationTypeNames.RegexCharacterClass);
33
public static
FormattedClassification
Text(string value) => New(value, ClassificationTypeNames.RegexText);
36
public static
FormattedClassification
Quantifier(string value) => New(value, ClassificationTypeNames.RegexQuantifier);
39
public static
FormattedClassification
Comment(string value) => New(value, ClassificationTypeNames.RegexComment);
Classification\FormattedClassifications.XmlDoc.cs (10)
17
public static
FormattedClassification
AttributeName(string text)
21
public static
FormattedClassification
AttributeQuotes(string text)
25
public static
FormattedClassification
AttributeValue(string text)
29
public static
FormattedClassification
CDataSection(string text)
33
public static
FormattedClassification
Comment(string text)
37
public static
FormattedClassification
Delimiter(string text)
41
public static
FormattedClassification
EntityReference(string text)
45
public static
FormattedClassification
Name(string text)
49
public static
FormattedClassification
ProcessingInstruction(string text)
53
public static
FormattedClassification
Text(string text)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (13)
23
protected static
FormattedClassification
Text(string text)
29
protected static
FormattedClassification
[] ExpectedClassifications(
30
params
FormattedClassification
[] expectedClassifications)
53
FormattedClassification
[] expectedClassifications = null)
64
FormattedClassification
[] expectedClassifications = null)
73
FormattedClassification
[] expectedClassifications = null)
80
FormattedClassification
[] expectedClassifications = null)
87
FormattedClassification
[] expectedClassifications = null)
94
FormattedClassification
[] expectedClassifications = null)
101
FormattedClassification
[] expectedClassifications = null)
108
FormattedClassification
[] expectedClassifications = null)
115
FormattedClassification
[] expectedClassifications = null)
122
FormattedClassification
[] expectedClassifications = null)