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