4 writes to _currentScope
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (4)
84
_currentScope
= new LocalScope();
111
_currentScope
= null;
221
_currentScope
= newScope;
228
_currentScope
= _currentScope.parent;
17 references to _currentScope
dotnet-svcutil-lib (17)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (17)
135
System.Diagnostics.Debug.Assert(
_currentScope
!= null &&
_currentScope
.ContainsKey(name));
136
return
_currentScope
[name];
189
if (
_currentScope
!= null &&
_currentScope
.TryGetValue(name, out loc))
220
LocalScope newScope = new LocalScope(
_currentScope
);
226
Debug.Assert(
_currentScope
.parent != null);
227
_currentScope
.AddToFreeLocals(_freeLocals);
228
_currentScope =
_currentScope
.parent;
257
Debug.Assert(!
_currentScope
.ContainsKey(name));
263
_currentScope
[name] = local;
270
if (!
_currentScope
.TryGetValue(name, out local))
1288
Debug.Assert(
_currentScope
.ContainsKey(name));
1289
LocalBuilder local =
_currentScope
[name];
1296
if (!
_currentScope
.TryGetValue(name, out local))
1311
Debug.Assert(
_currentScope
.ContainsKey(name));
1312
LocalBuilder local =
_currentScope
[name];