34 references to SyntaxNode
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder.CapturedParametersFinder.cs (1)
112
syntaxNode = sourceMethod.
SyntaxNode
;
Binder\Binder_Conversions.cs (2)
830
if (!lambdaSymbol.
SyntaxNode
.IsKind(SyntaxKind.AnonymousMethodExpression))
861
lambdaParameter.Locations.FirstOrDefault() ?? lambdaSymbol.
SyntaxNode
.Location);
Binder\Binder_Statements.cs (3)
3716
Debug.Assert(sourceConstructor?.
SyntaxNode
is TypeDeclarationSyntax
3717
|| ((ConstructorDeclarationSyntax?)sourceConstructor?.
SyntaxNode
)?.Initializer == null);
3785
switch (sourceConstructor.
SyntaxNode
)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
1000
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)
192
statement = new BoundReturnStatement(accessor.
SyntaxNode
, RefKind.None, fieldAccess, @checked: false);
199
accessor.
SyntaxNode
,
Compiler\MethodCompiler.cs (1)
1797
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)
940
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 (2)
125
ContainingType.Name == ((ConstructorDeclarationSyntax)this.
SyntaxNode
).Identifier.ValueText)
163
return OneOrMany.Create(((ConstructorDeclarationSyntax)this.
SyntaxNode
).AttributeLists);
Symbols\Source\SourceConstructorSymbolBase.cs (1)
67
ContainingType.Name == ((ConstructorDeclarationSyntax)this.
SyntaxNode
).Identifier.ValueText)
Symbols\Source\SourceMemberMethodSymbol.cs (3)
606
switch (
SyntaxNode
)
662
return inMethod == null ? null : new ExecutableCodeBinder(
SyntaxNode
, this, inMethod.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
1018
Debug.Assert(this.
SyntaxNode
.SyntaxTree == localTree);
Symbols\Source\SourceMethodSymbolWithAttributes.cs (2)
41
switch (
SyntaxNode
)
1087
var returnTypeSyntax = this.
SyntaxNode
switch
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
328
Binder.CheckFeatureAvailability(
SyntaxNode
, MessageID.IDS_FeatureExtendedPartialMethods, diagnostics, location);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
71
return new ExecutableCodeBinder(
SyntaxNode
, this, result.WithAdditionalFlags(ignoreAccessibility ? BinderFlags.IgnoreAccessibility : BinderFlags.None));
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
62
var F = new SyntheticBoundNodeFactory(this, this.
SyntaxNode
, compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordGetHashCode.cs (1)
44
var F = new SyntheticBoundNodeFactory(this, this.
SyntaxNode
, compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
45
var F = new SyntheticBoundNodeFactory(this, this.
SyntaxNode
, compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordToString.cs (1)
54
var F = new SyntheticBoundNodeFactory(this, this.
SyntaxNode
, compilationState, diagnostics);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (3)
82
if (entryPoint.SyntaxTree == compilationUnit.SyntaxTree && entryPoint.
SyntaxNode
== compilationUnit)
211
internal CompilationUnitSyntax CompilationUnit => (CompilationUnitSyntax)
SyntaxNode
;
222
var syntaxNode =
SyntaxNode
;