41 references to new
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (27)
Classification\SyntacticClassifierTests.cs (27)
6216new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(0, 3)), 6217new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentText, new TextSpan(3, 1)), 6218new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(4, 1)), 6219new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(5, 5)), 6220new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeName, new TextSpan(11, 4)), 6221new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(15, 1)), 6222new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(16, 1)), 6223new ClassifiedSpan(ClassificationTypeNames.Identifier, new TextSpan(17, 5)), 6224new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(22, 1)), 6225new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(23, 1)), 6226new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(24, 2)), 6227new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(26, 5)), 6228new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(31, 1)) 6246new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(2, 3)), 6247new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentText, new TextSpan(5, 1)), 6248new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(6, 1)), 6249new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(7, 5)), 6250new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(14, 3)), 6251new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeName, new TextSpan(18, 4)), 6252new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(22, 1)), 6253new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(23, 1)), 6254new ClassifiedSpan(ClassificationTypeNames.Identifier, new TextSpan(24, 5)), 6255new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentAttributeQuotes, new TextSpan(29, 1)), 6256new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(30, 1)), 6257new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(31, 2)), 6258new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentName, new TextSpan(33, 5)), 6259new ClassifiedSpan(ClassificationTypeNames.XmlDocCommentDelimiter, new TextSpan(38, 1))
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Classification\ClassificationHelpers.cs (1)
555return new ClassifiedSpan(
Classification\Worker.cs (1)
56_result.Add(new ClassifiedSpan(type, span));
Microsoft.CodeAnalysis.EditorFeatures (1)
Classification\Syntactic\SyntacticClassificationTaggerProvider.TagComputer.cs (1)
557var currentClassifiedSpan = new ClassifiedSpan(lastClassifiedSpan.ClassificationType, currentSnapshotSpan.Span.ToTextSpan());
Microsoft.CodeAnalysis.Features (4)
ClassifiedSpansAndHighlightSpanFactory.cs (3)
83new ClassifiedSpan(ClassificationTypeNames.Text, TextSpan.FromBounds(widenedSpan.Start, narrowSpan.Start)), 84new ClassifiedSpan(ClassificationTypeNames.Text, narrowSpan), 85new ClassifiedSpan(ClassificationTypeNames.Text, TextSpan.FromBounds(narrowSpan.End, widenedSpan.End)),
EmbeddedLanguages\Classification\EmbeddedLanguageClassifierContext.cs (1)
68_result.Add(new ClassifiedSpan(classificationType, span));
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Classification\SyntaxClassification\IdentifierNameSyntaxClassifier.vb (1)
33result.Add(New ClassifiedSpan(ClassificationTypeNames.Keyword, identifier.Span))
Classification\Worker.vb (1)
44_list.Add(New ClassifiedSpan(classificationType, textSpan))
Microsoft.CodeAnalysis.Workspaces (5)
Classification\ClassifierHelper.cs (3)
181var newSpan = new ClassifiedSpan(span.ClassificationType, intersection.GetValueOrDefault()); 202result.Add(new ClassifiedSpan(ClassificationTypeNames.Text, 225static (original, final) => new ClassifiedSpan(original.ClassificationType, final));
Classification\IRemoteSemanticClassificationService.cs (1)
117=> new(
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
89var tuple = new ClassifiedSpan(type, textSpan);