18 references to EmbeddedSyntaxTrivia
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (4)
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (4)
24
leadingTrivia.IsDefaultOrEmpty ? ImmutableArray<
StackFrameTrivia
>.Empty : leadingTrivia,
26
trailingTrivia.IsDefaultOrEmpty ? ImmutableArray<
StackFrameTrivia
>.Empty : trailingTrivia,
116
current = Identifier(IdentifierToken(identifier, leadingTrivia: leadingTrivia, trailingTrivia: ImmutableArray<
StackFrameTrivia
>.Empty));
120
var rhs = Identifier(IdentifierToken(identifier, leadingTrivia: ImmutableArray<
StackFrameTrivia
>.Empty, trailingTrivia: trailingTrivia));
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\Json\JsonLexer.cs (1)
197
using var _ = ArrayBuilder<
JsonTrivia
>.GetInstance(out var result);
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (2)
106
using var _ = ArrayBuilder<
RegexTrivia
>.GetInstance(out var result);
349
: CreateToken(RegexKind.OptionsToken, ImmutableArray<
RegexTrivia
>.Empty, GetSubPatternToCurrentPos(start));
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (1)
426
using var _ = ArrayBuilder<
StackFrameTrivia
>.GetInstance(out var builder);
Microsoft.CodeAnalysis.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (8)
18
public readonly ImmutableArray<
EmbeddedSyntaxTrivia
<TSyntaxKind>> LeadingTrivia;
20
public readonly ImmutableArray<
EmbeddedSyntaxTrivia
<TSyntaxKind>> TrailingTrivia;
31
ImmutableArray<
EmbeddedSyntaxTrivia
<TSyntaxKind>> leadingTrivia,
33
ImmutableArray<
EmbeddedSyntaxTrivia
<TSyntaxKind>> trailingTrivia,
58
Optional<ImmutableArray<
EmbeddedSyntaxTrivia
<TSyntaxKind>>> leadingTrivia = default,
60
Optional<ImmutableArray<
EmbeddedSyntaxTrivia
<TSyntaxKind>>> trailingTrivia = default,
117
foreach (
var
trivia in LeadingTrivia)
127
foreach (
var
trivia in TrailingTrivia)
Microsoft.VisualStudio.LanguageServices (2)
StackTraceExplorer\StackFrameViewModel.cs (2)
237
return ImmutableArray<
StackFrameTrivia
>.Empty;
253
return ImmutableArray<
StackFrameTrivia
>.Empty;