4 writes to _currentScope
System.Private.Xml (4)
System\Xml\Serialization\CodeGenerator.cs (4)
92
_currentScope
= new LocalScope();
119
_currentScope
= null;
207
_currentScope
= newScope;
214
_currentScope
= _currentScope.parent;
17 references to _currentScope
System.Private.Xml (17)
System\Xml\Serialization\CodeGenerator.cs (17)
137
System.Diagnostics.Debug.Assert(
_currentScope
!= null &&
_currentScope
.ContainsKey(name));
138
return
_currentScope
[name]!;
183
if (
_currentScope
!= null &&
_currentScope
.TryGetValue(name, out loc))
206
LocalScope newScope = new LocalScope(
_currentScope
);
212
Debug.Assert(
_currentScope
!.parent != null);
213
_currentScope
.AddToFreeLocals(_freeLocals!);
214
_currentScope =
_currentScope
.parent;
243
Debug.Assert(!
_currentScope
!.ContainsKey(name));
249
_currentScope
[name] = local;
256
if (!
_currentScope
!.TryGetValue(name, out local))
930
Debug.Assert(
_currentScope
!.ContainsKey(name));
931
LocalBuilder local =
_currentScope
[name]!;
938
if (!
_currentScope
!.TryGetValue(name, out local))
953
Debug.Assert(
_currentScope
!.ContainsKey(name));
954
LocalBuilder local =
_currentScope
[name]!;