2 instantiations of Scope
System.Reflection.Emit (2)
System\Reflection\Emit\ILGeneratorImpl.cs (2)
45
_scope = new
Scope
(_il.Offset, parent: null);
238
Scope newScope = new
Scope
(_il.Offset, _currentScope);
12 references to Scope
System.Reflection.Emit (12)
System\Reflection\Emit\ILGeneratorImpl.cs (9)
21
private readonly
Scope
_scope; // scope of the entire method body
22
private
Scope
_currentScope;
55
internal
Scope
Scope => _scope;
237
_currentScope._children ??= new List<
Scope
>();
238
Scope
newScope = new Scope(_il.Offset, _currentScope);
916
internal Scope(int offset,
Scope
? parent)
922
internal
Scope
? _parent;
923
internal List<
Scope
>? _children;
940
foreach (
Scope
child in _children)
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
440
Scope
scope = il.Scope;
513
private void AddLocalScope(MethodDefinitionHandle methodHandle, ImportScopeHandle parentImport, LocalVariableHandle firstLocalVariableHandle,
Scope
scope)
522
foreach (
Scope
childScope in scope._children)