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)
208internal 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( 814internal override ScopeBounds GetLocalScopes(ArrayBuilder<Cci.LocalScope> scopesWithVariables) 822var scopes = ArrayBuilder<Cci.LocalScope>.GetInstance(); 876private sealed class ScopeComparer : IComparer<Cci.LocalScope> 882public int Compare(Cci.LocalScope x, Cci.LocalScope y)
CodeGen\MethodBody.cs (3)
28private readonly ImmutableArray<Cci.LocalScope> _localScopes; 62ImmutableArray<Cci.LocalScope> localScopes, 136ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => _localScopes;
Emit\EditAndContinue\DeletedMethodBody.cs (2)
40public ImmutableArray<Cci.LocalScope> LocalScopes => ImmutableArray<Cci.LocalScope>.Empty;
Emit\NoPia\CommonEmbeddedMethod.cs (2)
145ImmutableArray<Cci.LocalScope> Cci.IMethodBody.LocalScopes => 146ImmutableArray<Cci.LocalScope>.Empty;
NativePdbWriter\PdbWriter.cs (6)
461private void DefineLocalScopes(ImmutableArray<LocalScope> scopes, StandaloneSignatureHandle localSignatureHandleOpt) 467var scopeStack = ArrayBuilder<LocalScope>.GetInstance(); 471var currentScope = scopes[i]; 476LocalScope topScope = scopeStack.Last(); 495LocalScope scope = scopeStack[i]; 502private 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)
264foreach (var scope in methodBody.LocalScopes)
PEWriter\MetadataWriter.PortablePdb.cs (1)
95foreach (LocalScope scope in bodyOpt.LocalScopes)
PEWriter\RootModuleStaticConstructor.cs (2)
148public ImmutableArray<LocalScope> LocalScopes => ImmutableArray<LocalScope>.Empty;