1 write to Syntax
Microsoft.CodeAnalysis.CSharp (1)
Symbols\FieldOrPropertyInitializer.cs (1)
34
Syntax
= syntax.GetReference();
30 references to Syntax
Microsoft.CodeAnalysis.CSharp (30)
Binder\Binder_Initializers.cs (2)
97
SyntaxReference syntaxRef = initializer.
Syntax
;
193
var syntaxRef = initializer.
Syntax
;
Symbols\Source\SourceMemberContainerSymbol.cs (26)
1176
int distanceFromInitializerStart = position - initializer.
Syntax
.Span.Start;
1195
group[0].
Syntax
.SyntaxTree == tree &&
1196
position < group.Last().
Syntax
.Span.End)
1258
return initializer.
Syntax
.Span.Length;
1268
int index = initializers.BinarySearch(position, (initializer, pos) => initializer.
Syntax
.Span.Start.CompareTo(pos));
1279
if (precedingInitializerIndex >= 0 && initializers[precedingInitializerIndex].
Syntax
.Span.Contains(position))
3292
Debug.Assert(LexicalSortKey.Compare(new LexicalSortKey(initializers[i - 1].First().
Syntax
, compilation), new LexicalSortKey(initializers[i].Last().
Syntax
, compilation)) < 0);
3297
Debug.Assert(LexicalSortKey.Compare(new LexicalSortKey(initializers[i].First().
Syntax
, compilation), new LexicalSortKey(initializers[i + 1].Last().
Syntax
, compilation)) < 0);
3302
Debug.Assert(LexicalSortKey.Compare(new LexicalSortKey(initializers[i].First().
Syntax
, compilation), new LexicalSortKey(initializers[i].Last().
Syntax
, compilation)) < 0);
3355
Debug.Assert(declaredMembers.DeclarationWithParameters.SyntaxTree == InstanceInitializersForPositionalMembers[0].
Syntax
.SyntaxTree);
3356
Debug.Assert(declaredMembers.DeclarationWithParameters.Span.Contains(InstanceInitializersForPositionalMembers[0].
Syntax
.Span.Start));
3366
var sortKey = new LexicalSortKey(InstanceInitializersForPositionalMembers.First().
Syntax
, compilation);
3372
if (LexicalSortKey.Compare(sortKey, new LexicalSortKey(declaredMembers.InstanceInitializers[insertAt][0].
Syntax
, compilation)) < 0)
3381
declaredMembers.DeclarationWithParameters.SyntaxTree == declaredMembers.InstanceInitializers[insertAt][0].
Syntax
.SyntaxTree &&
3382
declaredMembers.DeclarationWithParameters.Span.Contains(declaredMembers.InstanceInitializers[insertAt][0].
Syntax
.Span.Start))
3389
Debug.Assert(insertedInitializers[insertedInitializers.Count - 1].
Syntax
.SyntaxTree == declaredInitializers[0].
Syntax
.SyntaxTree);
3390
Debug.Assert(insertedInitializers[insertedInitializers.Count - 1].
Syntax
.Span.Start < declaredInitializers[0].
Syntax
.Span.Start);
3403
Debug.Assert(!declaredMembers.InstanceInitializers.Any(g => declaredMembers.DeclarationWithParameters.SyntaxTree == g[0].
Syntax
.SyntaxTree &&
3404
declaredMembers.DeclarationWithParameters.Span.Contains(g[0].
Syntax
.Span.Start)));
4540
Debug.Assert(node.SyntaxTree == initializers.Last().
Syntax
.SyntaxTree);
4541
Debug.Assert(node.SpanStart > initializers.Last().
Syntax
.Span.Start);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1630
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.
Syntax
.GetLocation(), this.Name);
1644
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.
Syntax
.GetLocation(), this.Name);