42 references to GetNonNullSyntaxNode
Microsoft.CodeAnalysis.CSharp (41)
Binder\Binder_Expressions.cs (1)
4210nonNullSyntax = constructor.GetNonNullSyntaxNode();
Binder\Binder_Statements.cs (4)
2902arg = new BoundDefaultExpression(interactiveInitializerMethod.GetNonNullSyntaxNode(), interactiveInitializerMethod.ResultType); 3768CSharpSyntaxNode containerNode = constructor.GetNonNullSyntaxNode(); 3856CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); 3901CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode();
Compiler\DocumentationCommentCompiler.cs (1)
265foreach (var trivia in implementationPart.GetNonNullSyntaxNode().GetLeadingTrivia())
Compiler\MethodBodySynthesizer.Lowered.cs (5)
50SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics); 141SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics); 242SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics); 280SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics); 319SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Compiler\MethodCompiler.cs (5)
1012body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; 1247CSharpSyntaxNode syntax = methodSymbol.GetNonNullSyntaxNode(); 1944var node = ctor.GetNonNullSyntaxNode(); 2000return BoundBlock.SynthesizedNoLocals(method.GetNonNullSyntaxNode(), statements); 2268return BoundBlock.SynthesizedNoLocals(symbol.GetNonNullSyntaxNode());
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
30CSharpSyntaxNode syntax = this.GetNonNullSyntaxNode();
FlowAnalysis\FlowAnalysisPass.cs (1)
84var trailingExpression = new BoundDefaultExpression(method.GetNonNullSyntaxNode(), submissionResultType);
Lowering\InitializerRewriter.cs (2)
25var syntax = ((object)sourceMethod != null) ? sourceMethod.SyntaxNode : method.GetNonNullSyntaxNode(); 76return new BoundTypeOrInstanceInitializers(method.GetNonNullSyntaxNode(), boundStatements.ToImmutableAndFree());
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
160var diagnosticSyntax = factory.CurrentFunction.GetNonNullSyntaxNode(); 175var diagnosticSyntax = factory.CurrentFunction.GetNonNullSyntaxNode(); 189var diagnosticSyntax = factory.CurrentFunction.GetNonNullSyntaxNode();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (1)
225var F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Source\ParameterHelpers.cs (1)
395private static Location GetParameterLocation(ParameterSymbol parameter) => parameter.GetNonNullSyntaxNode().Location;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4257var syntax = param.GetNonNullSyntaxNode();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
957checkAndReportManagedTypes(param.Type, param.RefKind, param.GetNonNullSyntaxNode(), isParam: true, diagnostics);
Symbols\Source\SourceTypeParameterSymbol.cs (2)
275DeclaringCompilation.EnsureIsUnmanagedAttributeExists(diagnostics, this.GetNonNullSyntaxNode().Location, ModifyCompilationForAttributeEmbedding()); 312Location getLocation() => this.GetNonNullSyntaxNode().Location;
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
115var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
61var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
168var F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
34var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
54var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
41var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
119var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
288var factory = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedParameterlessThrowMethod.cs (1)
26SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedThrowIfNullMethod.cs (1)
28SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedThrowMethod.cs (1)
23SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (1)
24SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LambdaTests.cs (1)
8129var methodSyntax = (MethodDeclarationSyntax)comp.GetMember<MethodSymbol>("C.M").GetNonNullSyntaxNode();