33 references to SyntaxNode
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder.CapturedParametersFinder.cs (1)
112syntaxNode = sourceMethod.SyntaxNode;
Binder\Binder_Conversions.cs (2)
2362if (!lambdaSymbol.SyntaxNode.IsKind(SyntaxKind.AnonymousMethodExpression)) 2393lambdaParameter.TryGetFirstLocation() ?? lambdaSymbol.SyntaxNode.Location);
Binder\Binder_Statements.cs (3)
3814Debug.Assert(sourceConstructor?.SyntaxNode is TypeDeclarationSyntax 3815|| ((ConstructorDeclarationSyntax?)sourceConstructor?.SyntaxNode)?.Initializer == null); 3883switch (sourceConstructor.SyntaxNode)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1024result = new SimpleProgramUnitBinder(result, (SimpleProgramBinder)bodyBinder.GetBinder(simpleProgram.SyntaxNode));
Binder\ExecutableCodeBinder.cs (1)
68if (_memberSymbol is SynthesizedSimpleProgramEntryPointSymbol entryPoint && _root == entryPoint.SyntaxNode)
Binder\SimpleProgramBinder.cs (1)
101return _entryPoint.SyntaxNode;
CodeGen\CodeGenerator.cs (1)
151_methodBodySyntaxOpt = (SyntaxNode)blockBody ?? expressionBody ?? sourceMethod?.SyntaxNode;
Compiler\MethodBodySynthesizer.cs (2)
193statement = new BoundReturnStatement(accessor.SyntaxNode, RefKind.None, fieldAccess, @checked: false); 200accessor.SyntaxNode,
Compiler\MethodCompiler.cs (1)
1757CSharpSyntaxNode syntaxNode = sourceMethod.SyntaxNode;
FlowAnalysis\FlowAnalysisPass.cs (1)
59Debug.Assert(method is not SourceMemberMethodSymbol { SyntaxNode: ConstructorDeclarationSyntax { Initializer: not null } } || block.HasErrors);
FlowAnalysis\NullableWalker.cs (1)
872if (method is SourceMemberMethodSymbol { SyntaxNode: ConstructorDeclarationSyntax { Initializer: { RawKind: var initializerKind } } })
Lowering\InitializerRewriter.cs (1)
25var syntax = ((object)sourceMethod != null) ? sourceMethod.SyntaxNode : method.GetNonNullSyntaxNode();
Symbols\MemberSymbolExtensions.cs (1)
380ConstructorDeclarationSyntax constructorSyntax = sourceMethod.SyntaxNode as ConstructorDeclarationSyntax;
Symbols\Source\SourceConstructorSymbol.cs (1)
183return OneOrMany.Create(((ConstructorDeclarationSyntax)this.SyntaxNode).AttributeLists);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
65ContainingType.Name == ((ConstructorDeclarationSyntax)this.SyntaxNode).Identifier.ValueText)
Symbols\Source\SourceMemberMethodSymbol.cs (3)
713switch (SyntaxNode) 769return inMethod == null ? null : new ExecutableCodeBinder(SyntaxNode, this, inMethod.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None)); 1132Debug.Assert(this.SyntaxNode.SyntaxTree == localTree);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
45switch (SyntaxNode) 1526var returnTypeSyntax = this.SyntaxNode switch
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
804Binder.CheckFeatureAvailability(SyntaxNode, MessageID.IDS_FeatureExtendedPartialMethods, diagnostics, location);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
108return new ExecutableCodeBinder(SyntaxNode, this, result.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
53var F = new SyntheticBoundNodeFactory(this, this.SyntaxNode, compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
42var F = new SyntheticBoundNodeFactory(this, this.SyntaxNode, compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
43var F = new SyntheticBoundNodeFactory(this, this.SyntaxNode, compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
51var F = new SyntheticBoundNodeFactory(this, this.SyntaxNode, compilationState, diagnostics);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (3)
99if (entryPoint.SyntaxTree == compilationUnit.SyntaxTree && entryPoint.SyntaxNode == compilationUnit) 210internal CompilationUnitSyntax CompilationUnit => (CompilationUnitSyntax)SyntaxNode; 221var syntaxNode = SyntaxNode;