29 references to ParseLeadingTrivia
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
603var line = SyntaxFactory.ParseLeadingTrivia($@"
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
79=> SyntaxFactory.ParseLeadingTrivia(text);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
85SyntaxFactory.ParseLeadingTrivia(Environment.NewLine)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
41=> SyntaxFactory.ParseLeadingTrivia(docCommentText);
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpAddDocCommentNodesCodeFixProvider.cs (1)
85SyntaxFactory.ParseLeadingTrivia(Environment.NewLine)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
41=> SyntaxFactory.ParseLeadingTrivia(docCommentText);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Parsing\NameAttributeValueParsingTests.cs (1)
30var trivia = SyntaxFactory.ParseLeadingTrivia(commentText).Single();
Parsing\VerbatimCrefParsingTests.cs (1)
29var trivia = SyntaxFactory.ParseLeadingTrivia(commentText).Single();
Syntax\SyntaxNodeTests.cs (4)
2420var newComment1 = SyntaxFactory.ParseLeadingTrivia("/* a */")[0]; 2421var newComment2 = SyntaxFactory.ParseLeadingTrivia("/* b */")[0]; 2442var newComment1 = SyntaxFactory.ParseLeadingTrivia("/* a */")[0]; 2443var newComment2 = SyntaxFactory.ParseLeadingTrivia("/* b */")[0];
Syntax\SyntaxNormalizerTests.cs (1)
3986var list = SyntaxFactory.ParseLeadingTrivia(text.NormalizeLineEndings());
Syntax\SyntaxRewriterTests.cs (4)
472var newComment1 = SyntaxFactory.ParseLeadingTrivia("/* a */")[0]; 473var newComment2 = SyntaxFactory.ParseLeadingTrivia("/* b */")[0]; 499var newComment1 = SyntaxFactory.ParseLeadingTrivia("/* a */")[0]; 500var newComment2 = SyntaxFactory.ParseLeadingTrivia("/* b */")[0];
Syntax\SyntaxTriviaListTests.cs (7)
53var list = SyntaxFactory.ParseLeadingTrivia("/*A*//*B*//*C*/"); 69var triviaD = SyntaxFactory.ParseLeadingTrivia("/*D*/")[0]; 70var triviaE = SyntaxFactory.ParseLeadingTrivia("/*E*/")[0]; 185DoTestAddInsertRemoveReplaceOnEmptyList(SyntaxFactory.ParseLeadingTrivia("/*A*/").RemoveAt(0)); 193var triviaD = SyntaxFactory.ParseLeadingTrivia("/*D*/")[0]; 194var triviaE = SyntaxFactory.ParseLeadingTrivia("/*E*/")[0]; 232var list = SyntaxFactory.ParseLeadingTrivia("/*A*//*B*//*C*/");
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
142=> SyntaxFactory.ParseLeadingTrivia(s ?? string.Empty);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
79=> SyntaxFactory.ParseLeadingTrivia(text);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
1293var newTriviaList = SyntaxFactory.ParseLeadingTrivia(commentText); 1426var newTriviaList = SyntaxFactory.ParseLeadingTrivia(builder.ToString());