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