diff --git a/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/ExpressionFinder.atg b/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/ExpressionFinder.atg
index ba44ec26dd..2befc8e6ec 100644
--- a/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/ExpressionFinder.atg
+++ b/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/ExpressionFinder.atg
@@ -526,6 +526,7 @@ Statement =
| BranchStatement
| ReDimStatement
| EraseStatement
+ | UsingStatement
| InvocationStatement
.
@@ -664,6 +665,12 @@ EraseStatement =
"Erase" Expression { "," Expression }
.
+UsingStatement =
+ "Using" Expression
+ StatementTerminatorAndBlock
+ "End" "Using"
+.
+
InvocationStatement =
[ "Call" ] Expression
.
diff --git a/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Parser.cs b/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Parser.cs
index b7850eeaa0..942691cb89 100644
--- a/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Parser.cs
+++ b/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Parser.cs
@@ -71,7 +71,7 @@ int currentState = 0;
if (t == null) { currentState = 1; break; }
if (t.kind == 172) {
stateStack.Push(1);
- goto case 332;
+ goto case 317;
} else {
goto case 2;
}
@@ -80,7 +80,7 @@ int currentState = 0;
if (t == null) { currentState = 2; break; }
if (t.kind == 136) {
stateStack.Push(2);
- goto case 329;
+ goto case 314;
} else {
goto case 3;
}
@@ -89,7 +89,7 @@ int currentState = 0;
if (t == null) { currentState = 3; break; }
if (t.kind == 39) {
stateStack.Push(3);
- goto case 262;
+ goto case 247;
} else {
goto case 4;
}
@@ -108,7 +108,7 @@ int currentState = 0;
case 5: {
if (t == null) { currentState = 5; break; }
if (t.kind == 159) {
- goto case 325;
+ goto case 310;
} else {
if (set[1, t.kind]) {
goto case 7;
@@ -126,7 +126,7 @@ int currentState = 0;
if (t == null) { currentState = 7; break; }
if (t.kind == 39) {
stateStack.Push(7);
- goto case 262;
+ goto case 247;
} else {
goto case 8;
}
@@ -138,7 +138,7 @@ int currentState = 0;
break;
} else {
if (t.kind == 83 || t.kind == 154) {
- goto case 324;
+ goto case 309;
} else {
Error(t);
goto case 9;
@@ -148,7 +148,7 @@ int currentState = 0;
case 9: {
if (t == null) { currentState = 9; break; }
if (set[3, t.kind]) {
- goto case 324;
+ goto case 309;
} else {
stateStack.Push(10);
goto case 15;
@@ -162,6 +162,7 @@ int currentState = 0;
if (t == null) { currentState = 11; break; }
if (set[4, t.kind]) {
stateStack.Push(11);
+ PushContext(Context.Member, t);
goto case 17;
} else {
Expect(112, t); // "End"
@@ -202,50 +203,46 @@ int currentState = 0;
break;
}
case 17: {
- PushContext(Context.Member, t);
- goto case 18;
- }
- case 18: {
- if (t == null) { currentState = 18; break; }
+ if (t == null) { currentState = 17; break; }
if (t.kind == 39) {
- stateStack.Push(18);
- goto case 262;
+ stateStack.Push(17);
+ goto case 247;
} else {
- goto case 19;
+ goto case 18;
}
}
- case 19: {
- if (t == null) { currentState = 19; break; }
+ case 18: {
+ if (t == null) { currentState = 18; break; }
if (set[5, t.kind]) {
- currentState = 19;
+ currentState = 18;
break;
} else {
if (set[6, t.kind]) {
- stateStack.Push(20);
- goto case 317;
+ stateStack.Push(19);
+ goto case 302;
} else {
if (t.kind == 126 || t.kind == 208) {
- stateStack.Push(20);
- goto case 305;
+ stateStack.Push(19);
+ goto case 290;
} else {
if (t.kind == 100) {
- stateStack.Push(20);
- goto case 294;
+ stateStack.Push(19);
+ goto case 279;
} else {
if (t.kind == 118) {
- stateStack.Push(20);
- goto case 284;
+ stateStack.Push(19);
+ goto case 269;
} else {
if (t.kind == 97) {
- stateStack.Push(20);
- goto case 272;
+ stateStack.Push(19);
+ goto case 257;
} else {
if (t.kind == 171) {
- stateStack.Push(20);
- goto case 21;
+ stateStack.Push(19);
+ goto case 20;
} else {
Error(t);
- goto case 20;
+ goto case 19;
}
}
}
@@ -254,82 +251,83 @@ int currentState = 0;
}
}
}
- case 20: {
+ case 19: {
PopContext();
currentState = stateStack.Pop();
goto switchlbl;
}
+ case 20: {
+ if (t == null) { currentState = 20; break; }
+ Expect(171, t); // "Operator"
+ currentState = 21;
+ break;
+ }
case 21: {
if (t == null) { currentState = 21; break; }
- Expect(171, t); // "Operator"
currentState = 22;
break;
}
case 22: {
if (t == null) { currentState = 22; break; }
+ Expect(36, t); // "("
currentState = 23;
break;
}
case 23: {
- if (t == null) { currentState = 23; break; }
- Expect(36, t); // "("
- currentState = 24;
- break;
+ stateStack.Push(24);
+ goto case 252;
}
case 24: {
- stateStack.Push(25);
- goto case 267;
- }
- case 25: {
- if (t == null) { currentState = 25; break; }
+ if (t == null) { currentState = 24; break; }
Expect(37, t); // ")"
- currentState = 26;
+ currentState = 25;
break;
}
- case 26: {
- if (t == null) { currentState = 26; break; }
+ case 25: {
+ if (t == null) { currentState = 25; break; }
if (t.kind == 62) {
- currentState = 261;
+ currentState = 246;
break;
} else {
- goto case 27;
+ goto case 26;
}
}
+ case 26: {
+ stateStack.Push(27);
+ goto case 29;
+ }
case 27: {
- stateStack.Push(28);
- goto case 31;
+ if (t == null) { currentState = 27; break; }
+ Expect(112, t); // "End"
+ currentState = 28;
+ break;
}
case 28: {
if (t == null) { currentState = 28; break; }
- Expect(112, t); // "End"
- currentState = 29;
+ Expect(171, t); // "Operator"
+ currentState = 15;
break;
}
case 29: {
- if (t == null) { currentState = 29; break; }
- Expect(171, t); // "Operator"
- currentState = 30;
- break;
+ PushContext(Context.Body, t);
+ goto case 30;
}
case 30: {
+ stateStack.Push(31);
goto case 15;
}
case 31: {
- PushContext(Context.Body, t);
+ nextTokenIsPotentialStartOfXmlMode = true;
goto case 32;
}
case 32: {
- stateStack.Push(33);
- goto case 15;
- }
- case 33: {
- if (t == null) { currentState = 33; break; }
+ if (t == null) { currentState = 32; break; }
if (set[7, t.kind]) {
if (set[8, t.kind]) {
- stateStack.Push(32);
- goto case 34;
+ stateStack.Push(30);
+ goto case 33;
} else {
- goto case 32;
+ goto case 30;
}
} else {
PopContext();
@@ -337,57 +335,118 @@ int currentState = 0;
goto switchlbl;
}
}
+ case 33: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 34;
+ }
case 34: {
if (t == null) { currentState = 34; break; }
if (t.kind == 87 || t.kind == 104 || t.kind == 202) {
- goto case 244;
+ currentState = 230;
+ break;
} else {
if (t.kind == 209 || t.kind == 231) {
- goto case 239;
+ currentState = 226;
+ break;
} else {
if (t.kind == 55 || t.kind == 191) {
- goto case 236;
+ currentState = 224;
+ break;
} else {
if (t.kind == 187) {
- goto case 233;
+ currentState = 222;
+ break;
} else {
if (t.kind == 134) {
- goto case 214;
+ currentState = 201;
+ break;
} else {
if (t.kind == 195) {
- goto case 199;
+ currentState = 186;
+ break;
} else {
if (t.kind == 229) {
- goto case 194;
+ currentState = 182;
+ break;
} else {
if (t.kind == 107) {
- goto case 185;
+ currentState = 176;
+ break;
} else {
if (t.kind == 123) {
- goto case 158;
+ currentState = 152;
+ break;
} else {
if (t.kind == 117 || t.kind == 170 || t.kind == 192) {
- goto case 150;
+ if (t.kind == 117 || t.kind == 170) {
+ if (t.kind == 170) {
+ currentState = 147;
+ break;
+ } else {
+ goto case 147;
+ }
+ } else {
+ if (t.kind == 192) {
+ currentState = 145;
+ break;
+ } else {
+ goto case 6;
+ }
+ }
} else {
if (t.kind == 213) {
- goto case 148;
+ goto case 129;
} else {
if (t.kind == 216) {
- goto case 137;
+ currentState = 135;
+ break;
} else {
if (set[9, t.kind]) {
- goto case 131;
+ if (t.kind == 131) {
+ currentState = 134;
+ break;
+ } else {
+ if (t.kind == 119) {
+ currentState = 133;
+ break;
+ } else {
+ if (t.kind == 88) {
+ currentState = 132;
+ break;
+ } else {
+ if (t.kind == 204) {
+ goto case 16;
+ } else {
+ if (t.kind == 193) {
+ goto case 129;
+ } else {
+ goto case 6;
+ }
+ }
+ }
+ }
+ }
} else {
if (t.kind == 189) {
- goto case 129;
+ currentState = 127;
+ break;
} else {
if (t.kind == 116) {
- goto case 126;
+ goto case 124;
} else {
- if (set[10, t.kind]) {
- goto case 35;
+ if (t.kind == 224) {
+ currentState = 120;
+ break;
} else {
- goto case 6;
+ if (set[10, t.kind]) {
+ if (t.kind == 72) {
+ goto case 119;
+ } else {
+ goto case 35;
+ }
+ } else {
+ goto case 6;
+ }
}
}
}
@@ -406,115 +465,100 @@ int currentState = 0;
}
}
case 35: {
- if (t == null) { currentState = 35; break; }
- if (t.kind == 72) {
- goto case 125;
- } else {
- goto case 36;
- }
- }
- case 36: {
- goto case 37;
- }
- case 37: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 38;
+ goto case 36;
}
- case 38: {
- if (t == null) { currentState = 38; break; }
+ case 36: {
+ if (t == null) { currentState = 36; break; }
if (set[11, t.kind]) {
- goto case 48;
+ goto case 45;
} else {
if (t.kind == 134) {
- goto case 39;
+ currentState = 37;
+ break;
} else {
goto case 6;
}
}
}
+ case 37: {
+ if (t == null) { currentState = 37; break; }
+ Expect(36, t); // "("
+ currentState = 38;
+ break;
+ }
+ case 38: {
+ stateStack.Push(39);
+ goto case 35;
+ }
case 39: {
if (t == null) { currentState = 39; break; }
- Expect(134, t); // "If"
+ Expect(23, t); // ","
currentState = 40;
break;
}
case 40: {
- if (t == null) { currentState = 40; break; }
- Expect(36, t); // "("
- currentState = 41;
- break;
+ stateStack.Push(41);
+ goto case 35;
}
case 41: {
- stateStack.Push(42);
- goto case 37;
+ if (t == null) { currentState = 41; break; }
+ if (t.kind == 23) {
+ goto case 43;
+ } else {
+ goto case 42;
+ }
}
case 42: {
if (t == null) { currentState = 42; break; }
- Expect(23, t); // ","
- currentState = 43;
+ Expect(37, t); // ")"
+ currentState = stateStack.Pop();
break;
}
case 43: {
- stateStack.Push(44);
- goto case 37;
+ if (t == null) { currentState = 43; break; }
+ currentState = 44;
+ break;
}
case 44: {
- if (t == null) { currentState = 44; break; }
- if (t.kind == 23) {
- goto case 46;
- } else {
- goto case 45;
- }
+ stateStack.Push(42);
+ goto case 35;
}
case 45: {
- if (t == null) { currentState = 45; break; }
- Expect(37, t); // ")"
- currentState = stateStack.Pop();
- break;
+ stateStack.Push(46);
+ goto case 47;
}
case 46: {
if (t == null) { currentState = 46; break; }
- currentState = 47;
- break;
- }
- case 47: {
- stateStack.Push(45);
- goto case 37;
- }
- case 48: {
- stateStack.Push(49);
- goto case 50;
- }
- case 49: {
- if (t == null) { currentState = 49; break; }
if (set[12, t.kind]) {
- currentState = 48;
+ currentState = 45;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 50: {
+ case 47: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 51;
+ goto case 48;
}
- case 51: {
- if (t == null) { currentState = 51; break; }
+ case 48: {
+ if (t == null) { currentState = 48; break; }
if (set[13, t.kind]) {
- currentState = 51;
+ currentState = 47;
break;
} else {
if (set[14, t.kind]) {
- stateStack.Push(95);
- goto case 104;
+ stateStack.Push(94);
+ goto case 102;
} else {
if (t.kind == 218) {
currentState = 92;
break;
} else {
if (t.kind == 161) {
- goto case 52;
+ currentState = 49;
+ break;
} else {
goto case 6;
}
@@ -522,263 +566,275 @@ int currentState = 0;
}
}
}
- case 52: {
- if (t == null) { currentState = 52; break; }
- Expect(161, t); // "New"
- currentState = 53;
- break;
- }
- case 53: {
- if (t == null) { currentState = 53; break; }
+ case 49: {
+ if (t == null) { currentState = 49; break; }
if (set[15, t.kind]) {
- stateStack.Push(64);
- goto case 69;
+ stateStack.Push(59);
+ goto case 65;
} else {
- goto case 54;
+ goto case 50;
}
}
- case 54: {
- if (t == null) { currentState = 54; break; }
+ case 50: {
+ if (t == null) { currentState = 50; break; }
if (t.kind == 231) {
- currentState = 55;
+ currentState = 51;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 55: {
- goto case 56;
- }
- case 56: {
- if (t == null) { currentState = 56; break; }
+ case 51: {
+ if (t == null) { currentState = 51; break; }
Expect(34, t); // "{"
- currentState = 57;
+ currentState = 52;
break;
}
- case 57: {
- if (t == null) { currentState = 57; break; }
+ case 52: {
+ if (t == null) { currentState = 52; break; }
if (t.kind == 146) {
- currentState = 58;
+ currentState = 53;
break;
} else {
- goto case 58;
+ goto case 53;
}
}
- case 58: {
- if (t == null) { currentState = 58; break; }
+ case 53: {
+ if (t == null) { currentState = 53; break; }
Expect(27, t); // "."
- currentState = 59;
+ currentState = 54;
break;
}
- case 59: {
- stateStack.Push(60);
+ case 54: {
+ stateStack.Push(55);
goto case 16;
}
- case 60: {
- if (t == null) { currentState = 60; break; }
+ case 55: {
+ if (t == null) { currentState = 55; break; }
Expect(21, t); // "="
- currentState = 61;
+ currentState = 56;
break;
}
- case 61: {
- stateStack.Push(62);
- goto case 37;
+ case 56: {
+ stateStack.Push(57);
+ goto case 35;
}
- case 62: {
- if (t == null) { currentState = 62; break; }
+ case 57: {
+ if (t == null) { currentState = 57; break; }
if (t.kind == 23) {
- currentState = 57;
+ currentState = 52;
break;
} else {
- goto case 63;
+ goto case 58;
}
}
- case 63: {
- if (t == null) { currentState = 63; break; }
+ case 58: {
+ if (t == null) { currentState = 58; break; }
Expect(35, t); // "}"
currentState = stateStack.Pop();
break;
}
- case 64: {
- if (t == null) { currentState = 64; break; }
+ case 59: {
+ if (t == null) { currentState = 59; break; }
if (t.kind == 125) {
- currentState = 65;
+ currentState = 60;
break;
} else {
- goto case 54;
+ goto case 50;
}
}
- case 65: {
- stateStack.Push(54);
- goto case 66;
+ case 60: {
+ stateStack.Push(50);
+ goto case 61;
}
- case 66: {
- if (t == null) { currentState = 66; break; }
+ case 61: {
+ if (t == null) { currentState = 61; break; }
Expect(34, t); // "{"
- currentState = 67;
+ currentState = 62;
break;
}
- case 67: {
- if (t == null) { currentState = 67; break; }
+ case 62: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 63;
+ }
+ case 63: {
+ if (t == null) { currentState = 63; break; }
if (set[16, t.kind]) {
- stateStack.Push(68);
- goto case 37;
+ stateStack.Push(64);
+ goto case 35;
} else {
if (t.kind == 34) {
- stateStack.Push(68);
- goto case 66;
+ stateStack.Push(64);
+ goto case 61;
} else {
Error(t);
- goto case 68;
+ goto case 64;
}
}
}
- case 68: {
- if (t == null) { currentState = 68; break; }
+ case 64: {
+ if (t == null) { currentState = 64; break; }
if (t.kind == 23) {
- currentState = 67;
+ currentState = 62;
break;
} else {
- goto case 63;
+ goto case 58;
}
}
- case 69: {
- if (t == null) { currentState = 69; break; }
+ case 65: {
+ if (t == null) { currentState = 65; break; }
if (t.kind == 129) {
goto case 88;
} else {
if (set[17, t.kind]) {
- stateStack.Push(70);
+ stateStack.Push(66);
goto case 89;
} else {
if (set[18, t.kind]) {
goto case 88;
} else {
Error(t);
- goto case 70;
+ goto case 66;
}
}
}
}
- case 70: {
- if (t == null) { currentState = 70; break; }
+ case 66: {
+ if (t == null) { currentState = 66; break; }
if (t.kind == 36) {
- stateStack.Push(70);
- goto case 74;
+ stateStack.Push(66);
+ goto case 70;
} else {
- goto case 71;
+ goto case 67;
}
}
- case 71: {
- if (t == null) { currentState = 71; break; }
+ case 67: {
+ if (t == null) { currentState = 67; break; }
if (t.kind == 27) {
- currentState = 72;
+ currentState = 68;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 72: {
- stateStack.Push(73);
+ case 68: {
+ stateStack.Push(69);
goto case 16;
}
- case 73: {
- if (t == null) { currentState = 73; break; }
+ case 69: {
+ if (t == null) { currentState = 69; break; }
if (t.kind == 36) {
- stateStack.Push(73);
- goto case 74;
+ stateStack.Push(69);
+ goto case 70;
} else {
- goto case 71;
+ goto case 67;
}
}
- case 74: {
- if (t == null) { currentState = 74; break; }
+ case 70: {
+ if (t == null) { currentState = 70; break; }
Expect(36, t); // "("
- currentState = 75;
+ currentState = 71;
break;
}
- case 75: {
- if (t == null) { currentState = 75; break; }
+ case 71: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 72;
+ }
+ case 72: {
+ if (t == null) { currentState = 72; break; }
if (t.kind == 168) {
goto case 85;
} else {
if (set[19, t.kind]) {
- goto case 76;
+ goto case 73;
} else {
Error(t);
- goto case 45;
+ goto case 42;
}
}
}
- case 76: {
- if (t == null) { currentState = 76; break; }
+ case 73: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 74;
+ }
+ case 74: {
+ if (t == null) { currentState = 74; break; }
if (set[20, t.kind]) {
- goto case 77;
+ goto case 75;
} else {
- goto case 45;
+ goto case 42;
}
}
- case 77: {
- stateStack.Push(45);
- goto case 78;
+ case 75: {
+ stateStack.Push(42);
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 76;
}
- case 78: {
- if (t == null) { currentState = 78; break; }
+ case 76: {
+ if (t == null) { currentState = 76; break; }
if (set[16, t.kind]) {
- goto case 82;
+ goto case 81;
} else {
if (t.kind == 23) {
- goto case 79;
+ goto case 77;
} else {
goto case 6;
}
}
}
- case 79: {
- if (t == null) { currentState = 79; break; }
- currentState = 80;
+ case 77: {
+ if (t == null) { currentState = 77; break; }
+ currentState = 78;
break;
}
- case 80: {
- if (t == null) { currentState = 80; break; }
+ case 78: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 79;
+ }
+ case 79: {
+ if (t == null) { currentState = 79; break; }
if (set[16, t.kind]) {
- stateStack.Push(81);
- goto case 37;
+ stateStack.Push(80);
+ goto case 35;
} else {
- goto case 81;
+ goto case 80;
}
}
- case 81: {
- if (t == null) { currentState = 81; break; }
+ case 80: {
+ if (t == null) { currentState = 80; break; }
if (t.kind == 23) {
- goto case 79;
+ goto case 77;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 82: {
- stateStack.Push(83);
- goto case 37;
+ case 81: {
+ stateStack.Push(82);
+ goto case 35;
}
- case 83: {
- if (t == null) { currentState = 83; break; }
+ case 82: {
+ if (t == null) { currentState = 82; break; }
if (t.kind == 23) {
- currentState = 84;
+ currentState = 83;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
+ case 83: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 84;
+ }
case 84: {
if (t == null) { currentState = 84; break; }
if (set[16, t.kind]) {
- goto case 82;
+ goto case 81;
} else {
- goto case 83;
+ goto case 82;
}
}
case 85: {
@@ -790,7 +846,7 @@ int currentState = 0;
if (t == null) { currentState = 86; break; }
if (set[15, t.kind]) {
stateStack.Push(87);
- goto case 69;
+ goto case 65;
} else {
goto case 87;
}
@@ -800,12 +856,12 @@ int currentState = 0;
if (t.kind == 23) {
goto case 85;
} else {
- goto case 45;
+ goto case 42;
}
}
case 88: {
if (t == null) { currentState = 88; break; }
- currentState = 70;
+ currentState = 66;
break;
}
case 89: {
@@ -829,112 +885,118 @@ int currentState = 0;
}
case 92: {
stateStack.Push(93);
- goto case 50;
+ goto case 47;
}
case 93: {
if (t == null) { currentState = 93; break; }
Expect(143, t); // "Is"
- currentState = 94;
+ currentState = 65;
break;
}
case 94: {
- goto case 69;
- }
- case 95: {
- if (t == null) { currentState = 95; break; }
+ if (t == null) { currentState = 94; break; }
if (t.kind == 27 || t.kind == 28 || t.kind == 36) {
- stateStack.Push(95);
- goto case 96;
+ stateStack.Push(94);
+ goto case 95;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 96: {
- if (t == null) { currentState = 96; break; }
+ case 95: {
+ if (t == null) { currentState = 95; break; }
if (t.kind == 36) {
- currentState = 99;
+ currentState = 97;
break;
} else {
if (t.kind == 27 || t.kind == 28) {
- goto case 97;
+ goto case 96;
} else {
goto case 6;
}
}
}
- case 97: {
- if (t == null) { currentState = 97; break; }
- currentState = 98;
+ case 96: {
+ if (t == null) { currentState = 96; break; }
+ currentState = 16;
break;
}
+ case 97: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 98;
+ }
case 98: {
- goto case 16;
- }
- case 99: {
- nextTokenIsPotentialStartOfXmlMode = true;
- goto case 100;
- }
- case 100: {
- if (t == null) { currentState = 100; break; }
+ if (t == null) { currentState = 98; break; }
if (t.kind == 168) {
- goto case 101;
+ goto case 99;
} else {
if (set[20, t.kind]) {
- goto case 77;
+ goto case 75;
} else {
goto case 6;
}
}
}
- case 101: {
- if (t == null) { currentState = 101; break; }
- currentState = 102;
+ case 99: {
+ if (t == null) { currentState = 99; break; }
+ currentState = 100;
break;
}
- case 102: {
- stateStack.Push(103);
- goto case 69;
+ case 100: {
+ stateStack.Push(101);
+ goto case 65;
}
- case 103: {
- if (t == null) { currentState = 103; break; }
+ case 101: {
+ if (t == null) { currentState = 101; break; }
if (t.kind == 23) {
- goto case 101;
+ goto case 99;
} else {
- goto case 45;
+ goto case 42;
}
}
- case 104: {
+ case 102: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 105;
+ goto case 103;
}
- case 105: {
- if (t == null) { currentState = 105; break; }
+ case 103: {
+ if (t == null) { currentState = 103; break; }
if (set[21, t.kind]) {
goto case 16;
} else {
if (t.kind == 36) {
- goto case 46;
+ goto case 43;
} else {
if (set[17, t.kind]) {
- goto case 124;
+ goto case 89;
} else {
if (t.kind == 27 || t.kind == 28) {
- goto case 97;
+ goto case 96;
} else {
if (t.kind == 128) {
- currentState = 123;
+ currentState = 118;
break;
} else {
if (t.kind == 235) {
- currentState = 121;
+ currentState = 116;
break;
} else {
if (t.kind == 10 || t.kind == 17) {
- goto case 113;
+ nextTokenIsPotentialStartOfXmlMode = true;
+ PushContext(Context.Xml, t);
+ goto case 109;
} else {
if (set[22, t.kind]) {
- goto case 106;
+ if (set[23, t.kind]) {
+ currentState = 108;
+ break;
+ } else {
+ if (t.kind == 93 || t.kind == 105 || t.kind == 217) {
+ currentState = 104;
+ break;
+ } else {
+ goto case 6;
+ }
+ }
} else {
goto case 6;
}
@@ -946,73 +1008,46 @@ int currentState = 0;
}
}
}
- case 106: {
- if (t == null) { currentState = 106; break; }
- if (set[23, t.kind]) {
- goto case 111;
- } else {
- if (t.kind == 93 || t.kind == 105 || t.kind == 217) {
- currentState = 107;
- break;
- } else {
- goto case 6;
- }
- }
- }
- case 107: {
- if (t == null) { currentState = 107; break; }
+ case 104: {
+ if (t == null) { currentState = 104; break; }
Expect(36, t); // "("
- currentState = 108;
+ currentState = 105;
break;
}
- case 108: {
- stateStack.Push(109);
- goto case 37;
+ case 105: {
+ stateStack.Push(106);
+ goto case 35;
}
- case 109: {
- if (t == null) { currentState = 109; break; }
+ case 106: {
+ if (t == null) { currentState = 106; break; }
Expect(23, t); // ","
- currentState = 110;
+ currentState = 107;
break;
}
- case 110: {
- stateStack.Push(45);
- goto case 69;
- }
- case 111: {
- if (t == null) { currentState = 111; break; }
- if (set[23, t.kind]) {
- currentState = 112;
- break;
- } else {
- Error(t);
- goto case 112;
- }
+ case 107: {
+ stateStack.Push(42);
+ goto case 65;
}
- case 112: {
- if (t == null) { currentState = 112; break; }
+ case 108: {
+ if (t == null) { currentState = 108; break; }
Expect(36, t); // "("
- currentState = 47;
+ currentState = 44;
break;
}
- case 113: {
- PushContext(Context.Xml, t);
- goto case 114;
- }
- case 114: {
- if (t == null) { currentState = 114; break; }
+ case 109: {
+ if (t == null) { currentState = 109; break; }
if (t.kind == 17) {
- currentState = 114;
+ currentState = 109;
break;
} else {
- stateStack.Push(115);
- goto case 116;
+ stateStack.Push(110);
+ goto case 111;
}
}
- case 115: {
- if (t == null) { currentState = 115; break; }
+ case 110: {
+ if (t == null) { currentState = 110; break; }
if (t.kind == 17) {
- currentState = 115;
+ currentState = 110;
break;
} else {
PopContext();
@@ -1020,58 +1055,58 @@ int currentState = 0;
goto switchlbl;
}
}
- case 116: {
- if (t == null) { currentState = 116; break; }
+ case 111: {
+ if (t == null) { currentState = 111; break; }
Expect(10, t); // XmlOpenTag
- currentState = 117;
+ currentState = 112;
break;
}
- case 117: {
- if (t == null) { currentState = 117; break; }
+ case 112: {
+ if (t == null) { currentState = 112; break; }
if (set[24, t.kind]) {
- currentState = 117;
+ currentState = 112;
break;
} else {
if (t.kind == 14) {
goto case 16;
} else {
if (t.kind == 11) {
- goto case 118;
+ goto case 113;
} else {
goto case 6;
}
}
}
}
- case 118: {
- if (t == null) { currentState = 118; break; }
- currentState = 119;
+ case 113: {
+ if (t == null) { currentState = 113; break; }
+ currentState = 114;
break;
}
- case 119: {
- if (t == null) { currentState = 119; break; }
+ case 114: {
+ if (t == null) { currentState = 114; break; }
if (set[25, t.kind]) {
if (set[26, t.kind]) {
- goto case 118;
+ goto case 113;
} else {
if (t.kind == 10) {
- stateStack.Push(119);
- goto case 116;
+ stateStack.Push(114);
+ goto case 111;
} else {
Error(t);
- goto case 119;
+ goto case 114;
}
}
} else {
Expect(15, t); // XmlOpenEndTag
- currentState = 120;
+ currentState = 115;
break;
}
}
- case 120: {
- if (t == null) { currentState = 120; break; }
+ case 115: {
+ if (t == null) { currentState = 115; break; }
if (set[27, t.kind]) {
- currentState = 120;
+ currentState = 115;
break;
} else {
Expect(11, t); // XmlCloseTag
@@ -1079,126 +1114,116 @@ int currentState = 0;
break;
}
}
- case 121: {
- if (t == null) { currentState = 121; break; }
+ case 116: {
+ if (t == null) { currentState = 116; break; }
Expect(36, t); // "("
- currentState = 122;
+ currentState = 117;
break;
}
- case 122: {
+ case 117: {
readXmlIdentifier = true;
- stateStack.Push(45);
+ stateStack.Push(42);
goto case 89;
}
+ case 118: {
+ if (t == null) { currentState = 118; break; }
+ Expect(36, t); // "("
+ currentState = 107;
+ break;
+ }
+ case 119: {
+ if (t == null) { currentState = 119; break; }
+ currentState = 35;
+ break;
+ }
+ case 120: {
+ stateStack.Push(121);
+ goto case 35;
+ }
+ case 121: {
+ stateStack.Push(122);
+ goto case 29;
+ }
+ case 122: {
+ if (t == null) { currentState = 122; break; }
+ Expect(112, t); // "End"
+ currentState = 123;
+ break;
+ }
case 123: {
if (t == null) { currentState = 123; break; }
- Expect(36, t); // "("
- currentState = 110;
+ Expect(224, t); // "Using"
+ currentState = stateStack.Pop();
break;
}
case 124: {
- goto case 89;
+ if (t == null) { currentState = 124; break; }
+ currentState = 125;
+ break;
}
case 125: {
- if (t == null) { currentState = 125; break; }
- currentState = 36;
- break;
+ stateStack.Push(126);
+ goto case 35;
}
case 126: {
if (t == null) { currentState = 126; break; }
- Expect(116, t); // "Erase"
- currentState = 127;
- break;
+ if (t.kind == 23) {
+ goto case 124;
+ } else {
+ currentState = stateStack.Pop();
+ goto switchlbl;
+ }
}
case 127: {
- stateStack.Push(128);
- goto case 37;
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 128;
}
case 128: {
if (t == null) { currentState = 128; break; }
- if (t.kind == 23) {
- currentState = 127;
- break;
+ if (t.kind == 182) {
+ goto case 119;
} else {
- currentState = stateStack.Pop();
- goto switchlbl;
+ goto case 35;
}
}
case 129: {
if (t == null) { currentState = 129; break; }
- Expect(189, t); // "ReDim"
currentState = 130;
break;
}
case 130: {
- if (t == null) { currentState = 130; break; }
- if (t.kind == 182) {
- goto case 125;
- } else {
- goto case 36;
- }
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 131;
}
case 131: {
if (t == null) { currentState = 131; break; }
- if (t.kind == 131) {
- currentState = 136;
- break;
- } else {
- if (t.kind == 119) {
- currentState = 135;
- break;
- } else {
- if (t.kind == 88) {
- currentState = 134;
- break;
- } else {
- if (t.kind == 204) {
- goto case 16;
- } else {
- if (t.kind == 193) {
- currentState = 132;
- break;
- } else {
- goto case 6;
- }
- }
- }
- }
- }
- }
- case 132: {
- nextTokenIsPotentialStartOfXmlMode = true;
- goto case 133;
- }
- case 133: {
- if (t == null) { currentState = 133; break; }
if (set[16, t.kind]) {
- goto case 36;
+ goto case 35;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 134: {
- if (t == null) { currentState = 134; break; }
+ case 132: {
+ if (t == null) { currentState = 132; break; }
if (t.kind == 107 || t.kind == 123 || t.kind == 229) {
goto case 16;
} else {
goto case 6;
}
}
- case 135: {
- if (t == null) { currentState = 135; break; }
+ case 133: {
+ if (t == null) { currentState = 133; break; }
if (set[28, t.kind]) {
goto case 16;
} else {
goto case 6;
}
}
- case 136: {
- if (t == null) { currentState = 136; break; }
+ case 134: {
+ if (t == null) { currentState = 134; break; }
if (set[17, t.kind]) {
- goto case 124;
+ goto case 89;
} else {
if (t.kind == 5) {
goto case 16;
@@ -1207,146 +1232,112 @@ int currentState = 0;
}
}
}
- case 137: {
- if (t == null) { currentState = 137; break; }
- Expect(216, t); // "Try"
- currentState = 138;
- break;
- }
- case 138: {
- stateStack.Push(139);
- goto case 31;
+ case 135: {
+ stateStack.Push(136);
+ goto case 29;
}
- case 139: {
- if (t == null) { currentState = 139; break; }
+ case 136: {
+ if (t == null) { currentState = 136; break; }
if (t.kind == 74) {
- currentState = 143;
+ currentState = 140;
break;
} else {
if (t.kind == 122) {
- currentState = 142;
+ currentState = 139;
break;
} else {
- goto case 140;
+ goto case 137;
}
}
}
- case 140: {
- if (t == null) { currentState = 140; break; }
+ case 137: {
+ if (t == null) { currentState = 137; break; }
Expect(112, t); // "End"
- currentState = 141;
+ currentState = 138;
break;
}
- case 141: {
- if (t == null) { currentState = 141; break; }
+ case 138: {
+ if (t == null) { currentState = 138; break; }
Expect(216, t); // "Try"
currentState = stateStack.Pop();
break;
}
- case 142: {
- stateStack.Push(140);
- goto case 31;
+ case 139: {
+ stateStack.Push(137);
+ goto case 29;
}
- case 143: {
- if (t == null) { currentState = 143; break; }
+ case 140: {
+ if (t == null) { currentState = 140; break; }
if (set[17, t.kind]) {
- stateStack.Push(146);
+ stateStack.Push(143);
goto case 89;
} else {
- goto case 144;
+ goto case 141;
}
}
- case 144: {
- if (t == null) { currentState = 144; break; }
+ case 141: {
+ if (t == null) { currentState = 141; break; }
if (t.kind == 227) {
- currentState = 145;
+ currentState = 142;
break;
} else {
- goto case 138;
+ goto case 135;
}
}
- case 145: {
- stateStack.Push(138);
- goto case 37;
+ case 142: {
+ stateStack.Push(135);
+ goto case 35;
}
- case 146: {
- if (t == null) { currentState = 146; break; }
+ case 143: {
+ if (t == null) { currentState = 143; break; }
if (t.kind == 62) {
- currentState = 147;
+ currentState = 144;
break;
} else {
- goto case 144;
+ goto case 141;
}
}
- case 147: {
- stateStack.Push(144);
- goto case 69;
- }
- case 148: {
- if (t == null) { currentState = 148; break; }
- Expect(213, t); // "Throw"
- currentState = 149;
- break;
- }
- case 149: {
- nextTokenIsPotentialStartOfXmlMode = true;
- goto case 133;
- }
- case 150: {
- if (t == null) { currentState = 150; break; }
- if (t.kind == 117 || t.kind == 170) {
- if (t.kind == 170) {
- currentState = 153;
- break;
- } else {
- goto case 153;
- }
- } else {
- if (t.kind == 192) {
- currentState = 151;
- break;
- } else {
- goto case 6;
- }
- }
+ case 144: {
+ stateStack.Push(141);
+ goto case 65;
}
- case 151: {
- if (t == null) { currentState = 151; break; }
+ case 145: {
+ if (t == null) { currentState = 145; break; }
if (t.kind == 5 || t.kind == 162) {
goto case 16;
} else {
- goto case 152;
+ goto case 146;
}
}
- case 152: {
- if (t == null) { currentState = 152; break; }
+ case 146: {
+ if (t == null) { currentState = 146; break; }
if (set[17, t.kind]) {
- goto case 124;
+ goto case 89;
} else {
goto case 6;
}
}
- case 153: {
- if (t == null) { currentState = 153; break; }
+ case 147: {
+ if (t == null) { currentState = 147; break; }
Expect(117, t); // "Error"
- currentState = 154;
+ currentState = 148;
break;
}
- case 154: {
+ case 148: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 155;
+ goto case 149;
}
- case 155: {
- if (t == null) { currentState = 155; break; }
+ case 149: {
+ if (t == null) { currentState = 149; break; }
if (set[16, t.kind]) {
- goto case 36;
+ goto case 35;
} else {
if (t.kind == 131) {
- currentState = 157;
+ currentState = 151;
break;
} else {
if (t.kind == 192) {
- currentState = 156;
+ currentState = 150;
break;
} else {
goto case 6;
@@ -1354,760 +1345,690 @@ int currentState = 0;
}
}
}
- case 156: {
- if (t == null) { currentState = 156; break; }
+ case 150: {
+ if (t == null) { currentState = 150; break; }
Expect(162, t); // "Next"
currentState = stateStack.Pop();
break;
}
- case 157: {
- if (t == null) { currentState = 157; break; }
+ case 151: {
+ if (t == null) { currentState = 151; break; }
if (t.kind == 5) {
goto case 16;
} else {
- goto case 152;
+ goto case 146;
}
}
- case 158: {
- if (t == null) { currentState = 158; break; }
- Expect(123, t); // "For"
- currentState = 159;
- break;
- }
- case 159: {
+ case 152: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 160;
+ goto case 153;
}
- case 160: {
- if (t == null) { currentState = 160; break; }
+ case 153: {
+ if (t == null) { currentState = 153; break; }
if (set[14, t.kind]) {
- goto case 174;
+ stateStack.Push(166);
+ goto case 163;
} else {
if (t.kind == 109) {
- goto case 161;
+ currentState = 154;
+ break;
} else {
goto case 6;
}
}
}
- case 161: {
- if (t == null) { currentState = 161; break; }
- Expect(109, t); // "Each"
- currentState = 162;
- break;
- }
- case 162: {
- stateStack.Push(163);
- goto case 171;
+ case 154: {
+ stateStack.Push(155);
+ goto case 163;
}
- case 163: {
- if (t == null) { currentState = 163; break; }
+ case 155: {
+ if (t == null) { currentState = 155; break; }
Expect(137, t); // "In"
- currentState = 164;
+ currentState = 156;
break;
}
- case 164: {
- stateStack.Push(165);
- goto case 37;
+ case 156: {
+ stateStack.Push(157);
+ goto case 35;
}
- case 165: {
- stateStack.Push(166);
- goto case 31;
+ case 157: {
+ stateStack.Push(158);
+ goto case 29;
}
- case 166: {
- if (t == null) { currentState = 166; break; }
+ case 158: {
+ if (t == null) { currentState = 158; break; }
Expect(162, t); // "Next"
- currentState = 167;
+ currentState = 159;
break;
}
- case 167: {
+ case 159: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 168;
+ goto case 160;
}
- case 168: {
- if (t == null) { currentState = 168; break; }
+ case 160: {
+ if (t == null) { currentState = 160; break; }
if (set[16, t.kind]) {
- goto case 169;
+ goto case 161;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 169: {
- stateStack.Push(170);
- goto case 37;
+ case 161: {
+ stateStack.Push(162);
+ goto case 35;
}
- case 170: {
- if (t == null) { currentState = 170; break; }
+ case 162: {
+ if (t == null) { currentState = 162; break; }
if (t.kind == 23) {
- currentState = 169;
+ currentState = 161;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 171: {
- stateStack.Push(172);
- goto case 104;
+ case 163: {
+ stateStack.Push(164);
+ goto case 102;
}
- case 172: {
- if (t == null) { currentState = 172; break; }
+ case 164: {
+ if (t == null) { currentState = 164; break; }
if (t.kind == 32) {
- currentState = 173;
+ currentState = 165;
break;
} else {
- goto case 173;
+ goto case 165;
}
}
- case 173: {
- if (t == null) { currentState = 173; break; }
+ case 165: {
+ if (t == null) { currentState = 165; break; }
if (t.kind == 27 || t.kind == 28 || t.kind == 36) {
- stateStack.Push(173);
- goto case 96;
+ stateStack.Push(165);
+ goto case 95;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 174: {
- stateStack.Push(175);
- goto case 171;
- }
- case 175: {
- if (t == null) { currentState = 175; break; }
+ case 166: {
+ if (t == null) { currentState = 166; break; }
Expect(21, t); // "="
- currentState = 176;
+ currentState = 167;
break;
}
- case 176: {
- stateStack.Push(177);
- goto case 37;
+ case 167: {
+ stateStack.Push(168);
+ goto case 35;
}
- case 177: {
- if (t == null) { currentState = 177; break; }
+ case 168: {
+ if (t == null) { currentState = 168; break; }
if (t.kind == 203) {
- currentState = 184;
+ currentState = 175;
break;
} else {
- goto case 178;
+ goto case 169;
}
}
- case 178: {
- stateStack.Push(179);
- goto case 31;
+ case 169: {
+ stateStack.Push(170);
+ goto case 29;
}
- case 179: {
- if (t == null) { currentState = 179; break; }
+ case 170: {
+ if (t == null) { currentState = 170; break; }
Expect(162, t); // "Next"
- currentState = 180;
+ currentState = 171;
break;
}
- case 180: {
+ case 171: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 181;
+ goto case 172;
}
- case 181: {
- if (t == null) { currentState = 181; break; }
+ case 172: {
+ if (t == null) { currentState = 172; break; }
if (set[16, t.kind]) {
- goto case 182;
+ goto case 173;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 182: {
- stateStack.Push(183);
- goto case 37;
+ case 173: {
+ stateStack.Push(174);
+ goto case 35;
}
- case 183: {
- if (t == null) { currentState = 183; break; }
+ case 174: {
+ if (t == null) { currentState = 174; break; }
if (t.kind == 23) {
- currentState = 182;
+ currentState = 173;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 184: {
- stateStack.Push(178);
- goto case 37;
- }
- case 185: {
- if (t == null) { currentState = 185; break; }
- Expect(107, t); // "Do"
- currentState = 186;
- break;
+ case 175: {
+ stateStack.Push(169);
+ goto case 35;
}
- case 186: {
- if (t == null) { currentState = 186; break; }
+ case 176: {
+ if (t == null) { currentState = 176; break; }
if (t.kind == 222 || t.kind == 229) {
- goto case 190;
+ currentState = 179;
+ break;
} else {
if (t.kind == 1 || t.kind == 22) {
- goto case 187;
+ stateStack.Push(177);
+ goto case 29;
} else {
goto case 6;
}
}
}
- case 187: {
- stateStack.Push(188);
- goto case 31;
- }
- case 188: {
- if (t == null) { currentState = 188; break; }
+ case 177: {
+ if (t == null) { currentState = 177; break; }
Expect(151, t); // "Loop"
- currentState = 189;
+ currentState = 178;
break;
}
- case 189: {
- if (t == null) { currentState = 189; break; }
+ case 178: {
+ if (t == null) { currentState = 178; break; }
if (t.kind == 222 || t.kind == 229) {
- goto case 125;
+ goto case 119;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 190: {
- if (t == null) { currentState = 190; break; }
- if (t.kind == 222 || t.kind == 229) {
- currentState = 191;
- break;
- } else {
- Error(t);
- goto case 191;
- }
- }
- case 191: {
- stateStack.Push(192);
- goto case 37;
+ case 179: {
+ stateStack.Push(180);
+ goto case 35;
}
- case 192: {
- stateStack.Push(193);
- goto case 31;
+ case 180: {
+ stateStack.Push(181);
+ goto case 29;
}
- case 193: {
- if (t == null) { currentState = 193; break; }
+ case 181: {
+ if (t == null) { currentState = 181; break; }
Expect(151, t); // "Loop"
currentState = stateStack.Pop();
break;
}
- case 194: {
- if (t == null) { currentState = 194; break; }
- Expect(229, t); // "While"
- currentState = 195;
- break;
- }
- case 195: {
- stateStack.Push(196);
- goto case 37;
+ case 182: {
+ stateStack.Push(183);
+ goto case 35;
}
- case 196: {
- stateStack.Push(197);
- goto case 31;
+ case 183: {
+ stateStack.Push(184);
+ goto case 29;
}
- case 197: {
- if (t == null) { currentState = 197; break; }
+ case 184: {
+ if (t == null) { currentState = 184; break; }
Expect(112, t); // "End"
- currentState = 198;
+ currentState = 185;
break;
}
- case 198: {
- if (t == null) { currentState = 198; break; }
+ case 185: {
+ if (t == null) { currentState = 185; break; }
Expect(229, t); // "While"
currentState = stateStack.Pop();
break;
}
- case 199: {
- if (t == null) { currentState = 199; break; }
- Expect(195, t); // "Select"
- currentState = 200;
- break;
+ case 186: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 187;
}
- case 200: {
- if (t == null) { currentState = 200; break; }
+ case 187: {
+ if (t == null) { currentState = 187; break; }
if (t.kind == 73) {
- currentState = 201;
+ currentState = 188;
break;
} else {
- goto case 201;
+ goto case 188;
}
}
- case 201: {
- stateStack.Push(202);
- goto case 37;
+ case 188: {
+ stateStack.Push(189);
+ goto case 35;
}
- case 202: {
- stateStack.Push(203);
+ case 189: {
+ stateStack.Push(190);
goto case 15;
}
- case 203: {
- if (t == null) { currentState = 203; break; }
+ case 190: {
+ if (t == null) { currentState = 190; break; }
if (t.kind == 73) {
- currentState = 205;
+ currentState = 192;
break;
} else {
Expect(112, t); // "End"
- currentState = 204;
+ currentState = 191;
break;
}
}
- case 204: {
- if (t == null) { currentState = 204; break; }
+ case 191: {
+ if (t == null) { currentState = 191; break; }
Expect(195, t); // "Select"
currentState = stateStack.Pop();
break;
}
- case 205: {
+ case 192: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 206;
+ goto case 193;
}
- case 206: {
- if (t == null) { currentState = 206; break; }
+ case 193: {
+ if (t == null) { currentState = 193; break; }
if (t.kind == 110) {
- currentState = 207;
+ currentState = 194;
break;
} else {
if (set[29, t.kind]) {
- goto case 208;
+ goto case 195;
} else {
Error(t);
- goto case 207;
+ goto case 194;
}
}
}
- case 207: {
- stateStack.Push(203);
- goto case 31;
+ case 194: {
+ stateStack.Push(190);
+ goto case 29;
}
- case 208: {
- if (t == null) { currentState = 208; break; }
+ case 195: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 196;
+ }
+ case 196: {
+ if (t == null) { currentState = 196; break; }
if (set[30, t.kind]) {
if (t.kind == 143) {
- currentState = 211;
+ currentState = 198;
break;
} else {
- goto case 211;
+ goto case 198;
}
} else {
if (set[16, t.kind]) {
- stateStack.Push(209);
- goto case 37;
+ stateStack.Push(197);
+ goto case 35;
} else {
Error(t);
- goto case 209;
+ goto case 197;
}
}
}
- case 209: {
- if (t == null) { currentState = 209; break; }
+ case 197: {
+ if (t == null) { currentState = 197; break; }
if (t.kind == 23) {
- currentState = 210;
+ currentState = 195;
break;
} else {
- goto case 207;
+ goto case 194;
}
}
- case 210: {
- nextTokenIsPotentialStartOfXmlMode = true;
- goto case 208;
- }
- case 211: {
- stateStack.Push(212);
- goto case 213;
+ case 198: {
+ stateStack.Push(199);
+ goto case 200;
}
- case 212: {
- stateStack.Push(209);
- goto case 50;
+ case 199: {
+ stateStack.Push(197);
+ goto case 47;
}
- case 213: {
- if (t == null) { currentState = 213; break; }
+ case 200: {
+ if (t == null) { currentState = 200; break; }
if (set[31, t.kind]) {
goto case 16;
} else {
goto case 6;
}
}
- case 214: {
- if (t == null) { currentState = 214; break; }
- Expect(134, t); // "If"
- currentState = 215;
- break;
- }
- case 215: {
- stateStack.Push(216);
- goto case 37;
+ case 201: {
+ stateStack.Push(202);
+ goto case 35;
}
- case 216: {
- if (t == null) { currentState = 216; break; }
+ case 202: {
+ if (t == null) { currentState = 202; break; }
if (t.kind == 212) {
- currentState = 225;
+ currentState = 211;
break;
} else {
- goto case 217;
+ goto case 203;
}
}
- case 217: {
- if (t == null) { currentState = 217; break; }
+ case 203: {
+ if (t == null) { currentState = 203; break; }
if (t.kind == 1 || t.kind == 22) {
- goto case 218;
+ goto case 204;
} else {
goto case 6;
}
}
- case 218: {
- stateStack.Push(219);
- goto case 31;
+ case 204: {
+ stateStack.Push(205);
+ goto case 29;
}
- case 219: {
- if (t == null) { currentState = 219; break; }
+ case 205: {
+ if (t == null) { currentState = 205; break; }
if (t.kind == 110 || t.kind == 111) {
if (t.kind == 110) {
- currentState = 224;
+ currentState = 210;
break;
} else {
if (t.kind == 111) {
- goto case 221;
+ goto case 207;
} else {
Error(t);
- goto case 218;
+ goto case 204;
}
}
} else {
Expect(112, t); // "End"
- currentState = 220;
+ currentState = 206;
break;
}
}
- case 220: {
- if (t == null) { currentState = 220; break; }
+ case 206: {
+ if (t == null) { currentState = 206; break; }
Expect(134, t); // "If"
currentState = stateStack.Pop();
break;
}
- case 221: {
- if (t == null) { currentState = 221; break; }
- currentState = 222;
+ case 207: {
+ if (t == null) { currentState = 207; break; }
+ currentState = 208;
break;
}
- case 222: {
- stateStack.Push(223);
- goto case 37;
+ case 208: {
+ stateStack.Push(209);
+ goto case 35;
}
- case 223: {
- if (t == null) { currentState = 223; break; }
+ case 209: {
+ if (t == null) { currentState = 209; break; }
if (t.kind == 212) {
- currentState = 218;
+ currentState = 204;
break;
} else {
- goto case 218;
+ goto case 204;
}
}
- case 224: {
- if (t == null) { currentState = 224; break; }
+ case 210: {
+ if (t == null) { currentState = 210; break; }
if (t.kind == 134) {
- goto case 221;
+ goto case 207;
} else {
- goto case 218;
+ goto case 204;
}
}
- case 225: {
- if (t == null) { currentState = 225; break; }
+ case 211: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 212;
+ }
+ case 212: {
+ if (t == null) { currentState = 212; break; }
if (set[8, t.kind]) {
- goto case 226;
+ goto case 213;
} else {
- goto case 217;
+ goto case 203;
}
}
- case 226: {
- stateStack.Push(227);
- goto case 34;
+ case 213: {
+ stateStack.Push(214);
+ goto case 33;
}
- case 227: {
- if (t == null) { currentState = 227; break; }
+ case 214: {
+ if (t == null) { currentState = 214; break; }
if (t.kind == 22) {
- currentState = 232;
+ currentState = 220;
break;
} else {
if (t.kind == 110) {
- goto case 229;
+ goto case 216;
} else {
- goto case 228;
+ goto case 215;
}
}
}
- case 228: {
- if (t == null) { currentState = 228; break; }
+ case 215: {
+ if (t == null) { currentState = 215; break; }
Expect(1, t); // EOL
currentState = stateStack.Pop();
break;
}
- case 229: {
- if (t == null) { currentState = 229; break; }
- currentState = 230;
+ case 216: {
+ if (t == null) { currentState = 216; break; }
+ currentState = 217;
break;
}
- case 230: {
- if (t == null) { currentState = 230; break; }
+ case 217: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 218;
+ }
+ case 218: {
+ if (t == null) { currentState = 218; break; }
if (set[8, t.kind]) {
- stateStack.Push(231);
- goto case 34;
+ stateStack.Push(219);
+ goto case 33;
} else {
- goto case 231;
+ goto case 219;
}
}
- case 231: {
- if (t == null) { currentState = 231; break; }
+ case 219: {
+ if (t == null) { currentState = 219; break; }
if (t.kind == 22) {
- goto case 229;
+ goto case 216;
} else {
- goto case 228;
+ goto case 215;
}
}
- case 232: {
- if (t == null) { currentState = 232; break; }
+ case 220: {
+ nextTokenIsPotentialStartOfXmlMode = true;
+ goto case 221;
+ }
+ case 221: {
+ if (t == null) { currentState = 221; break; }
if (set[8, t.kind]) {
- goto case 226;
+ goto case 213;
} else {
- goto case 227;
+ goto case 214;
}
}
- case 233: {
- if (t == null) { currentState = 233; break; }
- Expect(187, t); // "RaiseEvent"
- currentState = 234;
- break;
- }
- case 234: {
- stateStack.Push(235);
+ case 222: {
+ stateStack.Push(223);
goto case 16;
}
- case 235: {
- if (t == null) { currentState = 235; break; }
+ case 223: {
+ if (t == null) { currentState = 223; break; }
if (t.kind == 36) {
- currentState = 76;
+ currentState = 73;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 236: {
- if (t == null) { currentState = 236; break; }
- if (t.kind == 55 || t.kind == 191) {
- currentState = 237;
- break;
- } else {
- Error(t);
- goto case 237;
- }
- }
- case 237: {
- stateStack.Push(238);
- goto case 37;
+ case 224: {
+ stateStack.Push(225);
+ goto case 35;
}
- case 238: {
- if (t == null) { currentState = 238; break; }
+ case 225: {
+ if (t == null) { currentState = 225; break; }
Expect(23, t); // ","
- currentState = 36;
+ currentState = 35;
break;
}
- case 239: {
- if (t == null) { currentState = 239; break; }
- if (t.kind == 209 || t.kind == 231) {
- currentState = 240;
- break;
- } else {
- Error(t);
- goto case 240;
- }
- }
- case 240: {
- stateStack.Push(241);
- goto case 37;
+ case 226: {
+ stateStack.Push(227);
+ goto case 35;
}
- case 241: {
- stateStack.Push(242);
- goto case 31;
+ case 227: {
+ stateStack.Push(228);
+ goto case 29;
}
- case 242: {
- if (t == null) { currentState = 242; break; }
+ case 228: {
+ if (t == null) { currentState = 228; break; }
Expect(112, t); // "End"
- currentState = 243;
+ currentState = 229;
break;
}
- case 243: {
- if (t == null) { currentState = 243; break; }
+ case 229: {
+ if (t == null) { currentState = 229; break; }
if (t.kind == 209 || t.kind == 231) {
goto case 16;
} else {
goto case 6;
}
}
- case 244: {
- if (t == null) { currentState = 244; break; }
- if (t.kind == 87 || t.kind == 104 || t.kind == 202) {
- currentState = 245;
- break;
- } else {
- Error(t);
- goto case 245;
- }
- }
- case 245: {
- stateStack.Push(246);
+ case 230: {
+ stateStack.Push(231);
goto case 89;
}
- case 246: {
- if (t == null) { currentState = 246; break; }
+ case 231: {
+ if (t == null) { currentState = 231; break; }
if (t.kind == 32) {
- currentState = 247;
+ currentState = 232;
break;
} else {
- goto case 247;
+ goto case 232;
}
}
- case 247: {
- if (t == null) { currentState = 247; break; }
+ case 232: {
+ if (t == null) { currentState = 232; break; }
if (t.kind == 36) {
- goto case 259;
+ goto case 244;
} else {
- goto case 248;
+ goto case 233;
}
}
- case 248: {
- if (t == null) { currentState = 248; break; }
+ case 233: {
+ if (t == null) { currentState = 233; break; }
if (t.kind == 23) {
- currentState = 253;
+ currentState = 238;
break;
} else {
if (t.kind == 62) {
- currentState = 250;
+ currentState = 235;
break;
} else {
- goto case 249;
+ goto case 234;
}
}
}
- case 249: {
- if (t == null) { currentState = 249; break; }
+ case 234: {
+ if (t == null) { currentState = 234; break; }
if (t.kind == 21) {
- goto case 125;
+ goto case 119;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 250: {
- if (t == null) { currentState = 250; break; }
+ case 235: {
+ if (t == null) { currentState = 235; break; }
if (t.kind == 161) {
- goto case 252;
+ goto case 237;
} else {
- goto case 251;
+ goto case 236;
}
}
- case 251: {
- stateStack.Push(249);
- goto case 69;
+ case 236: {
+ stateStack.Push(234);
+ goto case 65;
}
- case 252: {
- if (t == null) { currentState = 252; break; }
- currentState = 251;
+ case 237: {
+ if (t == null) { currentState = 237; break; }
+ currentState = 236;
break;
}
- case 253: {
- stateStack.Push(254);
+ case 238: {
+ stateStack.Push(239);
goto case 89;
}
- case 254: {
- if (t == null) { currentState = 254; break; }
+ case 239: {
+ if (t == null) { currentState = 239; break; }
if (t.kind == 32) {
- currentState = 255;
+ currentState = 240;
break;
} else {
- goto case 255;
+ goto case 240;
}
}
- case 255: {
- if (t == null) { currentState = 255; break; }
+ case 240: {
+ if (t == null) { currentState = 240; break; }
if (t.kind == 36) {
- goto case 256;
+ goto case 241;
} else {
- goto case 248;
+ goto case 233;
}
}
- case 256: {
- if (t == null) { currentState = 256; break; }
- currentState = 257;
+ case 241: {
+ if (t == null) { currentState = 241; break; }
+ currentState = 242;
break;
}
- case 257: {
- if (t == null) { currentState = 257; break; }
+ case 242: {
+ if (t == null) { currentState = 242; break; }
if (t.kind == 23) {
- goto case 256;
+ goto case 241;
} else {
- goto case 258;
+ goto case 243;
}
}
- case 258: {
- if (t == null) { currentState = 258; break; }
+ case 243: {
+ if (t == null) { currentState = 243; break; }
Expect(37, t); // ")"
- currentState = 248;
+ currentState = 233;
break;
}
- case 259: {
- if (t == null) { currentState = 259; break; }
- currentState = 260;
+ case 244: {
+ if (t == null) { currentState = 244; break; }
+ currentState = 245;
break;
}
- case 260: {
- if (t == null) { currentState = 260; break; }
+ case 245: {
+ if (t == null) { currentState = 245; break; }
if (t.kind == 23) {
- goto case 259;
+ goto case 244;
} else {
- goto case 258;
+ goto case 243;
}
}
- case 261: {
- if (t == null) { currentState = 261; break; }
+ case 246: {
+ if (t == null) { currentState = 246; break; }
if (t.kind == 39) {
- stateStack.Push(261);
- goto case 262;
+ stateStack.Push(246);
+ goto case 247;
} else {
- stateStack.Push(27);
- goto case 69;
+ stateStack.Push(26);
+ goto case 65;
}
}
- case 262: {
- if (t == null) { currentState = 262; break; }
+ case 247: {
+ if (t == null) { currentState = 247; break; }
Expect(39, t); // "<"
- currentState = 263;
+ currentState = 248;
break;
}
- case 263: {
+ case 248: {
PushContext(Context.Attribute, t);
- goto case 264;
+ goto case 249;
}
- case 264: {
- if (t == null) { currentState = 264; break; }
+ case 249: {
+ if (t == null) { currentState = 249; break; }
if (set[32, t.kind]) {
- currentState = 264;
+ currentState = 249;
break;
} else {
Expect(38, t); // ">"
- currentState = 265;
+ currentState = 250;
break;
}
}
- case 265: {
+ case 250: {
PopContext();
- goto case 266;
+ goto case 251;
}
- case 266: {
- if (t == null) { currentState = 266; break; }
+ case 251: {
+ if (t == null) { currentState = 251; break; }
if (t.kind == 1) {
goto case 16;
} else {
@@ -2115,478 +2036,476 @@ int currentState = 0;
goto switchlbl;
}
}
- case 267: {
- stateStack.Push(268);
- goto case 269;
+ case 252: {
+ stateStack.Push(253);
+ goto case 254;
}
- case 268: {
- if (t == null) { currentState = 268; break; }
+ case 253: {
+ if (t == null) { currentState = 253; break; }
if (t.kind == 23) {
- currentState = 267;
+ currentState = 252;
break;
} else {
currentState = stateStack.Pop();
goto switchlbl;
}
}
- case 269: {
- if (t == null) { currentState = 269; break; }
+ case 254: {
+ if (t == null) { currentState = 254; break; }
if (t.kind == 39) {
- stateStack.Push(269);
- goto case 262;
+ stateStack.Push(254);
+ goto case 247;
} else {
- goto case 270;
+ goto case 255;
}
}
- case 270: {
- if (t == null) { currentState = 270; break; }
+ case 255: {
+ if (t == null) { currentState = 255; break; }
if (set[33, t.kind]) {
- currentState = 270;
+ currentState = 255;
break;
} else {
- stateStack.Push(271);
+ stateStack.Push(256);
goto case 89;
}
}
- case 271: {
- if (t == null) { currentState = 271; break; }
+ case 256: {
+ if (t == null) { currentState = 256; break; }
if (t.kind == 62) {
- goto case 252;
+ goto case 237;
} else {
- goto case 249;
+ goto case 234;
}
}
- case 272: {
- if (t == null) { currentState = 272; break; }
+ case 257: {
+ if (t == null) { currentState = 257; break; }
Expect(97, t); // "Custom"
- currentState = 273;
+ currentState = 258;
break;
}
- case 273: {
- stateStack.Push(274);
- goto case 284;
+ case 258: {
+ stateStack.Push(259);
+ goto case 269;
}
- case 274: {
- if (t == null) { currentState = 274; break; }
+ case 259: {
+ if (t == null) { currentState = 259; break; }
if (set[34, t.kind]) {
- goto case 276;
+ goto case 261;
} else {
Expect(112, t); // "End"
- currentState = 275;
+ currentState = 260;
break;
}
}
- case 275: {
- if (t == null) { currentState = 275; break; }
+ case 260: {
+ if (t == null) { currentState = 260; break; }
Expect(118, t); // "Event"
- currentState = 30;
+ currentState = 15;
break;
}
- case 276: {
- if (t == null) { currentState = 276; break; }
+ case 261: {
+ if (t == null) { currentState = 261; break; }
if (t.kind == 39) {
- stateStack.Push(276);
- goto case 262;
+ stateStack.Push(261);
+ goto case 247;
} else {
if (t.kind == 55 || t.kind == 187 || t.kind == 191) {
- currentState = 277;
+ currentState = 262;
break;
} else {
Error(t);
- goto case 277;
+ goto case 262;
}
}
}
- case 277: {
- if (t == null) { currentState = 277; break; }
+ case 262: {
+ if (t == null) { currentState = 262; break; }
Expect(36, t); // "("
- currentState = 278;
+ currentState = 263;
break;
}
- case 278: {
- stateStack.Push(279);
- goto case 267;
+ case 263: {
+ stateStack.Push(264);
+ goto case 252;
}
- case 279: {
- if (t == null) { currentState = 279; break; }
+ case 264: {
+ if (t == null) { currentState = 264; break; }
Expect(37, t); // ")"
- currentState = 280;
+ currentState = 265;
break;
}
- case 280: {
- stateStack.Push(281);
- goto case 31;
+ case 265: {
+ stateStack.Push(266);
+ goto case 29;
}
- case 281: {
- if (t == null) { currentState = 281; break; }
+ case 266: {
+ if (t == null) { currentState = 266; break; }
Expect(112, t); // "End"
- currentState = 282;
+ currentState = 267;
break;
}
- case 282: {
- if (t == null) { currentState = 282; break; }
+ case 267: {
+ if (t == null) { currentState = 267; break; }
if (t.kind == 55 || t.kind == 187 || t.kind == 191) {
- currentState = 283;
+ currentState = 268;
break;
} else {
Error(t);
- goto case 283;
+ goto case 268;
}
}
- case 283: {
- stateStack.Push(274);
+ case 268: {
+ stateStack.Push(259);
goto case 15;
}
- case 284: {
- if (t == null) { currentState = 284; break; }
+ case 269: {
+ if (t == null) { currentState = 269; break; }
Expect(118, t); // "Event"
- currentState = 285;
+ currentState = 270;
break;
}
- case 285: {
- stateStack.Push(286);
+ case 270: {
+ stateStack.Push(271);
goto case 89;
}
- case 286: {
- if (t == null) { currentState = 286; break; }
+ case 271: {
+ if (t == null) { currentState = 271; break; }
if (t.kind == 62) {
- currentState = 293;
+ currentState = 278;
break;
} else {
if (set[35, t.kind]) {
if (t.kind == 36) {
- currentState = 291;
+ currentState = 276;
break;
} else {
- goto case 287;
+ goto case 272;
}
} else {
Error(t);
- goto case 287;
+ goto case 272;
}
}
}
- case 287: {
- if (t == null) { currentState = 287; break; }
+ case 272: {
+ if (t == null) { currentState = 272; break; }
if (t.kind == 135) {
- goto case 288;
+ goto case 273;
} else {
- goto case 30;
+ goto case 15;
}
}
- case 288: {
- if (t == null) { currentState = 288; break; }
- currentState = 289;
+ case 273: {
+ if (t == null) { currentState = 273; break; }
+ currentState = 274;
break;
}
- case 289: {
- stateStack.Push(290);
- goto case 69;
+ case 274: {
+ stateStack.Push(275);
+ goto case 65;
}
- case 290: {
- if (t == null) { currentState = 290; break; }
+ case 275: {
+ if (t == null) { currentState = 275; break; }
if (t.kind == 23) {
- goto case 288;
+ goto case 273;
} else {
- goto case 30;
+ goto case 15;
}
}
- case 291: {
- if (t == null) { currentState = 291; break; }
+ case 276: {
+ if (t == null) { currentState = 276; break; }
if (set[36, t.kind]) {
- stateStack.Push(292);
- goto case 267;
+ stateStack.Push(277);
+ goto case 252;
} else {
- goto case 292;
+ goto case 277;
}
}
- case 292: {
- if (t == null) { currentState = 292; break; }
+ case 277: {
+ if (t == null) { currentState = 277; break; }
Expect(37, t); // ")"
- currentState = 287;
+ currentState = 272;
break;
}
- case 293: {
- stateStack.Push(287);
- goto case 69;
+ case 278: {
+ stateStack.Push(272);
+ goto case 65;
}
- case 294: {
- if (t == null) { currentState = 294; break; }
+ case 279: {
+ if (t == null) { currentState = 279; break; }
Expect(100, t); // "Declare"
- currentState = 295;
+ currentState = 280;
break;
}
- case 295: {
- if (t == null) { currentState = 295; break; }
+ case 280: {
+ if (t == null) { currentState = 280; break; }
if (t.kind == 61 || t.kind == 65 || t.kind == 221) {
- currentState = 296;
+ currentState = 281;
break;
} else {
- goto case 296;
+ goto case 281;
}
}
- case 296: {
- if (t == null) { currentState = 296; break; }
+ case 281: {
+ if (t == null) { currentState = 281; break; }
if (t.kind == 126 || t.kind == 208) {
- currentState = 297;
+ currentState = 282;
break;
} else {
Error(t);
- goto case 297;
+ goto case 282;
}
}
- case 297: {
- stateStack.Push(298);
+ case 282: {
+ stateStack.Push(283);
goto case 89;
}
- case 298: {
- if (t == null) { currentState = 298; break; }
+ case 283: {
+ if (t == null) { currentState = 283; break; }
Expect(148, t); // "Lib"
- currentState = 299;
+ currentState = 284;
break;
}
- case 299: {
- if (t == null) { currentState = 299; break; }
+ case 284: {
+ if (t == null) { currentState = 284; break; }
Expect(3, t); // LiteralString
- currentState = 300;
+ currentState = 285;
break;
}
- case 300: {
- if (t == null) { currentState = 300; break; }
+ case 285: {
+ if (t == null) { currentState = 285; break; }
if (t.kind == 58) {
- currentState = 304;
+ currentState = 289;
break;
} else {
- goto case 301;
+ goto case 286;
}
}
- case 301: {
- if (t == null) { currentState = 301; break; }
+ case 286: {
+ if (t == null) { currentState = 286; break; }
if (t.kind == 36) {
- currentState = 302;
+ currentState = 287;
break;
} else {
- goto case 30;
+ goto case 15;
}
}
- case 302: {
- if (t == null) { currentState = 302; break; }
+ case 287: {
+ if (t == null) { currentState = 287; break; }
if (set[36, t.kind]) {
- stateStack.Push(303);
- goto case 267;
+ stateStack.Push(288);
+ goto case 252;
} else {
- goto case 303;
+ goto case 288;
}
}
- case 303: {
- if (t == null) { currentState = 303; break; }
+ case 288: {
+ if (t == null) { currentState = 288; break; }
Expect(37, t); // ")"
- currentState = 30;
+ currentState = 15;
break;
}
- case 304: {
- if (t == null) { currentState = 304; break; }
+ case 289: {
+ if (t == null) { currentState = 289; break; }
Expect(3, t); // LiteralString
- currentState = 301;
+ currentState = 286;
break;
}
- case 305: {
- if (t == null) { currentState = 305; break; }
+ case 290: {
+ if (t == null) { currentState = 290; break; }
if (t.kind == 126 || t.kind == 208) {
- currentState = 306;
+ currentState = 291;
break;
} else {
Error(t);
- goto case 306;
+ goto case 291;
}
}
- case 306: {
+ case 291: {
PushContext(Context.IdentifierExpected, t);
- goto case 307;
+ goto case 292;
}
- case 307: {
- if (t == null) { currentState = 307; break; }
- currentState = 308;
+ case 292: {
+ if (t == null) { currentState = 292; break; }
+ currentState = 293;
break;
}
- case 308: {
+ case 293: {
PopContext();
- goto case 309;
+ goto case 294;
}
- case 309: {
- if (t == null) { currentState = 309; break; }
+ case 294: {
+ if (t == null) { currentState = 294; break; }
if (t.kind == 36) {
- currentState = 315;
+ currentState = 300;
break;
} else {
- goto case 310;
+ goto case 295;
}
}
- case 310: {
- if (t == null) { currentState = 310; break; }
+ case 295: {
+ if (t == null) { currentState = 295; break; }
if (t.kind == 62) {
- currentState = 314;
+ currentState = 299;
break;
} else {
- goto case 311;
+ goto case 296;
}
}
- case 311: {
- stateStack.Push(312);
- goto case 31;
+ case 296: {
+ stateStack.Push(297);
+ goto case 29;
}
- case 312: {
- if (t == null) { currentState = 312; break; }
+ case 297: {
+ if (t == null) { currentState = 297; break; }
Expect(112, t); // "End"
- currentState = 313;
+ currentState = 298;
break;
}
- case 313: {
- if (t == null) { currentState = 313; break; }
+ case 298: {
+ if (t == null) { currentState = 298; break; }
if (t.kind == 126 || t.kind == 208) {
- currentState = 30;
+ currentState = 15;
break;
} else {
Error(t);
- goto case 30;
+ goto case 15;
}
}
- case 314: {
- stateStack.Push(311);
- goto case 69;
+ case 299: {
+ stateStack.Push(296);
+ goto case 65;
}
- case 315: {
- if (t == null) { currentState = 315; break; }
+ case 300: {
+ if (t == null) { currentState = 300; break; }
if (set[36, t.kind]) {
- stateStack.Push(316);
- goto case 267;
+ stateStack.Push(301);
+ goto case 252;
} else {
- goto case 316;
+ goto case 301;
}
}
- case 316: {
- if (t == null) { currentState = 316; break; }
+ case 301: {
+ if (t == null) { currentState = 301; break; }
Expect(37, t); // ")"
- currentState = 310;
+ currentState = 295;
break;
}
- case 317: {
- if (t == null) { currentState = 317; break; }
+ case 302: {
+ if (t == null) { currentState = 302; break; }
if (t.kind == 87) {
- currentState = 318;
+ currentState = 303;
break;
} else {
- goto case 318;
+ goto case 303;
}
}
- case 318: {
- stateStack.Push(319);
- goto case 323;
+ case 303: {
+ stateStack.Push(304);
+ goto case 308;
}
- case 319: {
- if (t == null) { currentState = 319; break; }
+ case 304: {
+ if (t == null) { currentState = 304; break; }
if (t.kind == 62) {
- currentState = 322;
+ currentState = 307;
break;
} else {
- goto case 320;
+ goto case 305;
}
}
- case 320: {
- if (t == null) { currentState = 320; break; }
+ case 305: {
+ if (t == null) { currentState = 305; break; }
if (t.kind == 21) {
- currentState = 321;
+ currentState = 306;
break;
} else {
- goto case 30;
+ goto case 15;
}
}
- case 321: {
- stateStack.Push(30);
- goto case 37;
+ case 306: {
+ stateStack.Push(15);
+ goto case 35;
}
- case 322: {
- stateStack.Push(320);
- goto case 69;
+ case 307: {
+ stateStack.Push(305);
+ goto case 65;
}
- case 323: {
- if (t == null) { currentState = 323; break; }
+ case 308: {
+ if (t == null) { currentState = 308; break; }
if (set[37, t.kind]) {
goto case 16;
} else {
goto case 6;
}
}
- case 324: {
- if (t == null) { currentState = 324; break; }
+ case 309: {
+ if (t == null) { currentState = 309; break; }
currentState = 9;
break;
}
- case 325: {
- if (t == null) { currentState = 325; break; }
- Expect(159, t); // "Namespace"
- currentState = 326;
+ case 310: {
+ if (t == null) { currentState = 310; break; }
+ currentState = 311;
break;
}
- case 326: {
- if (t == null) { currentState = 326; break; }
+ case 311: {
+ if (t == null) { currentState = 311; break; }
if (set[3, t.kind]) {
- currentState = 326;
- break;
+ goto case 310;
} else {
- stateStack.Push(327);
+ stateStack.Push(312);
goto case 15;
}
}
- case 327: {
- if (t == null) { currentState = 327; break; }
+ case 312: {
+ if (t == null) { currentState = 312; break; }
if (set[38, t.kind]) {
- stateStack.Push(327);
+ stateStack.Push(312);
goto case 5;
} else {
Expect(112, t); // "End"
- currentState = 328;
+ currentState = 313;
break;
}
}
- case 328: {
- if (t == null) { currentState = 328; break; }
+ case 313: {
+ if (t == null) { currentState = 313; break; }
Expect(159, t); // "Namespace"
- currentState = 30;
+ currentState = 15;
break;
}
- case 329: {
- if (t == null) { currentState = 329; break; }
+ case 314: {
+ if (t == null) { currentState = 314; break; }
Expect(136, t); // "Imports"
- currentState = 330;
+ currentState = 315;
break;
}
- case 330: {
+ case 315: {
nextTokenIsPotentialStartOfXmlMode = true;
- goto case 331;
+ goto case 316;
}
- case 331: {
- if (t == null) { currentState = 331; break; }
+ case 316: {
+ if (t == null) { currentState = 316; break; }
if (set[3, t.kind]) {
- currentState = 331;
+ currentState = 316;
break;
} else {
- goto case 30;
+ goto case 15;
}
}
- case 332: {
- if (t == null) { currentState = 332; break; }
+ case 317: {
+ if (t == null) { currentState = 317; break; }
Expect(172, t); // "Option"
- currentState = 333;
+ currentState = 318;
break;
}
- case 333: {
- if (t == null) { currentState = 333; break; }
+ case 318: {
+ if (t == null) { currentState = 318; break; }
if (set[3, t.kind]) {
- currentState = 333;
+ currentState = 318;
break;
} else {
- goto case 30;
+ goto case 15;
}
}
}
@@ -2607,8 +2526,8 @@ int currentState = 0;
{x,x,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,T,T, x,x,x,x, x,x,x,x, x,T,x,x, T,x,x,T, T,x,T,x, x,x,x,x, x,x,x,T, x,x,T,x, T,x,x,x, T,T,T,x, x,x,x,x, T,x,x,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, x,x,x,x, T,x,x,x, T,x,x,x, x,x,T,x, x,T,x,T, x,x,x,T, x,T,T,T, x,T,T,T, x,T,T,x, x,x,x,x, x,x,x,x, x,T,T,x, x,T,x,x, x,x,x,x, T,x,T,T, x,x,x,x, x,x,x,x, x,T,T,x, x,x,x,x, T,x,T,x, T,x,x,x, x,x},
{x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, T,x,x,x, T,x,x,x, x,x,T,x, x,x,x,x, x,x,x,x, x,T,T,T, x,T,x,T, x,T,T,x, x,x,x,x, x,x,x,x, x,T,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,T,x, T,x,x,x, x,x},
{x,x,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,T,T, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, x,x,T,x, x,x,x,x, x,x,x,T, x,x,x,x, T,x,x,x, x,T,x,x, x,x,x,x, T,x,x,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,T,T, x,x,x,x, x,x,x,x, x,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x},
- {x,T,T,T, T,T,T,T, T,T,T,x, x,x,x,x, x,T,x,x, x,x,T,x, x,x,x,T, T,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, T,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, T,x,x,T, T,T,T,T, T,x,T,x, T,T,T,T, T,T,T,T, T,T,T,T, T,T,x,x, x,x,x,T, T,T,T,T, x,x,x,x, x,x,x,T, T,T,x,T, T,T,x,T, x,T,x,x, T,x,x,T, T,x,T,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,T,T,x, x,T,x,T, T,x,x,x, x,T,T,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,T, x,T,x,T, T,T,x,T, x,x,x,x, x,T,T,x, T,x,x,x, x,T,T,T, x,T,x,T, T,T,T,x, x,T,T,x, x,x,x,x, T,T,x,T, x,x,x,T, x,x},
- {x,x,T,T, T,T,T,T, T,T,T,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,x,T, T,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, T,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, T,x,x,T, T,T,T,T, T,x,T,x, T,T,T,T, T,T,T,T, T,T,T,T, T,T,x,x, x,x,x,T, T,T,T,T, x,x,x,x, x,x,x,T, T,T,x,T, T,T,x,T, x,T,x,x, T,x,x,T, T,x,T,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,T,T,x, x,T,x,T, T,x,x,x, x,T,T,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,T, x,T,x,T, T,T,x,T, x,x,x,x, x,T,T,x, T,x,x,x, x,T,T,T, x,T,x,T, T,T,T,x, x,T,T,x, x,x,x,x, T,T,x,T, x,x,x,T, x,x},
+ {x,T,T,T, T,T,T,T, T,T,T,x, x,x,x,x, x,T,x,x, x,x,T,x, x,x,x,T, T,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, T,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, T,x,x,T, T,T,T,T, T,x,T,x, T,T,T,T, T,T,T,T, T,T,T,T, T,T,x,x, x,x,x,T, T,T,T,T, x,x,x,x, x,x,x,T, T,T,x,T, T,T,x,T, x,T,x,x, T,x,x,T, T,x,T,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,T,T,x, x,T,x,T, T,x,x,x, x,T,T,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,T, x,T,x,T, T,T,x,T, x,x,x,x, x,T,T,x, T,x,x,x, x,T,T,T, x,T,x,T, T,T,T,x, x,T,T,x, T,x,x,x, T,T,x,T, x,x,x,T, x,x},
+ {x,x,T,T, T,T,T,T, T,T,T,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,x,T, T,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, T,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, T,x,x,T, T,T,T,T, T,x,T,x, T,T,T,T, T,T,T,T, T,T,T,T, T,T,x,x, x,x,x,T, T,T,T,T, x,x,x,x, x,x,x,T, T,T,x,T, T,T,x,T, x,T,x,x, T,x,x,T, T,x,T,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,T,T,x, x,T,x,T, T,x,x,x, x,T,T,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,T, x,T,x,T, T,T,x,T, x,x,x,x, x,T,T,x, T,x,x,x, x,T,T,T, x,T,x,T, T,T,T,x, x,T,T,x, T,x,x,x, T,T,x,T, x,x,x,T, x,x},
{x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,T, x,x,x,x, x,x,x,x, x,x,x,T, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x},
{x,x,T,T, T,T,T,T, T,T,T,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,x,T, T,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, T,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, T,x,x,T, T,T,T,T, T,x,T,x, T,T,T,x, x,T,T,T, T,T,T,T, T,T,x,x, x,x,x,T, x,T,T,x, x,x,x,x, x,x,x,T, x,x,x,x, T,T,x,x, x,T,x,x, T,x,x,x, T,x,T,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,T,T,x, x,T,x,T, T,x,x,x, x,T,x,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,T,T, x,x,x,T, x,T,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,x,x,T, x,x},
{x,x,T,T, T,T,T,T, T,T,T,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,x,T, T,T,T,x, x,x,x,x, T,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, T,T,x,x, x,T,x,T, T,T,T,x, x,T,x,x, x,x,x,T, T,T,T,T, T,x,T,x, T,T,T,x, x,T,T,T, T,T,T,T, T,T,x,x, x,x,x,T, x,T,T,x, x,x,x,x, x,x,x,T, x,x,x,x, T,T,x,x, x,T,x,x, T,x,x,x, T,x,x,x, x,x,T,x, x,x,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,T,T,x, x,T,x,T, T,x,x,x, x,T,x,x, x,x,x,T, x,x,x,x, x,x,T,x, x,x,x,x, x,x,x,x, x,x,x,x, x,x,x,x, x,T,x,x, x,x,x,x, x,x,T,T, x,x,x,T, x,T,T,x, x,T,T,x, x,x,x,x, T,x,x,x, x,x,x,T, x,x},
diff --git a/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Test/XmlModeLexerTests.cs b/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Test/XmlModeLexerTests.cs
index 675204aa57..4639e3b706 100644
--- a/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Test/XmlModeLexerTests.cs
+++ b/src/Libraries/NRefactory/Project/Src/Parser/VBNet/Experimental/Test/XmlModeLexerTests.cs
@@ -732,6 +732,23 @@ ReDim Preserve ";
CheckFoot(lexer);
}
+
+ [Test]
+ public void UsingStatement()
+ {
+ string statement = @"Using
+End Using";
+
+ ILexer lexer = GenerateLexer(new StringReader(TestStatement(statement)));
+
+ CheckHead(lexer);
+
+ CheckTokens(lexer, Tokens.Using, Tokens.XmlOpenTag, Tokens.Identifier, Tokens.XmlCloseTagEmptyElement, Tokens.EOL,
+ Tokens.End, Tokens.Using
+ );
+
+ CheckFoot(lexer);
+ }
#endregion
#region Helpers