100 references to Create
Microsoft.CodeAnalysis.CodeStyle (8)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (6)
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
InvokeDelegateWithConditionalAccessAnalyzer.cs (7)
134Location.Create(tree, ifStatement.Span),
135Location.Create(tree, expressionStatement.Span));
183var fadeLocation = Location.Create(tree, TextSpan.FromBounds(firstStatement.SpanStart, previousToken.Span.End));
202fadeLocation = Location.Create(tree, TextSpan.FromBounds(nextToken.Span.Start, ifStatement.Span.End));
321Location.Create(tree, localDeclarationStatement.Span),
322Location.Create(tree, ifStatement.Span),
323Location.Create(tree, expressionStatement.Span));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (6)
CodeGen\CodeGenTupleTest.cs (6)
5794var loc1 = Location.Create(tree, new TextSpan(0, 1));
5905var loc1 = Location.Create(tree, new TextSpan(0, 1));
5906var loc2 = Location.Create(tree, new TextSpan(1, 1));
6346var loc1 = Location.Create(syntaxTree, new TextSpan(0, 1));
6382var loc1 = Location.Create(syntaxTree, new TextSpan(0, 1));
6383var loc2 = Location.Create(syntaxTree, new TextSpan(1, 1));
Microsoft.CodeAnalysis.CSharp.Features (11)
InvokeDelegateWithConditionalAccessAnalyzer.cs (7)
134Location.Create(tree, ifStatement.Span),
135Location.Create(tree, expressionStatement.Span));
183var fadeLocation = Location.Create(tree, TextSpan.FromBounds(firstStatement.SpanStart, previousToken.Span.End));
202fadeLocation = Location.Create(tree, TextSpan.FromBounds(nextToken.Span.Start, ifStatement.Span.End));
321Location.Create(tree, localDeclarationStatement.Span),
322Location.Create(tree, ifStatement.Span),
323Location.Create(tree, expressionStatement.Span));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (11)
Diagnostics\DiagnosticsSquiggleTaggerProviderTests.cs (3)
158diagnosticService.CreateDiagnosticAndFireEvents(workspace, analyzerService, Location.Create(tree, span), diagnosticKind);
197diagnosticService.CreateDiagnosticAndFireEvents(workspace, analyzerService, Location.Create(tree, span), diagnosticKind);
229c.ReportDiagnostic(Diagnostic.Create(_rule, Location.Create(c.Tree, new TextSpan(0, 1))));
EditAndContinue\RemoteEditAndContinueServiceTests.cs (3)
140var diagnostic = Diagnostic.Create(diagnosticDescriptor, Location.Create(syntaxTree, TextSpan.FromBounds(1, 1)));
220var documentDiagnostic = Diagnostic.Create(diagnosticDescriptor1, Location.Create(syntaxTree, TextSpan.FromBounds(1, 2)), new[] { "doc", "some error" });
222var syntaxError = Diagnostic.Create(diagnosticDescriptor1, Location.Create(syntaxTree, TextSpan.FromBounds(1, 2)), new[] { "doc", "syntax error" });
Microsoft.CodeAnalysis.Features (16)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic (6)
Binding\Binder_Query.vb (6)
1961ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2000ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod)
2040Location.Create(groupJoin.SyntaxTree, GetQueryOperatorNameSpan(groupJoin.GroupKeyword, groupJoin.JoinKeyword)),
2076Location.Create(groupJoin.SyntaxTree, GetQueryOperatorNameSpan(groupJoin.GroupKeyword, groupJoin.JoinKeyword)),
4664diagnosticLocationOpt:=Location.Create(node.SyntaxTree, operatorNameLocation))
4716ReportDiagnostic(diagnostics, Location.Create(node.SyntaxTree, operatorNameLocation), ERRID.ERR_QueryOperatorNotFound, operatorName)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
CodeGen\CodeGenTuples.vb (5)
6873Dim loc1 = Location.Create(tree, New TextSpan(0, 1))
6922Dim loc1 = Location.Create(tree, New TextSpan(0, 1))
6923Dim loc2 = Location.Create(tree, New TextSpan(1, 1))
7271Dim loc1 = Location.Create(tree, New TextSpan(0, 1))
7272Dim loc2 = Location.Create(tree, New TextSpan(1, 1))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces (4)