4 types derived from CSharpSyntaxNode
Microsoft.CodeAnalysis.CSharp (4)
Syntax\AttributeTargetSpecifierSyntax.cs (1)
11public sealed partial class AttributeTargetSpecifierSyntax : CSharpSyntaxNode
Syntax\CompilationUnitSyntax.cs (1)
11public sealed partial class CompilationUnitSyntax : CSharpSyntaxNode, ICompilationUnitSyntax
Syntax\PropertyDeclarationSyntax.cs (1)
32public sealed partial class AccessorDeclarationSyntax : CSharpSyntaxNode
Syntax\StructuredTriviaSyntax.cs (1)
12public abstract partial class StructuredTriviaSyntax : CSharpSyntaxNode, IStructuredTriviaSyntax
850 references to CSharpSyntaxNode
ILLink.CodeFixProvider (3)
BaseAttributeCodeFixProvider.cs (3)
93 private static CSharpSyntaxNode? FindAttributableParent (SyntaxNode node, AttributeableParentTargets targets) 103 return (CSharpSyntaxNode) parentNode; 117 return (CSharpSyntaxNode) parentNode;
Microsoft.AspNetCore.Http.Extensions.Tests (2)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
141var syntaxRootNode = (CSharpSyntaxNode)syntaxTree.GetRoot();
Microsoft.AspNetCore.Http.Microbenchmarks (2)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (2)
141var syntaxRootNode = (CSharpSyntaxNode)syntaxTree.GetRoot();
Microsoft.CodeAnalysis.CSharp (700)
Binder\Binder.CapturedParametersFinder.cs (3)
50CSharpSyntaxNode? syntaxNode; 100void getBodyBinderAndSyntax(SourceMemberMethodSymbol sourceMethod, out Binder? bodyBinder, out CSharpSyntaxNode? syntaxNode) 115bool checkParameterReferencesInMethodBody(CSharpSyntaxNode syntaxNode, Binder bodyBinder)
Binder\Binder.cs (7)
194internal virtual ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator) 539internal static void Error(BindingDiagnosticBag diagnostics, ErrorCode code, CSharpSyntaxNode syntax) 544internal static void Error(BindingDiagnosticBag diagnostics, ErrorCode code, CSharpSyntaxNode syntax, params object[] args) 813CSharpSyntaxNode? syntax = null) 857internal BoundExpression WrapWithVariablesIfAny(CSharpSyntaxNode scopeDesignator, BoundExpression expression) 871internal BoundStatement WrapWithVariablesIfAny(CSharpSyntaxNode scopeDesignator, BoundStatement statement) 887internal BoundStatement WrapWithVariablesAndLocalFunctionsIfAny(CSharpSyntaxNode scopeDesignator, BoundStatement statement)
Binder\Binder.IdentifierUsedAsValueFinder.cs (2)
26protected bool CheckIdentifiersInNode(CSharpSyntaxNode? node, Binder binder) 107static Binder getEnclosingBinderForNode(CSharpSyntaxNode contextNode, Binder contextBinder, SyntaxNode targetNode)
Binder\Binder_AnonymousTypes.cs (4)
33CSharpSyntaxNode[] fieldSyntaxNodes = new CSharpSyntaxNode[fieldCount]; 91fieldSyntaxNodes[i] = (nameToken.Kind() == SyntaxKind.IdentifierToken) ? (CSharpSyntaxNode)nameToken.Parent! : fieldInitializer; 211private TypeSymbol GetAnonymousTypeFieldType(BoundExpression expression, CSharpSyntaxNode errorSyntax, BindingDiagnosticBag diagnostics, ref bool hasError)
Binder\Binder_Attributes.cs (1)
396private void ValidateTypeForAttributeParameters(ImmutableArray<ParameterSymbol> parameters, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics, ref bool hasErrors)
Binder\Binder_Constraints.cs (1)
358static void reportTypeConstraintsMustBeUniqueAndFirst(CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics)
Binder\Binder_Crefs.cs (2)
329private ImmutableArray<Symbol> ComputeSortedCrefMembers(CSharpSyntaxNode syntax, NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, BindingDiagnosticBag diagnostics) 337private ImmutableArray<Symbol> ComputeSortedCrefMembers(NamespaceOrTypeSymbol? containerOpt, string memberName, string memberNameText, int arity, bool hasParameterList, CSharpSyntaxNode syntax,
Binder\Binder_Deconstruct.cs (12)
86CSharpSyntaxNode deconstruction, 113CSharpSyntaxNode node, 208private BoundExpression FixTupleLiteral(ArrayBuilder<DeconstructionVariable> checkedVariables, BoundExpression boundRHS, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 434internal readonly CSharpSyntaxNode Syntax; 440Syntax = (CSharpSyntaxNode)syntax; 447Syntax = (CSharpSyntaxNode)syntax; 471private TypeSymbol? MakeMergedTupleType(ArrayBuilder<DeconstructionVariable> lhsVariables, BoundTupleLiteral rhsLiteral, CSharpSyntaxNode syntax, BindingDiagnosticBag? diagnostics) 545private BoundTupleExpression DeconstructionVariablesAsTuple(CSharpSyntaxNode syntax, ArrayBuilder<DeconstructionVariable> variables, 621var receiverSyntax = (CSharpSyntaxNode)receiver.Syntax; 804CSharpSyntaxNode syntax, 867CSharpSyntaxNode syntax,
Binder\Binder_Expressions.cs (15)
939private BoundExpression BindDeclarationVariablesForErrorRecovery(TypeWithAnnotations declTypeWithAnnotations, VariableDesignationSyntax node, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 1283private BoundExpression BindArgList(CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 1821CSharpSyntaxNode containingDeconstruction = node.GetContainingDeconstruction(); 1835CSharpSyntaxNode parent = node.Parent; 1840private BoundExpression SynthesizeMethodGroupReceiver(CSharpSyntaxNode syntax, ArrayBuilder<Symbol> members) 3283CSharpSyntaxNode argumentSyntax, 4316CSharpSyntaxNode errorNode = null) 4408CSharpSyntaxNode nonNullSyntax = (CSharpSyntaxNode)creationSyntax ?? initSyntax; 4846CSharpSyntaxNode nonNullSyntax; 4915CSharpSyntaxNode nonNullSyntax, 6239private bool CollectionInitializerTypeImplementsIEnumerable(TypeSymbol initializerType, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 7587/// <see cref="MakeQueryInvocation(CSharpSyntaxNode, BoundExpression, string, TypeSyntax, TypeWithAnnotations, BindingDiagnosticBag, string)"/>. 10983CSharpSyntaxNode parent = node.Parent; 11064private static CSharpSyntaxNode GetConditionalReceiverSyntax(ConditionalAccessExpressionSyntax node)
Binder\Binder_Initializers.cs (2)
197var syntax = (CSharpSyntaxNode)syntaxRef.GetSyntax();
Binder\Binder_Invocation.cs (8)
86CSharpSyntaxNode? queryClause = null, 327CSharpSyntaxNode queryClause = null, 396CSharpSyntaxNode queryClause) 548CSharpSyntaxNode? queryClause) 627CSharpSyntaxNode queryClause, 696CSharpSyntaxNode queryClause, 940CSharpSyntaxNode queryClause, 1107CSharpSyntaxNode queryClause = null)
Binder\Binder_Operators.cs (18)
797private static void ReportUnaryOperatorError(CSharpSyntaxNode node, BindingDiagnosticBag diagnostics, string operatorName, BoundExpression operand, LookupResultKind resultKind) 1100CSharpSyntaxNode syntax, 1295private TypeSymbol GetBinaryOperatorErrorType(BinaryOperatorKind kind, BindingDiagnosticBag diagnostics, CSharpSyntaxNode node) 1316CSharpSyntaxNode node, 1377private void ReportObsoleteAndFeatureAvailabilityDiagnostics(MethodSymbol operatorMethod, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 1416CSharpSyntaxNode node, 1713CSharpSyntaxNode syntax, 1788CSharpSyntaxNode syntax, 2265private BoundExpression BindIncrementOperator(CSharpSyntaxNode node, ExpressionSyntax operandSyntax, SyntaxToken operatorToken, BindingDiagnosticBag diagnostics) 2479private static void BindPointerIndirectionExpressionInternal(CSharpSyntaxNode node, BoundExpression operand, BindingDiagnosticBag diagnostics, out TypeSymbol pointedAtType, out bool hasErrors) 2728private BoundExpression BindUnaryOperatorCore(CSharpSyntaxNode node, string operatorText, BoundExpression operand, BindingDiagnosticBag diagnostics) 2813CSharpSyntaxNode syntax, 2848CSharpSyntaxNode syntax, 3160private bool IsOperandErrors(CSharpSyntaxNode node, ref BoundExpression operand, BindingDiagnosticBag diagnostics) 3195private bool IsOperatorErrors(CSharpSyntaxNode node, TypeSymbol operandType, BoundTypeExpression typeExpression, BindingDiagnosticBag diagnostics) 3354CSharpSyntaxNode syntax, 3850CSharpSyntaxNode node, 3913CSharpSyntaxNode node,
Binder\Binder_Patterns.cs (1)
589CSharpSyntaxNode node,
Binder\Binder_Query.cs (10)
687private UnboundLambda MakePairLambda(CSharpSyntaxNode node, QueryTranslationState state, RangeVariableSymbol x1, RangeVariableSymbol x2, bool withDependencies) 780CSharpSyntaxNode syntax, 797private BoundExpression MakePair(CSharpSyntaxNode node, string field1Name, BoundExpression field1Value, string field2Name, BoundExpression field2Value, QueryTranslationState state, BindingDiagnosticBag diagnostics) 860private UnboundLambda MakeQueryUnboundLambda(RangeVariableMap qvm, ImmutableArray<RangeVariableSymbol> parameters, CSharpSyntaxNode node, LambdaBodyFactory bodyFactory, bool withDependencies) 865private static UnboundLambda MakeQueryUnboundLambda(CSharpSyntaxNode node, QueryUnboundLambdaState state, bool withDependencies) 874protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, BoundExpression arg, BindingDiagnosticBag diagnostics 887protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 900protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, TypeSyntax typeArgSyntax, TypeWithAnnotations typeArg, BindingDiagnosticBag diagnostics 913protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, SeparatedSyntaxList<TypeSyntax> typeArgsSyntax, ImmutableArray<TypeWithAnnotations> typeArgs, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 1040protected BoundExpression MakeConstruction(CSharpSyntaxNode node, NamedTypeSymbol toCreate, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics)
Binder\Binder_QueryErrors.cs (3)
136for (CSharpSyntaxNode parent = node.Parent; parent != null; parent = parent.Parent) 152for (CSharpSyntaxNode parent = node.Parent; parent != null; parent = parent.Parent) 164internal static void ReportQueryInferenceFailed(CSharpSyntaxNode queryClause, string methodName, BoundExpression receiver, AnalyzedArguments arguments, ImmutableArray<Symbol> symbols, BindingDiagnosticBag diagnostics)
Binder\Binder_Statements.cs (14)
647private BoundExpressionStatement BindExpressionStatement(CSharpSyntaxNode node, ExpressionSyntax syntax, bool allowsAnyExpression, BindingDiagnosticBag diagnostics) 784private TypeWithAnnotations BindVariableTypeWithAnnotations(CSharpSyntaxNode declarationNode, BindingDiagnosticBag diagnostics, TypeSyntax typeSyntax, ref bool isConst, out bool isVar, out AliasSymbol alias) 862CSharpSyntaxNode errorSyntax) 871protected BoundExpression BindInferredVariableInitializer(BindingDiagnosticBag diagnostics, ExpressionSyntax initializer, BindValueKind valueKind, CSharpSyntaxNode errorSyntax) 909CSharpSyntaxNode node, 956CSharpSyntaxNode associatedSyntaxNode = null) 982CSharpSyntaxNode associatedSyntaxNode = null) 1895private BoundBlock FinishBindBlockParts(CSharpSyntaxNode node, ImmutableArray<BoundStatement> boundStatements) 3446internal BoundBlock CreateBlockFromExpression(CSharpSyntaxNode node, ImmutableArray<LocalSymbol> locals, RefKind refKind, BoundExpression expression, ExpressionSyntax expressionSyntax, BindingDiagnosticBag diagnostics) 3619public virtual BoundNode BindMethodBody(CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 3869CSharpSyntaxNode containerNode = constructor.GetNonNullSyntaxNode(); 3952CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); 3995CSharpSyntaxNode syntax = constructor.GetNonNullSyntaxNode(); 4019private BoundNode BindMethodBody(CSharpSyntaxNode declaration, BlockSyntax blockBody, ArrowExpressionClauseSyntax expressionBody, BindingDiagnosticBag diagnostics)
Binder\Binder_Symbols.cs (1)
1321CSharpSyntaxNode node,
Binder\Binder_TupleOperators.cs (1)
395private TypeSymbol MakeConvertedType(ImmutableArray<TypeSymbol> convertedTypes, CSharpSyntaxNode syntax,
Binder\BinderFactory.BinderFactoryVisitor.cs (14)
23private CSharpSyntaxNode _memberDeclarationOpt; 27internal void Initialize(BinderFactory factory, int position, CSharpSyntaxNode memberDeclarationOpt, Symbol memberOpt) 100return ((CSharpSyntaxNode)node).Accept(this); 281var propertyOrEventDecl = parent.Parent.Parent; 434private NamedTypeSymbol GetContainerType(Binder binder, CSharpSyntaxNode node) 895private static Binder MakeNamespaceBinder(CSharpSyntaxNode node, NameSyntax name, Binder outer, bool inUsing) 1034private static Binder AddInImportsBinders(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool inUsing) 1050internal static BinderCacheKey CreateBinderCacheKey(CSharpSyntaxNode node, NodeUsage usage) 1064private bool IsInUsing(CSharpSyntaxNode containingNode) 1414internal static MemberDeclarationSyntax GetAssociatedMemberForXmlSyntax(CSharpSyntaxNode xmlSyntax) 1422CSharpSyntaxNode curr = (CSharpSyntaxNode)associatedToken.Parent; 1445private static DocumentationCommentTriviaSyntax GetEnclosingDocumentationComment(CSharpSyntaxNode xmlSyntax) 1447CSharpSyntaxNode curr = xmlSyntax;
Binder\BinderFactory.cs (6)
22public readonly CSharpSyntaxNode syntaxNode; 25public BinderCacheKey(CSharpSyntaxNode syntaxNode, NodeUsage usage) 109internal Binder GetBinder(SyntaxNode node, CSharpSyntaxNode memberDeclarationOpt = null, Symbol memberOpt = null) 124internal Binder GetBinder(SyntaxNode node, int position, CSharpSyntaxNode memberDeclarationOpt = null, Symbol memberOpt = null) 141private BinderFactoryVisitor GetBinderFactoryVisitor(int position, CSharpSyntaxNode memberDeclarationOpt, Symbol memberOpt) 184internal Binder GetInNamespaceBinder(CSharpSyntaxNode unit)
Binder\BlockBinder.cs (1)
84internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\BuckStopsHereBinder.cs (1)
181internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\CatchClauseBinder.cs (1)
55internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\EmbeddedStatementBinder.cs (1)
87internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ExpressionListVariableBinder.cs (1)
51internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ExpressionVariableBinder.cs (3)
29ExpressionVariableFinder.FindExpressionVariables(this, builder, (CSharpSyntaxNode)ScopeDesignator, 30GetBinder((CSharpSyntaxNode)ScopeDesignator)); 44internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ExpressionVariableFinder.cs (4)
25CSharpSyntaxNode node) 103private void VisitNodeToBind(CSharpSyntaxNode node) 552CSharpSyntaxNode node, 682CSharpSyntaxNode node,
Binder\FixedStatementBinder.cs (1)
70internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ForEachLoopBinder.cs (1)
57internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\ForLoopBinder.cs (1)
150internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\LocalBinderFactory.cs (7)
40private void Visit(CSharpSyntaxNode syntax, Binder enclosing) 96CSharpSyntaxNode embeddedScopeDesignator; 118builder.Visit((CSharpSyntaxNode)syntax, enclosing); 387CSharpSyntaxNode body = node.Body; 501private void VisitConstructorInitializerArgumentList(CSharpSyntaxNode node, ArgumentListSyntax argumentList, Binder binder) 1037private Binder GetBinderForPossibleEmbeddedStatement(StatementSyntax statement, Binder enclosing, out CSharpSyntaxNode embeddedScopeDesignator) 1071CSharpSyntaxNode embeddedScopeDesignator;
Binder\ScriptLocalScopeBinder.cs (1)
47internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (2)
200CSharpSyntaxNode queryClause = null, 744CSharpSyntaxNode queryClause = null)
Binder\SimpleLocalScopeBinder.cs (1)
35internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\SimpleProgramBinder.cs (1)
105internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\SimpleProgramUnitBinder.cs (1)
70internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\SwitchBinder.cs (3)
240protected BoundExpression ConvertCaseExpression(CSharpSyntaxNode node, BoundExpression caseExpression, out ConstantValue constantValueOpt, BindingDiagnosticBag diagnostics, bool isGotoCaseExpr = false) 283protected SourceLabelSymbol FindMatchingSwitchCaseLabel(ConstantValue constantValue, CSharpSyntaxNode labelSyntax) 338internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\UsingStatementBinder.cs (2)
84var boundUsingStatement = BindUsingStatementOrDeclarationFromParts((CSharpSyntaxNode)expressionSyntax ?? declarationSyntax, _syntax.UsingKeyword, _syntax.AwaitKeyword, originalBinder, this, diagnostics); 316internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\WhileBinder.cs (1)
79internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\WithExternAliasesBinder.cs (3)
72internal static WithExternAliasesBinder Create(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next) 85private readonly CSharpSyntaxNode _declarationSyntax; 88internal FromSyntax(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next)
Binder\WithExternAndUsingAliasesBinder.cs (4)
93internal static new WithExternAndUsingAliasesBinder Create(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next) 98internal static WithExternAndUsingAliasesBinder Create(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, WithUsingNamespacesAndTypesBinder next) 111private readonly CSharpSyntaxNode _declarationSyntax; 117internal FromSyntax(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, WithUsingNamespacesAndTypesBinder next)
Binder\WithLambdaParametersBinder.cs (1)
175internal override ImmutableArray<LocalFunctionSymbol> GetDeclaredLocalFunctionsForScope(CSharpSyntaxNode scopeDesignator)
Binder\WithUsingNamespacesAndTypesBinder.cs (5)
254internal static WithUsingNamespacesAndTypesBinder Create(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool withPreviousSubmissionImports = false, bool withImportChainEntry = false) 272private readonly CSharpSyntaxNode _declarationSyntax; 275internal FromSyntax(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool withImportChainEntry) 302private readonly CSharpSyntaxNode _declarationSyntax; 305internal FromSyntaxWithPreviousSubmissionImports(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool withImportChainEntry)
BoundTree\Constructors.cs (1)
769CSharpSyntaxNode syntax,
BoundTree\UnboundLambda.cs (2)
391CSharpSyntaxNode syntax, 1491private CSharpSyntaxNode Body
CodeGen\EmitStatement.cs (3)
753DefineLocal(local, !declaringReferences.IsEmpty ? (CSharpSyntaxNode)declaringReferences[0].GetSyntax() : block.Syntax); 1117var localSyntax = !declaringReferences.IsEmpty ? (CSharpSyntaxNode)declaringReferences[0].GetSyntax() : catchBlock.Syntax; 1694Debug.Assert(stringEqualityMethodRef == _module.Translate((MethodSymbol)_module.Compilation.GetSpecialTypeMember(SpecialMember.System_String__op_Equality), (CSharpSyntaxNode)syntaxNode, assertDiagnostics));
Compilation\AttributeSemanticModel.cs (4)
61protected internal override CSharpSyntaxNode GetBindableSyntaxNode(CSharpSyntaxNode node) 70var parent = node.Parent; 85internal override BoundNode Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics)
Compilation\CSharpCompilation.cs (4)
1627return ((SourceNamespaceSymbol)SourceModule.GlobalNamespace).GetImports((CSharpSyntaxNode)tree.GetRoot(), basesBeingResolved: null); 2189var syntax = method.ExtractReturnTypeSyntax(); 2605internal Binder GetBinder(CSharpSyntaxNode syntax) 2773private void RecordImportInternal(CSharpSyntaxNode syntax)
Compilation\CSharpSemanticModel.cs (21)
55internal new abstract CSharpSyntaxNode Root { get; } 59internal static bool CanGetSemanticInfo(CSharpSyntaxNode node, bool allowNamedArgumentName = false, bool isSpeculative = false) 139internal abstract SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 155internal abstract CSharpTypeInfo GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)); 177internal abstract ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 187internal abstract ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)); 196internal abstract Optional<object> GetConstantValueWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)); 441CSharpSyntaxNode node = (CSharpSyntaxNode)token.Parent; 476var csnode = (CSharpSyntaxNode)node; 482internal virtual IOperation GetOperationWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 1010var csnode = (CSharpSyntaxNode)expression; 1236private static bool IsInStructuredTriviaOtherThanCrefOrNameAttribute(CSharpSyntaxNode node) 1280token = (atEOF ? (CSharpSyntaxNode)this.SyntaxTree.GetRoot() : Root).FindTokenIncludingCrefAndNameAttributes(position); 1360protected void CheckSyntaxNode(CSharpSyntaxNode syntax) 1374private void CheckModelAndSyntaxNodeToSpeculate(CSharpSyntaxNode syntax) 2388internal virtual BoundNode Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 3302CSharpSyntaxNode catchClause = catchDeclaration.Parent; //Syntax->Binder map is keyed on clause, not decl 4506CSharpSyntaxNode containingInvocation = parent3.Parent;
Compilation\InitializerSemanticModel.cs (8)
26internal InitializerSemanticModel(CSharpSyntaxNode syntax, 39internal static InitializerSemanticModel Create(SyntaxTreeSemanticModel containingSemanticModel, CSharpSyntaxNode syntax, FieldSymbol fieldSymbol, Binder rootBinder) 49internal static InitializerSemanticModel Create(SyntaxTreeSemanticModel containingSemanticModel, CSharpSyntaxNode syntax, PropertySymbol propertySymbol, Binder rootBinder) 74protected internal override CSharpSyntaxNode GetBindableSyntaxNode(CSharpSyntaxNode node) 81CSharpSyntaxNode rootSyntax = this.Root; 111internal override BoundNode Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 186private bool IsBindableInitializer(CSharpSyntaxNode node)
Compilation\MemberSemanticModel.cs (63)
29private readonly CSharpSyntaxNode _root; 46CSharpSyntaxNode root, 73internal override CSharpSyntaxNode Root 474CSharpSyntaxNode bindableNode = this.GetBindableSyntaxNode(expression); 498CSharpSyntaxNode bindableNode = this.GetBindableSyntaxNode(expression); 521internal BoundNode GetUpperBoundNode(CSharpSyntaxNode node, bool promoteToBindable = false) 549internal BoundNode GetLowerBoundNode(CSharpSyntaxNode node) 692private LocalSymbol GetDeclaredLocal(CSharpSyntaxNode declarationSyntax, SyntaxToken declaredIdentifier) 1033private BoundQueryClause GetBoundQueryClause(CSharpSyntaxNode node) 1156internal override IOperation? GetOperationWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 1207internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1211CSharpSyntaxNode bindableNode; 1221internal override CSharpTypeInfo GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)) 1223CSharpSyntaxNode bindableNode; 1232internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1234CSharpSyntaxNode bindableNode; 1244internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 1246CSharpSyntaxNode bindableNode; 1256internal override Optional<object> GetConstantValueWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 1258CSharpSyntaxNode bindableNode = this.GetBindableSyntaxNode(node); 1301private void GetBoundNodes(CSharpSyntaxNode node, out CSharpSyntaxNode bindableNode, out BoundNode lowestBoundNode, out BoundNode highestBoundNode, out BoundNode boundParent) 1305CSharpSyntaxNode bindableParent = this.GetBindableParentNode(bindableNode); 1368private CSharpSyntaxNode GetInnermostLambdaOrQuery(CSharpSyntaxNode node, int position, bool allowStarting = false) 1372for (var current = node; current != this.Root; current = current.ParentOrStructuredTriviaParent) 1432private OneOrMany<BoundNode> GuardedGetBoundNodesFromMap(CSharpSyntaxNode node) 1442internal OneOrMany<BoundNode> TestOnlyTryGetBoundNodesFromMap(CSharpSyntaxNode node) 1450private OneOrMany<BoundNode> GuardedAddBoundTreeAndGetBoundNodeFromMap(CSharpSyntaxNode syntax, BoundNode bound) 1526private CSharpSyntaxNode GetBindingRoot(CSharpSyntaxNode node) 1531for (CSharpSyntaxNode current = node; current != this.Root; current = current.ParentOrStructuredTriviaParent) 1538for (CSharpSyntaxNode current = node; current != this.Root; current = current.ParentOrStructuredTriviaParent) 1584CSharpSyntaxNode node = (CSharpSyntaxNode)token.Parent; 1593private Binder GetEnclosingBinderInternal(CSharpSyntaxNode node, int position) 1597CSharpSyntaxNode innerLambdaOrQuery = GetInnermostLambdaOrQuery(node, position, allowStarting: true); 1628private BoundNode GetBoundLambdaOrQuery(CSharpSyntaxNode lambdaOrQuery) 1649CSharpSyntaxNode bindingRoot = GetBindingRoot(lambdaOrQuery); 1650CSharpSyntaxNode enclosingLambdaOrQuery = GetInnermostLambdaOrQuery(lambdaOrQuery, lambdaOrQuery.SpanStart, allowStarting: false); 1652CSharpSyntaxNode nodeToBind; 1738private Binder GetEnclosingBinderInLambdaOrQuery(int position, CSharpSyntaxNode node, CSharpSyntaxNode innerLambdaOrQuery, ref BoundNode boundInnerLambdaOrQuery) 1765private static Binder GetQueryEnclosingBinder(int position, CSharpSyntaxNode startingNode, BoundQueryClause queryClause) 1897private static Binder GetLambdaEnclosingBinder(int position, CSharpSyntaxNode startingNode, CSharpSyntaxNode containingLambda, Binder lambdaBinder) 1940var bindableRoot = GetBindableSyntaxNode(Root); 1985BoundNode bind(CSharpSyntaxNode root, out Binder binder) 2010private Binder GetBinderToBindNode(CSharpSyntaxNode nodeToBind) 2067internal OneOrMany<BoundNode> GetBoundNodes(CSharpSyntaxNode node) 2108CSharpSyntaxNode nodeToBind = GetBindingRoot(node); 2162protected internal virtual CSharpSyntaxNode GetBindableSyntaxNode(CSharpSyntaxNode node) 2212var parent = node.Parent; 2219var tmp = SyntaxFactory.GetStandaloneNode(node); 2237var grandparent = parent.Parent; 2274protected CSharpSyntaxNode? GetBindableParentNode(CSharpSyntaxNode node) 2282CSharpSyntaxNode? parent = node.Parent; 2303var pp = parent.Parent; 2313var bindableParent = this.GetBindableSyntaxNode(parent); 2472private BoundNode TryGetBoundNodeFromMap(CSharpSyntaxNode node) 2488public override BoundNode BindMethodBody(CSharpSyntaxNode node, BindingDiagnosticBag diagnostics)
Compilation\MemberSemanticModel.NodeMapBuilder.cs (1)
58foreach (CSharpSyntaxNode key in additionMap.Keys)
Compilation\MethodBodySemanticModel.cs (5)
21internal readonly CSharpSyntaxNode Syntax; 28CSharpSyntaxNode syntax, 46CSharpSyntaxNode syntax, 74internal override BoundNode Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 125CSharpSyntaxNode syntax,
Compilation\SpeculativeSemanticModelWithMemberModel.cs (11)
26private ImmutableDictionary<CSharpSyntaxNode, MemberSemanticModel> _childMemberModels = ImmutableDictionary<CSharpSyntaxNode, MemberSemanticModel>.Empty; 104CSharpSyntaxNode syntax, 127internal override CSharpSyntaxNode Root => _memberModel.Root; 445internal override IOperation? GetOperationWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 450internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 455internal override CSharpTypeInfo GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)) 460internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 465internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 470internal override Optional<object> GetConstantValueWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 515internal override BoundNode Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics)
Compilation\SpeculativeSyntaxTreeSemanticModel.cs (7)
22private readonly CSharpSyntaxNode _root; 37private static SpeculativeSyntaxTreeSemanticModel CreateCore(SyntaxTreeSemanticModel parentSemanticModel, CSharpSyntaxNode root, Binder rootBinder, int position, SpeculativeBindingOption bindingOption) 49private SpeculativeSyntaxTreeSemanticModel(SyntaxTreeSemanticModel parentSemanticModel, CSharpSyntaxNode root, Binder rootBinder, int position, SpeculativeBindingOption bindingOption) 83internal override CSharpSyntaxNode Root 91internal override BoundNode Bind(Binder binder, CSharpSyntaxNode node, BindingDiagnosticBag diagnostics) 111internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 130internal override CSharpTypeInfo GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
Compilation\SyntaxTreeSemanticModel.cs (35)
35private ImmutableDictionary<CSharpSyntaxNode, MemberSemanticModel> _memberModels = ImmutableDictionary<CSharpSyntaxNode, MemberSemanticModel>.Empty; 38private Func<CSharpSyntaxNode, MemberSemanticModel> _createMemberModelFunction; 42private static readonly Func<CSharpSyntaxNode, bool> s_isMemberDeclarationFunction = IsMemberDeclaration; 75internal override CSharpSyntaxNode Root 79return (CSharpSyntaxNode)_syntaxTree.GetRoot(); 166return _binderFactory.GetBinder((CSharpSyntaxNode)token.Parent, position).WithAdditionalFlags(GetSemanticModelBinderFlags()); 169internal override IOperation GetOperationWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 202internal override SymbolInfo GetSymbolInfoWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 305internal override CSharpTypeInfo GetTypeInfoWorker(CSharpSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken)) 330private Symbol GetSemanticInfoSymbolInNonMemberContext(CSharpSyntaxNode node, bool bindVarAsAliasFirst) 397internal override ImmutableArray<Symbol> GetMemberGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 406internal override ImmutableArray<IPropertySymbol> GetIndexerGroupWorker(CSharpSyntaxNode node, SymbolInfoOptions options, CancellationToken cancellationToken = default(CancellationToken)) 415internal override Optional<object> GetConstantValueWorker(CSharpSyntaxNode node, CancellationToken cancellationToken) 780CSharpSyntaxNode node = (CSharpSyntaxNode)Root.FindTokenIncludingCrefAndNameAttributes(position).Parent; 781CSharpSyntaxNode memberDecl = GetMemberDeclaration(node); 845var memberDecl = GetMemberDeclaration(node) ?? (node as CompilationUnitSyntax); 973internal ImmutableDictionary<CSharpSyntaxNode, MemberSemanticModel> TestOnlyMemberModels => _memberModels; 1040private static CSharpSyntaxNode GetMemberDeclaration(SyntaxNode node) 1045private MemberSemanticModel GetOrAddModelIfContains(CSharpSyntaxNode node, TextSpan span) 1054private MemberSemanticModel GetOrAddModel(CSharpSyntaxNode node) 1062internal MemberSemanticModel GetOrAddModel(CSharpSyntaxNode node, Func<CSharpSyntaxNode, MemberSemanticModel> createMemberModelFunction) 1070private MemberSemanticModel CreateMemberModel(CSharpSyntaxNode node) 1208var parent = node.Parent; 1241MemberSemanticModel createMethodBodySemanticModel(CSharpSyntaxNode memberDecl, SourceMemberMethodSymbol symbol) 1289private static bool IsMemberDeclaration(CSharpSyntaxNode node) 1393private NamedTypeSymbol GetDeclaredNamedType(CSharpSyntaxNode declarationSyntax, string name) 1404private NamespaceOrTypeSymbol GetDeclaredNamespaceOrType(CSharpSyntaxNode declarationSyntax) 1577var propertyOrEventDecl = declarationSyntax.Parent.Parent; 1622private string GetDeclarationName(CSharpSyntaxNode declaration) 1705private string GetDeclarationName(CSharpSyntaxNode declaration, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifierOpt, string memberName) 2299private NamespaceOrTypeSymbol GetDeclaredTypeMemberContainer(CSharpSyntaxNode memberDeclaration) 2345private Symbol GetDeclaredMemberSymbol(CSharpSyntaxNode declarationSyntax)
Compilation\SyntaxTreeSemanticModel_RegionAnalysisContext.cs (2)
25return RegionAnalysisContext((CSharpSyntaxNode)expression); 28private RegionAnalysisContext RegionAnalysisContext(CSharpSyntaxNode expression)
Compiler\DocumentationCommentCompiler.cs (10)
330ImmutableArray<CSharpSyntaxNode> includeElementNodes; 421out ImmutableArray<CSharpSyntaxNode> includeElementNodes) 438var includeElementNodesBuilder = _processIncludes ? ArrayBuilder<CSharpSyntaxNode>.GetInstance() : null; 499out ImmutableArray<CSharpSyntaxNode> includeElementNodes) 505ArrayBuilder<CSharpSyntaxNode> includeElementNodesBuilder = null; 534includeElementNodesBuilder = ArrayBuilder<CSharpSyntaxNode>.GetInstance(); 579includeElementNodes = default(ImmutableArray<CSharpSyntaxNode>); 594includeElementNodes = _processIncludes ? includeElementNodesBuilder.ToImmutableAndFree() : default(ImmutableArray<CSharpSyntaxNode>); 700ImmutableArray<DocumentationCommentTriviaSyntax> triviaList = SourceDocumentationCommentUtils.GetDocumentationCommentTriviaFromSyntaxNode((CSharpSyntaxNode)reference.GetSyntax(), diagnosticBag); 1216private IComparer<CSharpSyntaxNode> Comparer
Compiler\DocumentationCommentCompiler.DocumentationCommentWalker.cs (5)
35private readonly ArrayBuilder<CSharpSyntaxNode> _includeElementNodes; 45ArrayBuilder<CSharpSyntaxNode> includeElementNodes, 70ArrayBuilder<CSharpSyntaxNode> includeElementNodes, 122ArrayBuilder<CSharpSyntaxNode> includeElementNodes, 212_includeElementNodes.Add((CSharpSyntaxNode)node);
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (10)
31private readonly ImmutableArray<CSharpSyntaxNode> _sourceIncludeElementNodes; 44ImmutableArray<CSharpSyntaxNode> sourceIncludeElementNodes, 68ImmutableArray<CSharpSyntaxNode> sourceIncludeElementNodes, 147private XNode[] RewriteMany(XNode[] nodes, string currentXmlFilePath, CSharpSyntaxNode originatingSyntax) 171private XNode[] Rewrite(XNode node, string currentXmlFilePath, CSharpSyntaxNode originatingSyntax) 266private XNode[] RewriteIncludeElement(XElement includeElement, string currentXmlFilePath, CSharpSyntaxNode originatingSyntax, out string commentMessage) 464private Location GetIncludeElementLocation(XElement includeElement, ref string currentXmlFilePath, ref CSharpSyntaxNode originatingSyntax) 495private void BindAndReplaceCref(XAttribute attribute, CSharpSyntaxNode originatingSyntax) 524private void BindName(XAttribute attribute, CSharpSyntaxNode originatingSyntax, bool isParameter, bool isTypeParameterRef) 634private void RecordSyntaxDiagnostics(CSharpSyntaxNode treelessSyntax, Location sourceLocation)
Compiler\MethodBodySynthesizer.cs (3)
179CSharpSyntaxNode syntax = property.CSharpSyntaxNode; 234CSharpSyntaxNode syntax = eventSymbol.CSharpSyntaxNode; 346CSharpSyntaxNode syntax = eventSymbol.CSharpSyntaxNode;
Compiler\MethodCompiler.cs (7)
1203CSharpSyntaxNode syntax = methodSymbol.GetNonNullSyntaxNode(); 1757CSharpSyntaxNode syntaxNode = sourceMethod.SyntaxNode; 1907var node = ctor.GetNonNullSyntaxNode(); 1978CSharpSyntaxNode syntaxNode, Binder bodyBinder, 2032static void addIdentifiers(CSharpSyntaxNode? node, ConcurrentDictionary<IdentifierNameSyntax, int> identifierMap) 2133CSharpSyntaxNode child = id; 2134var parent = child.Parent;
CSharpExtensions.cs (3)
374return ((CSharpSyntaxNode)node).GetDirectives(filter); 382return ((CSharpSyntaxNode)node).GetFirstDirective(predicate); 390return ((CSharpSyntaxNode)node).GetLastDirective(predicate);
Declarations\DeclarationTreeBuilder.cs (3)
124CSharpSyntaxNode node, 506CSharpSyntaxNode currentNode = node; 913CSharpSyntaxNode parent,
DocumentationComments\SourceDocumentationCommentUtils.cs (2)
33internal static ImmutableArray<DocumentationCommentTriviaSyntax> GetDocumentationCommentTriviaFromSyntaxNode(CSharpSyntaxNode syntaxNode, DiagnosticBag diagnostics) 44CSharpSyntaxNode curr = syntaxNode;
Emitter\Model\ArrayTypeSymbolAdapter.cs (1)
27var type = moduleBeingBuilt.Translate(elementType.Type, syntaxNodeOpt: (CSharpSyntaxNode?)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\AttributeDataAdapter.cs (6)
53return (Cci.IMethodReference)moduleBeingBuilt.Translate(this.AttributeConstructor, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics); 91return moduleBeingBuilt.Translate(this.AttributeClass, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics); 147var syntaxNodeOpt = (CSharpSyntaxNode)context.SyntaxNode; 156return moduleBeingBuilt.CreateConstant((TypeSymbol)type, value, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics); 175return new MetadataNamedArgument(symbol, moduleBeingBuilt.Translate(type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics), value);
Emitter\Model\CustomModifierAdapter.cs (1)
22return ((PEModuleBuilder)context.Module).Translate(this.ModifierSymbol, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics);
Emitter\Model\EventSymbolAdapter.cs (1)
97return ((PEModuleBuilder)context.Module).Translate(AdaptedEventSymbol.Type, syntaxNodeOpt: (CSharpSyntaxNode?)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\FieldSymbolAdapter.cs (3)
40syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 98syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 163syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\GenericMethodInstanceReference.cs (2)
37yield return moduleBeingBuilt.Translate(arg.Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics); 46syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\GenericNestedTypeInstanceReference.cs (1)
25return ((PEModuleBuilder)context.Module).Translate(UnderlyingNamedType.ContainingType, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\GenericTypeInstanceReference.cs (2)
44builder.Add(moduleBeingBuilt.Translate(type.Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics)); 54return moduleBeingBuilt.Translate(UnderlyingNamedType.OriginalDefinition, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\MethodReference.cs (1)
111return ((PEModuleBuilder)context.Module).Translate(UnderlyingMethod.ReturnType, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\MethodSymbolAdapter.cs (4)
88syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 243syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 257syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 273syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\NamedTypeSymbolAdapter.cs (10)
298syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 337yield return new Microsoft.Cci.MethodImplementation(adapter, moduleBeingBuilt.TranslateOverriddenMethodReference(implemented, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 356yield return new Microsoft.Cci.MethodImplementation(method.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(method.OverriddenMethod, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 371yield return new Microsoft.Cci.MethodImplementation(method.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(objectMethod, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 397yield return new Microsoft.Cci.MethodImplementation(body.GetCciAdapter(), moduleBeingBuilt.TranslateOverriddenMethodReference(implemented, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 413yield return new Microsoft.Cci.MethodImplementation(m, moduleBeingBuilt.TranslateOverriddenMethodReference(implemented, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics)); 491syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 838syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 875var arg = moduleBeingBuilt.Translate(arguments[i].Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics); 897return moduleBeingBuilt.Translate(AdaptedNamedTypeSymbol.OriginalDefinition, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\ParameterSymbolAdapter.cs (2)
56syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 99syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\ParameterTypeInformation.cs (1)
53return ((PEModuleBuilder)context.Module).Translate(_underlyingParameter.Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\PEModuleBuilder.cs (1)
1320CSharpSyntaxNode syntaxNodeOpt,
Emitter\Model\PointerTypeSymbolAdapter.cs (1)
23var type = ((PEModuleBuilder)context.Module).Translate(AdaptedPointerTypeSymbol.PointedAtType, syntaxNodeOpt: (CSharpSyntaxNode?)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\PropertySymbolAdapter.cs (1)
210syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\SpecializedFieldReference.cs (1)
65var type = ((PEModuleBuilder)context.Module).Translate(oldType.Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\SpecializedGenericMethodInstanceReference.cs (1)
38yield return moduleBeingBuilt.Translate(arg.Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics);
Emitter\Model\SpecializedGenericNestedTypeInstanceReference.cs (2)
43builder.Add(moduleBeingBuilt.Translate(type.Type, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, diagnostics: context.Diagnostics)); 53return moduleBeingBuilt.Translate(this.UnderlyingNamedType.OriginalDefinition, syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\Model\SpecializedNestedTypeReference.cs (2)
30(CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics, needDeclaration: true).AsNestedTypeReference; 43return ((PEModuleBuilder)context.Module).Translate(UnderlyingNamedType.ContainingType, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics);
Emitter\Model\SynthesizedPrivateImplementationDetailsStaticConstructor.cs (1)
30CSharpSyntaxNode syntax = this.GetNonNullSyntaxNode();
Emitter\Model\TypeMemberReference.cs (1)
20return moduleBeingBuilt.Translate(UnderlyingSymbol.ContainingType, (CSharpSyntaxNode)context.SyntaxNode, context.Diagnostics);
Emitter\Model\TypeParameterSymbolAdapter.cs (3)
244syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 269syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode, 282syntaxNodeOpt: (CSharpSyntaxNode)context.SyntaxNode,
Emitter\NoPia\EmbeddedType.cs (1)
134(CSharpSyntaxNode)context.SyntaxNode,
Lowering\InitializerRewriter.cs (1)
25var syntax = ((object)sourceMethod != null) ? sourceMethod.SyntaxNode : method.GetNonNullSyntaxNode();
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
266compilation: _compilation, shouldCheckConstraints: false, includeNullability: false, errorPositions: default, syntax: (CSharpSyntaxNode)right.Syntax, diagnostics: _diagnostics);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (15)
148var forEachSyntax = (CSharpSyntaxNode)node.Syntax; 309CSharpSyntaxNode forEachSyntax, 495private BoundExpression ConvertReceiverForInvocation(CSharpSyntaxNode syntax, BoundExpression receiver, MethodSymbol method, Conversion receiverConversion, TypeSymbol convertedReceiverType) 538private BoundExpression SynthesizeCall(MethodArgumentInfo methodArgumentInfo, CSharpSyntaxNode syntax, BoundExpression? receiver, bool allowExtensionAndOptionalParameters, BoundExpression? firstRewrittenArgument) 617var forEachSyntax = (CSharpSyntaxNode)node.Syntax; 810CSharpSyntaxNode syntax, 907var forEachSyntax = (CSharpSyntaxNode)node.Syntax; 1056var forEachSyntax = (CSharpSyntaxNode)node.Syntax; 1232private static BoundLocal MakeBoundLocal(CSharpSyntaxNode syntax, LocalSymbol local, TypeSymbol type) 1240private BoundStatement MakeLocalDeclaration(CSharpSyntaxNode syntax, LocalSymbol local, BoundExpression rewrittenInitialValue) 1252private BoundStatement MakePositionIncrement(CSharpSyntaxNode syntax, BoundLocal boundPositionVar, TypeSymbol intType)
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
160var diagnosticSyntax = factory.CurrentFunction.GetNonNullSyntaxNode(); 175var diagnosticSyntax = factory.CurrentFunction.GetNonNullSyntaxNode(); 189var diagnosticSyntax = factory.CurrentFunction.GetNonNullSyntaxNode();
Lowering\SyntheticBoundNodeFactory.cs (1)
1197public BoundStatement SequencePointWithSpan(CSharpSyntaxNode syntax, TextSpan span, BoundStatement statement)
Parser\BlendedNode.cs (2)
15internal readonly CSharp.CSharpSyntaxNode Node; 19internal BlendedNode(CSharp.CSharpSyntaxNode node, SyntaxToken token, Blender blender)
Parser\Blender.cs (3)
35public Blender(Lexer lexer, CSharp.CSharpSyntaxNode oldTree, IEnumerable<TextChangeRange> changes) 112CSharp.CSharpSyntaxNode oldTree, 160private static bool IsInsideInterpolation(CSharp.CSharpSyntaxNode oldTree, int start)
Parser\Blender.Cursor.cs (2)
38public static Cursor FromRoot(CSharp.CSharpSyntaxNode node) 117var index = SyntaxNodeOrToken.GetFirstChildIndexSpanningPosition(children, ((CSharp.CSharpSyntaxNode)node).Position);
Parser\Blender.Reader.cs (4)
210node: (CSharp.CSharpSyntaxNode)currentNodeOrToken.AsNode(), 264(nodeOrToken.IsNode && IsIncomplete((CSharp.CSharpSyntaxNode)nodeOrToken.AsNode()))) 291private static bool IsIncomplete(CSharp.CSharpSyntaxNode node) 314private BlendedNode CreateBlendedNode(CSharp.CSharpSyntaxNode node, SyntaxToken token)
Parser\LanguageParser.cs (8)
39CSharp.CSharpSyntaxNode? oldTree, 140private static CSharp.CSharpSyntaxNode? GetOldParent(CSharp.CSharpSyntaxNode node) 4658CSharp.CSharpSyntaxNode parent = parameter.Parent; 4666CSharp.CSharpSyntaxNode grandparent = parent.Parent; 5113private static SyntaxTokenList GetOriginalModifiers(CSharp.CSharpSyntaxNode decl) 5163var parent = GetOldParent(old); 13852CSharp.CSharpSyntaxNode current = this.CurrentNode;
Parser\SyntaxParser.cs (4)
54CSharp.CSharpSyntaxNode oldTree, 250protected CSharp.CSharpSyntaxNode CurrentNode 260var node = _currentNode.Node; 275var cn = this.CurrentNode;
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
378internal static ArrowExpressionClauseSyntax GetExpressionBodySyntax(CSharpSyntaxNode node)
Symbols\Attributes\SourceAttributeData.cs (1)
126internal CSharpSyntaxNode GetAttributeArgumentSyntax(int parameterIndex)
Symbols\LexicalSortKey.cs (1)
82public LexicalSortKey(CSharpSyntaxNode node, CSharpCompilation compilation)
Symbols\MethodSymbolExtensions.cs (3)
192internal static CSharpSyntaxNode ExtractReturnTypeSyntax(this MethodSymbol method) 196return (CSharpSyntaxNode)synthesized.ReturnTypeSyntax; 213return (CSharpSyntaxNode)CSharpSyntaxTree.Dummy.GetRoot();
Symbols\NamespaceOrTypeSymbol.cs (1)
210CSharpSyntaxNode syntax)
Symbols\ReducedExtensionMethodSymbol.cs (2)
140var syntax = (CSharpSyntaxNode)syntaxTree.GetRoot();
Symbols\Source\ModifierUtils.cs (1)
118internal static void CheckScopedModifierAvailability(CSharpSyntaxNode syntax, SyntaxToken modifier, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceConstructorSymbol.cs (1)
117protected override CSharpSyntaxNode GetInitializer()
Symbols\Source\SourceConstructorSymbolBase.cs (7)
25CSharpSyntaxNode syntax, 35var syntax = (CSharpSyntaxNode)syntaxReferenceOpt.GetSyntax(); 175var ctorSyntax = (CSharpSyntaxNode)syntaxReferenceOpt.GetSyntax(); 194var ctorInitializer = GetInitializer(); 224protected abstract CSharpSyntaxNode GetInitializer();
Symbols\Source\SourceEventSymbol.cs (4)
41CSharpSyntaxNode syntax, 142var syntax = this.CSharpSyntaxNode; 418internal CSharpSyntaxNode CSharpSyntaxNode 420get { return (CSharpSyntaxNode)_syntaxRef.GetSyntax(); }
Symbols\Source\SourceFieldSymbol.cs (2)
197public CSharpSyntaxNode SyntaxNode 201return (CSharpSyntaxNode)_syntaxReference.GetSyntax();
Symbols\Source\SourceLabelSymbol.cs (1)
91CSharpSyntaxNode? node = null;
Symbols\Source\SourceMemberContainerSymbol.cs (6)
2831private static bool All<T>(SyntaxList<T> list, Func<T, bool> predicate) where T : CSharpSyntaxNode 2914public void UpdateIsNullableEnabledForConstructorsAndFields(bool useStatic, CSharpCompilation compilation, CSharpSyntaxNode syntax) 3161public void UpdateIsNullableEnabledForConstructorsAndFields(bool useStatic, CSharpCompilation compilation, CSharpSyntaxNode syntax) 3606internal Binder GetBinder(CSharpSyntaxNode syntaxNode) 4025private static void AddInitializer(ref ArrayBuilder<FieldOrPropertyInitializer>? initializers, FieldSymbol? fieldOpt, CSharpSyntaxNode node) 4535var syntax = param.GetNonNullSyntaxNode();
Symbols\Source\SourceMemberFieldSymbol.cs (1)
406private static BaseFieldDeclarationSyntax GetFieldDeclaration(CSharpSyntaxNode declarator)
Symbols\Source\SourceMemberMethodSymbol.cs (2)
739CSharpSyntaxNode contextNode = GetInMethodSyntaxNode(); 1135CSharpSyntaxNode bodySyntax = null;
Symbols\Source\SourceMethodSymbolWithAttributes.cs (9)
43protected CSharpSyntaxNode? GetInMethodSyntaxNode() 48return constructor.Initializer ?? (CSharpSyntaxNode?)constructor.Body ?? constructor.ExpressionBody; 50return (CSharpSyntaxNode?)method.Body ?? method.ExpressionBody; 52return (CSharpSyntaxNode?)accessor.Body ?? accessor.ExpressionBody; 58return (CSharpSyntaxNode?)localFunction.Body ?? localFunction.ExpressionBody; 60return (CSharpSyntaxNode)entryPoint.ReturnTypeSyntax; 85internal CSharpSyntaxNode SyntaxNode 89return (this.syntaxReferenceOpt == null) ? null : (CSharpSyntaxNode)this.syntaxReferenceOpt.GetSyntax(); 1387var returnTypeSyntax = this.ExtractReturnTypeSyntax();
Symbols\Source\SourceNamedTypeSymbol.cs (7)
109private static SyntaxToken GetName(CSharpSyntaxNode node) 152var typeDecl = (CSharpSyntaxNode)syntaxRef.GetSyntax(); 327var constraintClauses = GetConstraintClauses((CSharpSyntaxNode)syntaxRef.GetSyntax(), out TypeParameterListSyntax typeParameterList); 385if (GetConstraintClauses((CSharpSyntaxNode)decl.SyntaxReference.GetSyntax(), out _).Count != 0) 408var constraintClauses = GetConstraintClauses((CSharpSyntaxNode)syntaxRef.GetSyntax(), out TypeParameterListSyntax typeParameterList); 464private static SyntaxList<TypeParameterConstraintClauseSyntax> GetConstraintClauses(CSharpSyntaxNode node, out TypeParameterListSyntax typeParameterList)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (25)
21public Imports GetImports(CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 64private AliasesAndUsings GetAliasesAndUsings(CSharpSyntaxNode declarationSyntax) 69private SingleNamespaceDeclaration GetMatchingNamespaceDeclaration(CSharpSyntaxNode declarationSyntax) 102private AliasesAndUsings GetAliasesAndUsingsForAsserts(CSharpSyntaxNode declarationSyntax) 112public ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(CSharpSyntaxNode declarationSyntax) 143public ImmutableArray<AliasAndUsingDirective> GetUsingAliases(CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 174public ImmutableDictionary<string, AliasAndUsingDirective> GetUsingAliasesMap(CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 206public ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsingNamespacesOrTypes(CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 413internal ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax) 420return (_lazyExternAliases ?? GetExternAliasesAndDiagnostics(declaringSymbol, (CSharpSyntaxNode)declarationSyntax.GetSyntax())).ExternAliases; 423private ExternAliasesAndDiagnostics GetExternAliasesAndDiagnostics(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax) 510internal ImmutableArray<AliasAndUsingDirective> GetUsingAliases(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 515internal ImmutableArray<AliasAndUsingDirective> GetGlobalUsingAliases(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 520internal ImmutableDictionary<string, AliasAndUsingDirective> GetUsingAliasesMap(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 527return (_lazyGlobalUsings ?? GetGlobalUsingsAndDiagnostics(declaringSymbol, (CSharpSyntaxNode)declarationSyntax.GetSyntax(), basesBeingResolved)).UsingAliasesMap ?? ImmutableDictionary<string, AliasAndUsingDirective>.Empty; 530internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsingNamespacesOrTypes(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 535private UsingsAndDiagnostics GetUsingsAndDiagnostics(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 542return (_lazyGlobalUsings ?? GetGlobalUsingsAndDiagnostics(declaringSymbol, (CSharpSyntaxNode)declarationSyntax.GetSyntax(), basesBeingResolved)).UsingNamespacesOrTypes; 545private UsingsAndDiagnostics GetGlobalUsingsAndDiagnostics(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 550private UsingsAndDiagnostics GetUsingsAndDiagnostics(ref UsingsAndDiagnostics? usings, SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved, bool onlyGlobal) 618CSharpSyntaxNode declarationSyntax, 898internal Imports GetImports(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved) 914var externAliasesAndDiagnostics = _lazyExternAliases ?? GetExternAliasesAndDiagnostics(declaringSymbol, (CSharpSyntaxNode)declarationSyntax.GetSyntax(cancellationToken)); 919GetGlobalUsingsAndDiagnostics(declaringSymbol, (CSharpSyntaxNode)declarationSyntax.GetSyntax(cancellationToken), basesBeingResolved: null) : 923var usingsAndDiagnostics = _lazyUsings ?? GetUsingsAndDiagnostics(declaringSymbol, (CSharpSyntaxNode)declarationSyntax.GetSyntax(cancellationToken), basesBeingResolved: null);
Symbols\Source\SourceOrdinaryMethodSymbolBase.cs (1)
32CSharpSyntaxNode syntax,
Symbols\Source\SourcePropertyAccessorSymbol.cs (7)
91CSharpSyntaxNode syntax, 117CSharpSyntaxNode syntax, 178CSharpSyntaxNode syntax, 405var syntax = this.GetSyntax(); 587internal CSharpSyntaxNode GetSyntax() 590return (CSharpSyntaxNode)syntaxReferenceOpt.GetSyntax(); 657var syntax = this.GetSyntax();
Symbols\Source\SourcePropertySymbol.cs (5)
216CSharpSyntaxNode syntaxNode, 545var syntax = CSharpSyntaxNode; 556var syntax = CSharpSyntaxNode; 640private ImmutableArray<ParameterSymbol> ComputeParameters(Binder binder, CSharpSyntaxNode syntax, BindingDiagnosticBag diagnostics) 778private static BaseParameterListSyntax? GetParameterListSyntax(CSharpSyntaxNode syntax)
Symbols\Source\SourcePropertySymbolBase.cs (4)
81CSharpSyntaxNode syntax, 240CSharpSyntaxNode syntax = CSharpSyntaxNode; 839internal CSharpSyntaxNode CSharpSyntaxNode 843return (CSharpSyntaxNode)_syntaxRef.GetSyntax();
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
30CSharpSyntaxNode syntax,
Symbols\Symbol.cs (6)
492/// <see cref="CSharpSyntaxNode"/> or <see cref="SyntaxReference"/>. 495where TNode : CSharpSyntaxNode 516CSharpSyntaxNode node = token.Parent.FirstAncestorOrSelf<TNode>(); 1494CSharpSyntaxNode block, 1495CSharpSyntaxNode expression, 1496CSharpSyntaxNode syntax,
Symbols\SymbolExtensions.cs (3)
359internal static CSharpSyntaxNode GetNonNullSyntaxNode(this Symbol? symbol) 376return (CSharpSyntaxNode)reference.GetSyntax(); 380return (CSharpSyntaxNode)CSharpSyntaxTree.Dummy.GetRoot();
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
83protected override CSharpSyntaxNode? GetInitializer()
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (3)
21syntax: (CSharpSyntaxNode)containingType.SyntaxReferences[0].GetSyntax(), 71(CSharpSyntaxNode)((SourceMemberContainerTypeSymbol)ContainingType).SyntaxReferences[0].GetSyntax(), 138CSharpSyntaxNode syntax,
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperatorBase.cs (1)
39: base(MethodKind.UserDefinedOperator, explicitInterfaceType: null, name, containingType, containingType.GetFirstLocation(), (CSharpSyntaxNode)containingType.SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordOrdinaryMethod.cs (1)
24: base(containingType, name, containingType.GetFirstLocation(), (CSharpSyntaxNode)containingType.SyntaxReferences[0].GetSyntax(),
Symbols\Synthesized\Records\SynthesizedRecordPropertySymbol.cs (2)
18CSharpSyntaxNode syntax, 78CSharpSyntaxNode syntax,
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (7)
285private static CSharpSyntaxNode DummySyntax() 288return (CSharpSyntaxNode)syntaxTree.GetRoot(); 291private static BoundCall CreateParameterlessCall(CSharpSyntaxNode syntax, BoundExpression receiver, ThreeState receiverIsSubjectToCloning, MethodSymbol method) 332private readonly CSharpSyntaxNode _userMainReturnTypeSyntax; 396var syntax = _userMainReturnTypeSyntax; 467var syntax = DummySyntax(); 565var syntax = DummySyntax();
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
221var syntaxNode = SyntaxNode;
Symbols\Tuples\TupleErrorFieldSymbol.cs (1)
129GetDeclaringSyntaxReferenceHelper<CSharpSyntaxNode>(_locations);
Symbols\Tuples\TupleFieldSymbol.cs (1)
189GetDeclaringSyntaxReferenceHelper<CSharpSyntaxNode>(_locations);
Symbols\Tuples\TupleTypeSymbol.cs (4)
39CSharpSyntaxNode? syntax = null, 74static NamedTypeSymbol getTupleUnderlyingType(ImmutableArray<TypeWithAnnotations> elementTypes, CSharpSyntaxNode? syntax, CSharpCompilation compilation, BindingDiagnosticBag? diagnostics) 252private static void ReportUseSiteAndObsoleteDiagnostics(CSharpSyntaxNode? syntax, BindingDiagnosticBag diagnostics, NamedTypeSymbol firstTupleType) 261internal static void VerifyTupleTypePresent(int cardinality, CSharpSyntaxNode? syntax, CSharpCompilation compilation, BindingDiagnosticBag diagnostics)
Symbols\Wrapped\WrappedNamedTypeSymbol.cs (1)
146return GetDeclaringSyntaxReferenceHelper<CSharpSyntaxNode>(TupleData.Locations);
Syntax\AnonymousFunctionExpressionSyntax.cs (3)
15public CSharpSyntaxNode Body => Block ?? (CSharpSyntaxNode)ExpressionBody!; 17public AnonymousFunctionExpressionSyntax WithBody(CSharpSyntaxNode body)
Syntax\AnonymousMethodExpressionSyntax.cs (2)
14public new AnonymousMethodExpressionSyntax WithBody(CSharpSyntaxNode body) 19public AnonymousMethodExpressionSyntax Update(SyntaxToken asyncKeyword, SyntaxToken delegateKeyword, ParameterListSyntax parameterList, CSharpSyntaxNode body)
Syntax\CSharpSyntaxNode.cs (14)
58private static SyntaxTree ComputeSyntaxTree(CSharpSyntaxNode node) 60ArrayBuilder<CSharpSyntaxNode>? nodes = null; 72var parent = node.Parent; 90(nodes ?? (nodes = ArrayBuilder<CSharpSyntaxNode>.GetInstance())).Add(node); 125internal new CSharpSyntaxNode? Parent 129return (CSharpSyntaxNode?)base.Parent; 133internal new CSharpSyntaxNode? ParentOrStructuredTriviaParent 137return (CSharpSyntaxNode?)base.ParentOrStructuredTriviaParent; 391SyntaxToken triviaToken = ((CSharpSyntaxNode)trivia.GetStructure()!).FindTokenInternal(position); 396CSharpSyntaxNode? curr = (CSharpSyntaxNode?)triviaToken.Parent; 507return SyntaxNodeRemover.RemoveNodes(this, nodes.Cast<CSharpSyntaxNode>(), options).AsRootOfNewTreeWithOptionsFrom(this.SyntaxTree); 517return SyntaxFactory.AreEquivalent(this, (CSharpSyntaxNode)node, topLevel); 524var parent = this.Parent;
Syntax\CSharpSyntaxRewriter.cs (4)
14/// Represents a <see cref="CSharpSyntaxVisitor{TResult}"/> which descends an entire <see cref="CSharpSyntaxNode"/> graph and 41var result = ((CSharpSyntaxNode)node).Accept(this); 121var structure = (CSharpSyntaxNode)trivia.GetStructure()!;
Syntax\CSharpSyntaxTree.cs (18)
71/// Produces a clone of a <see cref="CSharpSyntaxNode"/> which will have current syntax tree as its parent. 73/// Caller must guarantee that if the same instance of <see cref="CSharpSyntaxNode"/> makes multiple calls 79protected T CloneNodeAsRoot<T>(T node) where T : CSharpSyntaxNode 81return CSharpSyntaxNode.CloneNodeAsRoot(node, this); 87public new abstract CSharpSyntaxNode GetRoot(CancellationToken cancellationToken = default); 92public abstract bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root); 101public new virtual Task<CSharpSyntaxNode> GetRootAsync(CancellationToken cancellationToken = default) 103return Task.FromResult(this.TryGetRoot(out CSharpSyntaxNode? node) ? node : this.GetRoot(cancellationToken)); 314public static SyntaxTree Create(CSharpSyntaxNode root, CSharpParseOptions? options = null, string? path = "", Encoding? encoding = null) 331CSharpSyntaxNode root, 358CSharpSyntaxNode root, 380internal static SyntaxTree CreateForDebugger(CSharpSyntaxNode root, SourceText text, CSharpParseOptions options) 389/// Internal helper for <see cref="CSharpSyntaxNode"/> class to create a new syntax tree rooted at the given root node. 392/// <para>NOTE: This method is only intended to be used from <see cref="CSharpSyntaxNode.SyntaxTree"/> property.</para> 393/// <para>NOTE: Do not use this method elsewhere, instead use <see cref="Create(CSharpSyntaxNode, CSharpParseOptions, string, Encoding)"/> method for creating a syntax tree.</para> 395internal static SyntaxTree CreateWithoutClone(CSharpSyntaxNode root) 885if (this.TryGetRoot(out CSharpSyntaxNode? node)) 934CSharpSyntaxNode root,
Syntax\CSharpSyntaxTree.DebuggerSyntaxTree.cs (1)
16public DebuggerSyntaxTree(CSharpSyntaxNode root, SourceText text, CSharpParseOptions options)
Syntax\CSharpSyntaxTree.Dummy.cs (3)
73public override CSharpSyntaxNode GetRoot(CancellationToken cancellationToken) 78public override bool TryGetRoot(out CSharpSyntaxNode root) 95=> Create((CSharpSyntaxNode)root, (CSharpParseOptions)options, FilePath, Encoding, ChecksumAlgorithm);
Syntax\CSharpSyntaxTree.LazySyntaxTree.cs (8)
23private CSharpSyntaxNode? _lazyRoot; 65public override CSharpSyntaxNode GetRoot(CancellationToken cancellationToken) 71var root = CloneNodeAsRoot((CSharpSyntaxNode)tree.GetRoot(cancellationToken)); 79public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root) 122(CSharpSyntaxNode)root, 135if (TryGetRoot(out var root)) 167if (TryGetRoot(out var root))
Syntax\CSharpSyntaxTree.ParsedSyntaxTree.cs (5)
24private readonly CSharpSyntaxNode _root; 37CSharpSyntaxNode root, 88public override CSharpSyntaxNode GetRoot(CancellationToken cancellationToken) 93public override bool TryGetRoot(out CSharpSyntaxNode root) 136(CSharpSyntaxNode)root,
Syntax\CSharpSyntaxVisitor.cs (4)
8/// Represents a <see cref="CSharpSyntaxNode"/> visitor that visits only the single CSharpSyntaxNode 21return ((CSharpSyntaxNode)node).Accept(this); 35/// Represents a <see cref="CSharpSyntaxNode"/> visitor that visits only the single CSharpSyntaxNode 44((CSharpSyntaxNode)node).Accept(this);
Syntax\CSharpSyntaxWalker.cs (4)
8/// Represents a <see cref="CSharpSyntaxVisitor"/> that descends an entire <see cref="CSharpSyntaxNode"/> graph 29((CSharpSyntaxNode)node).Accept(this); 43var child = ChildSyntaxList.ItemInternal((CSharpSyntaxNode)node, i, ref slotData); 99this.Visit((CSharpSyntaxNode)trivia.GetStructure()!);
Syntax\LambdaExpressionSyntax.cs (1)
12public new LambdaExpressionSyntax WithBody(CSharpSyntaxNode body)
Syntax\LambdaUtilities.cs (1)
127LocalFunctionStatementSyntax localFunctionStatementSyntax => (CSharpSyntaxNode?)localFunctionStatementSyntax.Body ?? localFunctionStatementSyntax.ExpressionBody!.Expression,
Syntax\LookupPosition.cs (2)
88private static bool IsBeforeToken(int position, CSharpSyntaxNode node, SyntaxToken firstExcluded) 478CSharpSyntaxNode body;
Syntax\NamespaceDeclarationSyntaxReference.cs (2)
30var node = (CSharpSyntaxNode)reference.GetSyntax(cancellationToken);
Syntax\ParenthesizedLambdaExpressionSyntax.cs (2)
11public new ParenthesizedLambdaExpressionSyntax WithBody(CSharpSyntaxNode body) 16public ParenthesizedLambdaExpressionSyntax Update(SyntaxToken asyncKeyword, ParameterListSyntax parameterList, SyntaxToken arrowToken, CSharpSyntaxNode body)
Syntax\SimpleLambdaExpressionSyntax.cs (2)
11public new SimpleLambdaExpressionSyntax WithBody(CSharpSyntaxNode body) 16public SimpleLambdaExpressionSyntax Update(SyntaxToken asyncKeyword, ParameterSyntax parameter, SyntaxToken arrowToken, CSharpSyntaxNode body)
Syntax\SyntaxExtensions.cs (4)
21internal static ArrowExpressionClauseSyntax? GetExpressionBodySyntax(this CSharpSyntaxNode node) 134CSharpSyntaxNode parentSyntax = attributeSyntax.Parent; 233private static bool IsInContextWhichNeedsDynamicAttribute(CSharpSyntaxNode node) 343internal static CSharpSyntaxNode? GetContainingDeconstruction(this ExpressionSyntax expr)
Syntax\SyntaxFactory.cs (16)
1548=> CSharpSyntaxTree.Create((CSharpSyntaxNode)root, (CSharpParseOptions?)options ?? CSharpParseOptions.Default, path, encoding, SourceHashAlgorithm.Sha1); 2013where TNode : CSharpSyntaxNode 2118internal static CSharpSyntaxNode? GetStandaloneNode(CSharpSyntaxNode? node) 2141CSharpSyntaxNode? parent = node.Parent; 2188CSharpSyntaxNode? grandparent = parent.Parent; 2243internal static ConditionalAccessExpressionSyntax? FindConditionalAccessNodeForBinding(CSharpSyntaxNode node) 2245var currentNode = node; 2743public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(ParameterSyntax parameter, CSharpSyntaxNode body) 2748public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxToken asyncKeyword, ParameterSyntax parameter, SyntaxToken arrowToken, CSharpSyntaxNode body) 2753public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(CSharpSyntaxNode body) 2756public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(ParameterListSyntax parameterList, CSharpSyntaxNode body) 2761public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxToken asyncKeyword, ParameterListSyntax parameterList, SyntaxToken arrowToken, CSharpSyntaxNode body) 2766public static AnonymousMethodExpressionSyntax AnonymousMethodExpression(CSharpSyntaxNode body) 2769public static AnonymousMethodExpressionSyntax AnonymousMethodExpression(ParameterListSyntax? parameterList, CSharpSyntaxNode body) 2774public static AnonymousMethodExpressionSyntax AnonymousMethodExpression(SyntaxToken asyncKeyword, SyntaxToken delegateKeyword, ParameterListSyntax parameterList, CSharpSyntaxNode body)
Syntax\SyntaxNodeExtensions.cs (3)
13public static TNode WithAnnotations<TNode>(this TNode node, params SyntaxAnnotation[] annotations) where TNode : CSharpSyntaxNode 116CSharpSyntaxNode? parent = expression?.Parent; 187internal static CSharpSyntaxNode AnonymousFunctionBody(this SyntaxNode lambda)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
778if (declaration is not CSharpSyntaxNode syntaxNode) 914if (declaration is CSharpSyntaxNode syntaxNode)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
FlowAnalysis\FlowTestBase.cs (2)
216where T : CSharpSyntaxNode 222where T : CSharpSyntaxNode
Semantics\PatternMatchingTestBase.cs (1)
455where T : CSharpSyntaxNode
Microsoft.CodeAnalysis.CSharp.Features (11)
ChangeSignature\CSharpChangeSignatureService.cs (3)
298var updatedNode = potentiallyUpdatedNode as CSharpSyntaxNode; 770CSharpSyntaxNode node,
ConvertLinq\CSharpConvertLinqQueryToForEachProvider.cs (6)
109CSharpSyntaxNode node, 800var node = stack.Pop(); 955public Stack<CSharpSyntaxNode> Stack { get; private set; } 961Stack = new Stack<CSharpSyntaxNode>(); 966public bool TryAdd(CSharpSyntaxNode node, SyntaxToken identifier) 979public void Add(CSharpSyntaxNode node) => Stack.Push(node);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
378internal static ArrowExpressionClauseSyntax GetExpressionBodySyntax(CSharpSyntaxNode node)
src\Compilers\CSharp\Portable\Syntax\LambdaUtilities.cs (1)
127LocalFunctionStatementSyntax localFunctionStatementSyntax => (CSharpSyntaxNode?)localFunctionStatementSyntax.Body ?? localFunctionStatementSyntax.ExpressionBody!.Expression,
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (16)
Semantics\ImportsTests.cs (2)
113var binder = comp.GetBinderFactory(tree).GetInNamespaceBinder((CSharpSyntaxNode)tree.GetRoot()); 150var binders = factories.Select(factory => factory.GetInNamespaceBinder((CSharpSyntaxNode)factory.SyntaxTree.GetRoot()));
Semantics\LocalFunctionTests.cs (2)
7381static IdentifierNameSyntax getTParameter(CSharpSyntaxNode node) 8962static IdentifierNameSyntax getParameter(CSharpSyntaxNode node)
Semantics\NullableContextTests.cs (1)
583static void verifyContextState(CSharpSyntaxTree tree, CSharpSyntaxNode syntax, NullableContextState.State expectedWarningsState, NullableContextState.State expectedAnnotationsState)
Semantics\SyntaxTreeRootTests.cs (2)
81var syntaxTreeField = typeof(CSharpSyntaxNode).GetFields(BindingFlags.NonPublic | BindingFlags.Instance).Single(f => f.FieldType == typeof(SyntaxTree)); 114Assert.Throws<ArgumentNullException>(() => { tree.GetDiagnostics((CSharpSyntaxNode)null); });
Semantics\TopLevelStatementsTests.cs (9)
7066var node = (CSharpSyntaxNode)context.Node; 7086var decl = (CSharpSyntaxNode)context.ContainingSymbol.DeclaringSyntaxReferences.Single().GetSyntax(); 7100var node = (CSharpSyntaxNode)context.Node; 7181var node = (CSharpSyntaxNode)context.Node; 8791(CSharpSyntaxNode)oldTree.GetRoot(), new[] { new TextChangeRange(new TextSpan(282, 0), 1) });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
DeclarationTests.cs (3)
923return (CSharpSyntaxNode)node; 955public override CSharpSyntaxNode GetRoot(CancellationToken cancellationToken = default(CancellationToken)) 961public override bool TryGetRoot(out CSharpSyntaxNode root)
Symbols\Source\DeclaringSyntaxNodeTests.cs (1)
135where TNode : CSharpSyntaxNode
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (71)
LexicalAndXml\PreprocessorTests.cs (5)
120private void VerifyDirectives(CSharpSyntaxNode node, params SyntaxKind[] expected) 143private void VerifyDirectivesSpecial(CSharpSyntaxNode node, params DirectiveInfo[] expected) 293private void VerifyDirectivePragma(CSharpSyntaxNode node, PragmaInfo expected) 387private void VerifyErrorCode(CSharpSyntaxNode node, params int[] expected) 412private void VerifyErrorSpecial(CSharpSyntaxNode node, DirectiveInfo expected)
LexicalAndXml\XmlDocCommentTests.cs (1)
3295private void VerifyDiagnostics(CSharpSyntaxNode node, List<TestError> errors)
ParentChecker.cs (1)
34CheckParents((CSharpSyntaxNode)trivia.GetStructure(), expectedSyntaxTree);
Parsing\AsyncParsingTests.cs (1)
24protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options = null)
Parsing\AsyncStreamsParsingTests.cs (1)
25protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options = null)
Parsing\AwaitParsingTests.cs (1)
22protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options = null)
Parsing\CrefParsingTests.cs (1)
26protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options)
Parsing\DeclarationParsingTests.cs (4)
6982var tree = UsingNode(@" 7025var tree = UsingNode(@" 7068var tree = UsingNode(@" 7160var tree = UsingNode(@"
Parsing\ExpressionParsingTests.cs (1)
801private void TestParenthesizedArgument(SyntaxToken openParen, CSharpSyntaxNode arg, SyntaxToken closeParen)
Parsing\FileModifierParsingTests.cs (1)
36Validate(text, (CSharpSyntaxNode)tree.GetRoot(), expectedParsingDiagnostics);
Parsing\LambdaAttributeParsingTests.cs (1)
27protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions? options)
Parsing\LambdaParameterParsingTests.cs (2)
25protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options) 646var tree = UsingNode(@"(int a, int b Main();");
Parsing\LambdaReturnTypeParsingTests.cs (1)
21protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions? options)
Parsing\LineSpanDirectiveParsingTests.cs (1)
23protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions? options)
Parsing\NameAttributeValueParsingTests.cs (1)
27protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options)
Parsing\ParsingTests.cs (10)
22private CSharpSyntaxNode? _node; 86protected virtual CSharpSyntaxNode ParseNode(string text, CSharpParseOptions? options) => 126protected void UsingNode(string text, CSharpSyntaxNode node, params DiagnosticDescription[] expectedErrors) 132protected void Validate(string text, CSharpSyntaxNode node, params DiagnosticDescription[] expectedErrors) 170protected CSharpSyntaxNode UsingNode(string text) 172var root = ParseNode(text, options: null); 177protected CSharpSyntaxNode UsingNode(string text, CSharpParseOptions options, params DiagnosticDescription[] expectedErrors) 179var node = ParseNode(text, options); 187protected void UsingNode(CSharpSyntaxNode root) 257private IEnumerable<SyntaxNodeOrToken> EnumerateNodes(CSharpSyntaxNode node, bool dump)
Parsing\RecordParsing.cs (2)
278UsingNode((CSharpSyntaxNode)tree.GetRoot()); 311UsingNode((CSharpSyntaxNode)tree.GetRoot());
Parsing\SuppressNullableWarningExpressionParsingTests.cs (1)
21protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options)
Parsing\VerbatimCrefParsingTests.cs (1)
26protected override CSharpSyntaxNode ParseNode(string text, CSharpParseOptions options)
Syntax\Mocks\MockCSharpSyntaxTree.cs (5)
17private readonly CSharpSyntaxNode? _root; 23CSharpSyntaxNode? root = null, 49public override CSharpSyntaxNode GetRoot(CancellationToken cancellationToken) 52public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root) 59=> new MockCSharpSyntaxTree((CSharpSyntaxNode)root, _sourceText, (CSharpParseOptions)options, FilePath);
Syntax\SeparatedSyntaxListTests.cs (11)
25EqualityTesting.AssertEqual(default(SeparatedSyntaxList<CSharpSyntaxNode>), default(SeparatedSyntaxList<CSharpSyntaxNode>)); 28new SeparatedSyntaxList<CSharpSyntaxNode>(new SyntaxNodeOrTokenList(node1, 0)), 29new SeparatedSyntaxList<CSharpSyntaxNode>(new SyntaxNodeOrTokenList(node1, 0))); 32new SeparatedSyntaxList<CSharpSyntaxNode>(new SyntaxNodeOrTokenList(node1, 0)), 33new SeparatedSyntaxList<CSharpSyntaxNode>(new SyntaxNodeOrTokenList(node1, 1))); 36new SeparatedSyntaxList<CSharpSyntaxNode>(new SyntaxNodeOrTokenList(node1, 0)), 37new SeparatedSyntaxList<CSharpSyntaxNode>(new SyntaxNodeOrTokenList(node2, 0))); 43Assert.Throws<NotSupportedException>(() => default(SeparatedSyntaxList<CSharpSyntaxNode>.Enumerator).GetHashCode()); 44Assert.Throws<NotSupportedException>(() => default(SeparatedSyntaxList<CSharpSyntaxNode>.Enumerator).Equals(default(SeparatedSyntaxList<CSharpSyntaxNode>.Enumerator)));
Syntax\SyntaxListTests.cs (9)
30EqualityTesting.AssertEqual(default(SyntaxList<CSharpSyntaxNode>), default(SyntaxList<CSharpSyntaxNode>)); 31EqualityTesting.AssertEqual(new SyntaxList<CSharpSyntaxNode>(node1), new SyntaxList<CSharpSyntaxNode>(node1)); 33EqualityTesting.AssertNotEqual(new SyntaxList<CSharpSyntaxNode>(node1), new SyntaxList<CSharpSyntaxNode>(node2)); 39Assert.Throws<NotSupportedException>(() => default(SyntaxList<CSharpSyntaxNode>.Enumerator).GetHashCode()); 40Assert.Throws<NotSupportedException>(() => default(SyntaxList<CSharpSyntaxNode>.Enumerator).Equals(default(SyntaxList<CSharpSyntaxNode>.Enumerator)));
Syntax\SyntaxNodeOrTokenListTests.cs (2)
24EqualityTesting.AssertEqual(default(SeparatedSyntaxList<CSharpSyntaxNode>), default(SeparatedSyntaxList<CSharpSyntaxNode>));
Syntax\SyntaxNormalizerTests.cs (1)
3978private static void TestNormalize(CSharpSyntaxNode node, string expected)
Syntax\SyntaxRewriterTests.cs (5)
590internal static bool IsStatementExpression(CSharpSyntaxNode expression) 695var red = isExpr ? (CSharpSyntaxNode)SyntaxFactory.ParseExpression(input) : SyntaxFactory.ParseStatement(input); 708var red = isExpr ? (CSharpSyntaxNode)SyntaxFactory.ParseExpression(input) : SyntaxFactory.ParseStatement(input);
Syntax\SyntaxTreeTests.cs (1)
332Assert.Equal(string.Empty, CSharpSyntaxTree.Create((CSharpSyntaxNode)oldTree.GetRoot()).FilePath);
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CodeGeneration\CSharpSyntaxGenerator.cs (5)
2162where TNode : CSharpSyntaxNode 2309return ((ParenthesizedLambdaExpressionSyntax)declaration).WithBody((CSharpSyntaxNode)expr ?? CreateBlock()); 2312return ((SimpleLambdaExpressionSyntax)declaration).WithBody((CSharpSyntaxNode)expr ?? CreateBlock()); 3580? SyntaxFactory.SimpleLambdaExpression(parameter, (CSharpSyntaxNode)expression) 3581: SyntaxFactory.ParenthesizedLambdaExpression(AsParameterList(parameters), (CSharpSyntaxNode)expression);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (2)
778if (declaration is not CSharpSyntaxNode syntaxNode) 914if (declaration is CSharpSyntaxNode syntaxNode)
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.cs (1)
61return new ParsedSyntaxTree(text, (CSharpSyntaxNode)root, (CSharpParseOptions)options, filePath, encoding, checksumAlgorithm);
Workspace\LanguageServices\CSharpSyntaxTreeFactoryService.ParsedSyntaxTree.cs (5)
19private readonly CSharpSyntaxNode _root; 30CSharpSyntaxNode root, 67public override CSharpSyntaxNode GetRoot(CancellationToken cancellationToken) 70public override bool TryGetRoot([NotNullWhen(true)] out CSharpSyntaxNode? root) 81(CSharpSyntaxNode)root,
Microsoft.CodeAnalysis.Test.Utilities (20)
Compilation\ControlFlowGraphVerifier.cs (20)
610CSharpSyntaxNode syntax = applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)candidate.Syntax); 653CSharpSyntaxNode syntax = applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)candidate.Syntax); 835CSharpSyntaxNode syntax = applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)captureReferenceSyntax); 867CSharpSyntaxNode referenceSyntax = applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)reference.Syntax); 880CSharpSyntaxNode referenceSyntax = applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)reference.Syntax); 911Syntax: CSharpSyntaxNode syntax 956binOpSyntax.Left == applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)reference.Syntax) && 957binOpSyntax.Right == applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)binOp.RightOperand.Syntax)) 1048CSharpSyntaxNode syntax = applyParenthesizedOrNullSuppressionIfAnyCS((CSharpSyntaxNode)isNull.Operand.Syntax); 1098var syntax = (CSharpSyntaxNode)captureReferenceSyntax; 1131CSharpSyntaxNode parent = syntax.Parent; 1282CSharpSyntaxNode applyParenthesizedOrNullSuppressionIfAnyCS(CSharpSyntaxNode syntax)
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
302CSharpSyntaxNode? methodBody = method.Body as CSharpSyntaxNode ?? method.ExpressionBody;
Microsoft.Maui.Controls.BindingSourceGen (1)
PathParser.cs (1)
18 internal Result<List<IPathPart>> ParsePath(CSharpSyntaxNode? expressionSyntax)