4 writes to currentScope
System.Xml (4)
System\Xml\Serialization\CodeGenerator.cs (4)
98
this.
currentScope
= new LocalScope();
123
currentScope
= null;
217
this.
currentScope
= newScope;
224
this.
currentScope
= this.currentScope.parent;
17 references to currentScope
System.Xml (17)
System\Xml\Serialization\CodeGenerator.cs (17)
143
System.Diagnostics.Debug.Assert(
currentScope
!= null &&
currentScope
.ContainsKey(name));
144
return
currentScope
[name];
189
if (
currentScope
!= null &&
currentScope
.TryGetValue(name, out loc)) {
216
LocalScope newScope = new LocalScope(this.
currentScope
);
222
Debug.Assert(this.
currentScope
.parent != null);
223
this.
currentScope
.AddToFreeLocals(freeLocals);
224
this.currentScope = this.
currentScope
.parent;
249
Debug.Assert(!
currentScope
.ContainsKey(name));
256
currentScope
[name] = local;
262
if (!
currentScope
.TryGetValue(name, out local))
1215
Debug.Assert(
currentScope
.ContainsKey(name));
1216
LocalBuilder local =
currentScope
[name];
1222
if (!
currentScope
.TryGetValue(name, out local)) {
1234
Debug.Assert(
currentScope
.ContainsKey(name));
1235
LocalBuilder local =
currentScope
[name];