48 references to GetNonNullSyntaxNode
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Expressions.cs (1)
4825nonNullSyntax = constructor.GetNonNullSyntaxNode();
Binder\Binder_Statements.cs (4)
2907arg = new BoundDefaultExpression(interactiveInitializerMethod.GetNonNullSyntaxNode(), interactiveInitializerMethod.ResultType); 3773CSharpSyntaxNode containerNode = constructor.GetNonNullSyntaxNode(); 3856CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); 3902CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode();
Compiler\DocumentationCommentCompiler.cs (1)
272foreach (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)
954body = new BoundBlock(methodSymbol.GetNonNullSyntaxNode(), ImmutableArray<LocalSymbol>.Empty, ImmutableArray<BoundStatement>.Empty) { WasCompilerGenerated = true }; 1196CSharpSyntaxNode syntax = methodSymbol.GetNonNullSyntaxNode(); 1900var node = ctor.GetNonNullSyntaxNode(); 1956return BoundBlock.SynthesizedNoLocals(method.GetNonNullSyntaxNode(), statements); 2235return 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)
417internal static Location GetParameterLocation(ParameterSymbol parameter) => parameter.GetNonNullSyntaxNode().Location;
Symbols\Source\SourceMemberContainerSymbol.cs (1)
4477var syntax = param.GetNonNullSyntaxNode();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1396checkAndReportManagedTypes(param.Type, param.RefKind, param.GetNonNullSyntaxNode(), isParam: true, diagnostics);
Symbols\Source\SourceTypeParameterSymbol.cs (2)
279DeclaringCompilation.EnsureIsUnmanagedAttributeExists(diagnostics, this.GetNonNullSyntaxNode().Location, ModifyCompilationForAttributeEmbedding()); 316Location getLocation() => this.GetNonNullSyntaxNode().Location;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListConstructor.cs (1)
24SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorConstructor.cs (1)
24SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListMethod.cs (1)
23SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordClone.cs (1)
110var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordDeconstruct.cs (1)
51var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
172var 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)
48var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordInequalityOperator.cs (1)
36var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
118var F = new SyntheticBoundNodeFactory(this, ContainingType.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayAsReadOnlySpanMethod.cs (1)
23SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayAsSpanMethod.cs (1)
23SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayElementRefMethod.cs (1)
25SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayElementRefReadOnlyMethod.cs (1)
25SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefMethod.cs (1)
24SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);
Symbols\Synthesized\SynthesizedInlineArrayFirstElementRefReadOnlyMethod.cs (1)
24SyntheticBoundNodeFactory f = new SyntheticBoundNodeFactory(this, this.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\SynthesizedThrowSwitchExpressionExceptionMethod.cs (1)
24SyntheticBoundNodeFactory F = new SyntheticBoundNodeFactory(this, this.GetNonNullSyntaxNode(), compilationState, diagnostics);