2 writes to lastRecord
System.Data.SqlXml (2)
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (2)
76
while (records[--
lastRecord
].scopeCount == 0) {
117
if (++
lastRecord
== records.Length) {
23 references to lastRecord
System.Data.SqlXml (23)
System\Xml\Xsl\Xslt\CompilerScopeManager.cs (23)
78
lastScopes = records[
lastRecord
].scopeCount;
86
Debug.Assert(
lastRecord
== 0 && lastScopes == 0, "PushScope() and PopScope() calls are unbalanced");
115
records[
lastRecord
].scopeCount = lastScopes;
118
ScopeRecord[] newRecords = new ScopeRecord[
lastRecord
* 2];
119
Array.Copy(records, 0, newRecords, 0,
lastRecord
);
130
ScopeFlags flags = records[
lastRecord
].flags;
137
records[
lastRecord
].flags = flags | flag;
138
records[
lastRecord
].ncName = ncName;
139
records[
lastRecord
].nsUri = uri;
140
records[
lastRecord
].value = value;
145
ScopeFlags flags = records[
lastRecord
].flags;
161
records[
lastRecord
].flags = flags;
163
Debug.Assert((records[
lastRecord
].flags & ScopeFlags.CompatibilityFlags) != ScopeFlags.CompatibilityFlags,
192
return LookupNamespace(prefix,
lastRecord
, 0);
212
for (int record =
lastRecord
; 0 <= record; record--) {
253
for (int record =
lastRecord
; 0 <= record; --record) {
283
get { return (records[
lastRecord
].flags & ScopeFlags.ForwardCompatibility) != 0; }
288
get { return (records[
lastRecord
].flags & ScopeFlags.BackwardCompatibility) != 0; }
293
get { return (records[
lastRecord
].flags & ScopeFlags.CanHaveApplyImports) != 0; }
298
int currentRecord = this.
lastRecord
+ 1;
303
if (LookupNamespace(records[currentRecord].ncName,
lastRecord
, currentRecord + 1) != null) {
323
this.lastRecord = scope.
lastRecord
;
346
Debug.Assert(LastPredefRecord <= currentRecord && currentRecord <= scope.
lastRecord
, "MoveNext() either was not called or returned false");