2 instantiations of LocalScope
Microsoft.CodeAnalysis (2)
CodeGen\LocalScopeManager.cs (2)
131result.Add(new Cci.LocalScope( 459var newScope = new Cci.LocalScope(
33 references to LocalScope
Microsoft.CodeAnalysis (33)
CodeGen\ILBuilder.cs (1)
210internal ImmutableArray<Cci.LocalScope> GetAllScopes() => _scopeManager.GetAllScopesWithLocals();
CodeGen\LocalScopeManager.cs (11)
120internal ImmutableArray<Cci.LocalScope> GetAllScopesWithLocals() 122var result = ArrayBuilder<Cci.LocalScope>.GetInstance(); 256internal abstract ScopeBounds GetLocalScopes(ArrayBuilder<Cci.LocalScope> result); 258protected static ScopeBounds GetLocalScopes<TScopeInfo>(ArrayBuilder<Cci.LocalScope> result, ImmutableArray<TScopeInfo>.Builder scopes) 426internal override ScopeBounds GetLocalScopes(ArrayBuilder<Cci.LocalScope> result) 459var newScope = new Cci.LocalScope( 812internal override ScopeBounds GetLocalScopes(ArrayBuilder<Cci.LocalScope> scopesWithVariables) 820var scopes = ArrayBuilder<Cci.LocalScope>.GetInstance(); 874private sealed class ScopeComparer : IComparer<Cci.LocalScope> 880public int Compare(Cci.LocalScope x, Cci.LocalScope y)
CodeGen\MethodBody.cs (3)
28private readonly ImmutableArray<Cci.LocalScope> _localScopes; 61ImmutableArray<Cci.LocalScope> localScopes, 133ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => _localScopes;
Emit\EditAndContinue\DeletedMethodBody.cs (2)
49public ImmutableArray<LocalScope> LocalScopes => ImmutableArray<LocalScope>.Empty;
Emit\NoPia\CommonEmbeddedMethod.cs (2)
142ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => 143ImmutableArray<Cci.LocalScope>.Empty;
NativePdbWriter\PdbWriter.cs (6)
447private void DefineLocalScopes(ImmutableArray<LocalScope> scopes, StandaloneSignatureHandle localSignatureHandleOpt) 453var scopeStack = ArrayBuilder<LocalScope>.GetInstance(); 457var currentScope = scopes[i]; 462LocalScope topScope = scopeStack.Last(); 481LocalScope scope = scopeStack[i]; 488private void DefineScopeLocals(LocalScope currentScope, StandaloneSignatureHandle localSignatureHandleOpt)
PEWriter\CustomDebugInfoWriter.cs (3)
167Func<LocalScope, ILocalDefinition, T> getInfo) 171foreach (var currentScope in methodBody.LocalScopes) 182builder.Add(getInfo(default(LocalScope), local));
PEWriter\Members.cs (1)
436ImmutableArray<LocalScope> LocalScopes { get; }
PEWriter\MetadataVisitor.cs (1)
263foreach (var scope in methodBody.LocalScopes)
PEWriter\MetadataWriter.PortablePdb.cs (1)
95foreach (LocalScope scope in bodyOpt.LocalScopes)
PEWriter\RootModuleStaticConstructor.cs (2)
146public ImmutableArray<LocalScope> LocalScopes => ImmutableArray<LocalScope>.Empty;