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)
137System.Diagnostics.Debug.Assert(_currentScope != null && _currentScope.ContainsKey(name)); 138return _currentScope[name]!; 183if (_currentScope != null && _currentScope.TryGetValue(name, out loc)) 206LocalScope newScope = new LocalScope(_currentScope); 212Debug.Assert(_currentScope!.parent != null); 213_currentScope.AddToFreeLocals(_freeLocals!); 214_currentScope = _currentScope.parent; 243Debug.Assert(!_currentScope!.ContainsKey(name)); 249_currentScope[name] = local; 256if (!_currentScope!.TryGetValue(name, out local)) 930Debug.Assert(_currentScope!.ContainsKey(name)); 931LocalBuilder local = _currentScope[name]!; 938if (!_currentScope!.TryGetValue(name, out local)) 953Debug.Assert(_currentScope!.ContainsKey(name)); 954LocalBuilder local = _currentScope[name]!;