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