2 writes to Next
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder.cs (2)
41Next = next; 54Next = next;
106 references to Next
Microsoft.CodeAnalysis.CSharp (106)
Binder\Binder.cs (41)
93Debug.Assert(Next is not null); 94return Next; 167RoslynDebug.Assert(Next is object); 168return this.Next.GetBinder(node); 187RoslynDebug.Assert(Next is object); 188return this.Next.GetDeclaredLocalsForScope(scopeDesignator); 196RoslynDebug.Assert(Next is object); 197return this.Next.GetDeclaredLocalFunctionsForScope(scopeDesignator); 244RoslynDebug.Assert(Next is object); 245return Next.ContainingMemberOrLambda; 278RoslynDebug.Assert(Next is object); 279return Next.AreNullableAnnotationsGloballyEnabled(); 310RoslynDebug.Assert(Next is object); 311return Next.IsInMethodBody; 325RoslynDebug.Assert(Next is object); 326return Next.IsDirectlyInIterator; 341RoslynDebug.Assert(Next is object); 342return Next.IsIndirectlyInIterator; 355RoslynDebug.Assert(Next is object); 356return Next.BreakLabel; 369RoslynDebug.Assert(Next is object); 370return Next.ContinueLabel; 380RoslynDebug.Assert(Next is object); 381return Next.GetIteratorElementType(); 392RoslynDebug.Assert(Next is object); 393return Next.ImportChain; 405RoslynDebug.Assert(Next is object); 406return Next.QuickAttributeChecker; 414RoslynDebug.Assert(Next is object); 415return Next.InExecutableBinder; 465RoslynDebug.Assert(Next is object); 466return this.Next.ConstantFieldsInProgress; 474RoslynDebug.Assert(Next is object); 475return this.Next.FieldsBeingBound; 483RoslynDebug.Assert(Next is object); 484return this.Next.LocalInProgress; 496RoslynDebug.Assert(Next is object); 497return this.Next.ConditionalReceiverExpression; 849for (Binder? binder = this; binder != null; binder = binder.Next) 909for (Binder? scope = this; scope != null; scope = scope.Next) 918if (currentContainer != null && currentContainer != scope.Next?.ContainingMemberOrLambda)
Binder\Binder_Attributes.cs (1)
149result = result.Next!;
Binder\Binder_Expressions.cs (5)
100return Next.IsUnboundTypeAllowed(syntax); 1704current = current.Next; 1758binder = binder.Next; 1761if (binder is { Next: Binder withPrimaryConstructorParametersBinder }) 2239return Next.BindRangeVariable(node, qv, diagnostics);
Binder\Binder_Lookup.cs (4)
88for (var scope = this; scope != null && !result.IsMultiViable; scope = scope.Next) 1369for (var binder = this; binder != null; binder = binder.Next) 1704return Next.IsAccessibleHelper(symbol, accessThroughType, out failedThroughTypeCheck, ref useSiteInfo, basesBeingResolved); 1831for (var scope = this; scope != null; scope = scope.Next)
Binder\Binder_NameConflicts.cs (2)
102for (Binder? binder = this; binder != null; binder = binder.Next) 144this.Next?.ContainingMemberOrLambda != containingMemberOrLambda;
Binder\Binder_Patterns.cs (2)
159RoslynDebug.Assert(this.Next is { }); 160return this.Next.BindSwitchExpressionCore(node, originalBinder, diagnostics);
Binder\Binder_Statements.cs (15)
34get { return Next.LockedOrDisposedVariables; } 231Next?.ValidateYield(node, diagnostics); 304return this.Next.BindLockStatementParts(diagnostics, originalBinder); 316return this.Next.BindUsingStatementParts(diagnostics, originalBinder); 494binder.Next.LookupSymbolsWithFallback(result, node.Identifier.ValueText, arity: 0, useSiteInfo: ref useSiteInfo, options: LookupOptions.LabelsOnly); 1850return Next.LookupLocal(nameToken); 1855return Next.LookupLocalFunction(nameToken); 2744return this.Next.BindSwitchStatementCore(node, originalBinder, diagnostics); 2749this.Next.BindPatternSwitchLabelForInference(node, diagnostics); 2763return this.Next.BindWhileParts(diagnostics, originalBinder); 2776return this.Next.BindDoParts(diagnostics, originalBinder); 2788return this.Next.BindForParts(diagnostics, originalBinder); 2885return this.Next.BindForEachParts(diagnostics, originalBinder); 2893return this.Next.BindForEachDeconstruction(diagnostics, originalBinder); 2923binder = binder.Next;
Binder\Binder_Symbols.cs (2)
2612return Next?.GetForwardedToAssemblyInUsingNamespaces(metadataName, ref qualifierOpt, diagnostics, location); 2659binder = binder.Next;
Binder\ExecutableCodeBinder.cs (2)
50get { return _memberSymbol ?? Next.ContainingMemberOrLambda; } 61return this.BinderMap.TryGetValue(node, out binder) ? binder : Next.GetBinder(node);
Binder\ExtensionMethodScope.cs (2)
72_current = GetNextScope(binder.Next); 80for (var scope = binder; scope != null; scope = scope.Next)
Binder\InContainerBinder.cs (3)
66return Next.IsAccessibleHelper(symbol, accessThroughType, out failedThroughTypeCheck, ref useSiteInfo, basesBeingResolved); // delegate to containing Binder, eventually checking assembly. 99return Next.GetIteratorElementType(); 118if (Next is WithExternAndUsingAliasesBinder withUsingAliases && withUsingAliases.IsUsingAlias(name, originalBinder.IsSemanticModelBinder, basesBeingResolved))
Binder\InSubmissionClassBinder.cs (1)
74QuickAttributeChecker result = this.Next!.QuickAttributeChecker;
Binder\LocalBinderFactory.cs (4)
449possibleScopeBinder = possibleScopeBinder.Next; 1025Debug.Assert(!_map.TryGetValue(node, out existing) || existing == binder || existing == binder.Next || existing == binder.Next?.Next);
Binder\LocalScopeBinder.cs (1)
160currentBinder = currentBinder.Next;
Binder\LockOrUsingBinder.cs (1)
37ImmutableHashSet<Symbol> lockedOrDisposedVariables = this.Next.LockedOrDisposedVariables;
Binder\WithExternAndUsingAliasesBinder.cs (5)
72Debug.Assert(this.Next is WithUsingNamespacesAndTypesBinder); 171QuickAttributeChecker result = this.Next!.QuickAttributeChecker; 208var previous = Next!.ImportChain; 262return new ImportChain(Imports.Create(_usingAliases, ((WithUsingNamespacesAndTypesBinder)Next!).GetUsings(basesBeingResolved: null), _externAliases), Next!.ImportChain);
Binder\WithNullableContextBinder.cs (1)
27return Next.AreNullableAnnotationsEnabled(_syntaxTree, _position);
Binder\WithUsingNamespacesAndTypesBinder.cs (1)
234ImportChain? importChain = this.Next!.ImportChain;
Compilation\MemberSemanticModel.cs (5)
694for (var binder = this.GetEnclosingBinder(GetAdjustedNodePosition(declarationSyntax)); binder != null; binder = binder.Next) 737for (var binder = enclosingBinder; binder != null; binder = binder.Next) 759binder = binder.Next; 784binder = binder.Next; 2407Binder binder = this.Next.GetBinder(node);
Compilation\MethodBodySemanticModel.cs (2)
177binder = binder.Next; 181binder = binder.Next;
Compilation\SyntaxTreeSemanticModel.cs (2)
1928for (; binder != null; binder = binder.Next) 1961for (; binder != null; binder = binder.Next)
Compiler\MethodCompiler.cs (1)
1993current = current.Next!;
Symbols\Source\SourceLocalSymbol.cs (1)
548for (var binder = _initializerBinder; binder != null; binder = binder.Next)
Symbols\Source\SourceMemberMethodSymbol.cs (1)
755current = current.Next;
Symbols\Symbol_Attributes.cs (1)
788if (binders[i] != earlyBinder.Next)