1 write to Syntax
Microsoft.CodeAnalysis.CSharp (1)
Symbols\FieldOrPropertyInitializer.cs (1)
34
Syntax
= syntax.GetReference();
22 references to Syntax
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Initializers.cs (2)
97
SyntaxReference syntaxRef = initializer.
Syntax
;
193
var syntaxRef = initializer.
Syntax
;
Symbols\Source\SourceMemberContainerSymbol.cs (18)
1155
int distanceFromInitializerStart = position - initializer.
Syntax
.Span.Start;
1174
group[0].
Syntax
.SyntaxTree == tree &&
1175
position < group.Last().
Syntax
.Span.End)
1237
return initializer.
Syntax
.Span.Length;
1258
if (precedingInitializerIndex >= 0 && initializers[precedingInitializerIndex].
Syntax
.Span.Contains(position))
2998
Debug.Assert(LexicalSortKey.Compare(new LexicalSortKey(initializers[i - 1].First().
Syntax
, compilation), new LexicalSortKey(initializers[i].Last().
Syntax
, compilation)) < 0);
3003
Debug.Assert(LexicalSortKey.Compare(new LexicalSortKey(initializers[i].First().
Syntax
, compilation), new LexicalSortKey(initializers[i + 1].Last().
Syntax
, compilation)) < 0);
3008
Debug.Assert(LexicalSortKey.Compare(new LexicalSortKey(initializers[i].First().
Syntax
, compilation), new LexicalSortKey(initializers[i].Last().
Syntax
, compilation)) < 0);
3068
if (LexicalSortKey.Compare(sortKey, new LexicalSortKey(declaredMembers.InstanceInitializers[insertAt][0].
Syntax
, compilation)) < 0)
3077
declaredMembers.DeclarationWithParameters.SyntaxTree == declaredMembers.InstanceInitializers[insertAt][0].
Syntax
.SyntaxTree &&
3078
declaredMembers.DeclarationWithParameters.Span.Contains(declaredMembers.InstanceInitializers[insertAt][0].
Syntax
.Span.Start))
3085
Debug.Assert(insertedInitializers[insertedInitializers.Count - 1].Syntax.SyntaxTree == declaredInitializers[0].
Syntax
.SyntaxTree);
3086
Debug.Assert(insertedInitializers[insertedInitializers.Count - 1].Syntax.Span.Start < declaredInitializers[0].
Syntax
.Span.Start);
3099
Debug.Assert(!declaredMembers.InstanceInitializers.Any(g => declaredMembers.DeclarationWithParameters.SyntaxTree == g[0].
Syntax
.SyntaxTree &&
3100
declaredMembers.DeclarationWithParameters.Span.Contains(g[0].
Syntax
.Span.Start)));
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1604
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.
Syntax
.GetLocation(), this.Name);
1618
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.
Syntax
.GetLocation(), this.Name);