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