Edit File by line
/home/barbar84/www/wp-inclu.../js/codemirr...
File: csslint.js
[2000] Fix | Delete
//add whitespace separator
[2001] Fix | Delete
ws = new Combinator(tokenStream.token().value, tokenStream.token().startLine, tokenStream.token().startCol);
[2002] Fix | Delete
[2003] Fix | Delete
//combinator is not required
[2004] Fix | Delete
combinator = this._combinator();
[2005] Fix | Delete
[2006] Fix | Delete
//selector is required if there's a combinator
[2007] Fix | Delete
nextSelector = this._simple_selector_sequence();
[2008] Fix | Delete
if (nextSelector === null) {
[2009] Fix | Delete
if (combinator !== null) {
[2010] Fix | Delete
this._unexpectedToken(tokenStream.LT(1));
[2011] Fix | Delete
}
[2012] Fix | Delete
} else {
[2013] Fix | Delete
[2014] Fix | Delete
if (combinator !== null) {
[2015] Fix | Delete
selector.push(combinator);
[2016] Fix | Delete
} else {
[2017] Fix | Delete
selector.push(ws);
[2018] Fix | Delete
}
[2019] Fix | Delete
[2020] Fix | Delete
selector.push(nextSelector);
[2021] Fix | Delete
}
[2022] Fix | Delete
} else {
[2023] Fix | Delete
break;
[2024] Fix | Delete
}
[2025] Fix | Delete
[2026] Fix | Delete
}
[2027] Fix | Delete
} while (true);
[2028] Fix | Delete
[2029] Fix | Delete
return new Selector(selector, selector[0].line, selector[0].col);
[2030] Fix | Delete
},
[2031] Fix | Delete
[2032] Fix | Delete
//CSS3 Selectors
[2033] Fix | Delete
_simple_selector_sequence: function() {
[2034] Fix | Delete
/*
[2035] Fix | Delete
* simple_selector_sequence
[2036] Fix | Delete
* : [ type_selector | universal ]
[2037] Fix | Delete
* [ HASH | class | attrib | pseudo | negation ]*
[2038] Fix | Delete
* | [ HASH | class | attrib | pseudo | negation ]+
[2039] Fix | Delete
* ;
[2040] Fix | Delete
*/
[2041] Fix | Delete
[2042] Fix | Delete
var tokenStream = this._tokenStream,
[2043] Fix | Delete
[2044] Fix | Delete
//parts of a simple selector
[2045] Fix | Delete
elementName = null,
[2046] Fix | Delete
modifiers = [],
[2047] Fix | Delete
[2048] Fix | Delete
//complete selector text
[2049] Fix | Delete
selectorText= "",
[2050] Fix | Delete
[2051] Fix | Delete
//the different parts after the element name to search for
[2052] Fix | Delete
components = [
[2053] Fix | Delete
//HASH
[2054] Fix | Delete
function() {
[2055] Fix | Delete
return tokenStream.match(Tokens.HASH) ?
[2056] Fix | Delete
new SelectorSubPart(tokenStream.token().value, "id", tokenStream.token().startLine, tokenStream.token().startCol) :
[2057] Fix | Delete
null;
[2058] Fix | Delete
},
[2059] Fix | Delete
this._class,
[2060] Fix | Delete
this._attrib,
[2061] Fix | Delete
this._pseudo,
[2062] Fix | Delete
this._negation
[2063] Fix | Delete
],
[2064] Fix | Delete
i = 0,
[2065] Fix | Delete
len = components.length,
[2066] Fix | Delete
component = null,
[2067] Fix | Delete
line,
[2068] Fix | Delete
col;
[2069] Fix | Delete
[2070] Fix | Delete
[2071] Fix | Delete
//get starting line and column for the selector
[2072] Fix | Delete
line = tokenStream.LT(1).startLine;
[2073] Fix | Delete
col = tokenStream.LT(1).startCol;
[2074] Fix | Delete
[2075] Fix | Delete
elementName = this._type_selector();
[2076] Fix | Delete
if (!elementName) {
[2077] Fix | Delete
elementName = this._universal();
[2078] Fix | Delete
}
[2079] Fix | Delete
[2080] Fix | Delete
if (elementName !== null) {
[2081] Fix | Delete
selectorText += elementName;
[2082] Fix | Delete
}
[2083] Fix | Delete
[2084] Fix | Delete
while (true) {
[2085] Fix | Delete
[2086] Fix | Delete
//whitespace means we're done
[2087] Fix | Delete
if (tokenStream.peek() === Tokens.S) {
[2088] Fix | Delete
break;
[2089] Fix | Delete
}
[2090] Fix | Delete
[2091] Fix | Delete
//check for each component
[2092] Fix | Delete
while (i < len && component === null) {
[2093] Fix | Delete
component = components[i++].call(this);
[2094] Fix | Delete
}
[2095] Fix | Delete
[2096] Fix | Delete
if (component === null) {
[2097] Fix | Delete
[2098] Fix | Delete
//we don't have a selector
[2099] Fix | Delete
if (selectorText === "") {
[2100] Fix | Delete
return null;
[2101] Fix | Delete
} else {
[2102] Fix | Delete
break;
[2103] Fix | Delete
}
[2104] Fix | Delete
} else {
[2105] Fix | Delete
i = 0;
[2106] Fix | Delete
modifiers.push(component);
[2107] Fix | Delete
selectorText += component.toString();
[2108] Fix | Delete
component = null;
[2109] Fix | Delete
}
[2110] Fix | Delete
}
[2111] Fix | Delete
[2112] Fix | Delete
[2113] Fix | Delete
return selectorText !== "" ?
[2114] Fix | Delete
new SelectorPart(elementName, modifiers, selectorText, line, col) :
[2115] Fix | Delete
null;
[2116] Fix | Delete
},
[2117] Fix | Delete
[2118] Fix | Delete
//CSS3 Selectors
[2119] Fix | Delete
_type_selector: function() {
[2120] Fix | Delete
/*
[2121] Fix | Delete
* type_selector
[2122] Fix | Delete
* : [ namespace_prefix ]? element_name
[2123] Fix | Delete
* ;
[2124] Fix | Delete
*/
[2125] Fix | Delete
[2126] Fix | Delete
var tokenStream = this._tokenStream,
[2127] Fix | Delete
ns = this._namespace_prefix(),
[2128] Fix | Delete
elementName = this._element_name();
[2129] Fix | Delete
[2130] Fix | Delete
if (!elementName) {
[2131] Fix | Delete
/*
[2132] Fix | Delete
* Need to back out the namespace that was read due to both
[2133] Fix | Delete
* type_selector and universal reading namespace_prefix
[2134] Fix | Delete
* first. Kind of hacky, but only way I can figure out
[2135] Fix | Delete
* right now how to not change the grammar.
[2136] Fix | Delete
*/
[2137] Fix | Delete
if (ns) {
[2138] Fix | Delete
tokenStream.unget();
[2139] Fix | Delete
if (ns.length > 1) {
[2140] Fix | Delete
tokenStream.unget();
[2141] Fix | Delete
}
[2142] Fix | Delete
}
[2143] Fix | Delete
[2144] Fix | Delete
return null;
[2145] Fix | Delete
} else {
[2146] Fix | Delete
if (ns) {
[2147] Fix | Delete
elementName.text = ns + elementName.text;
[2148] Fix | Delete
elementName.col -= ns.length;
[2149] Fix | Delete
}
[2150] Fix | Delete
return elementName;
[2151] Fix | Delete
}
[2152] Fix | Delete
},
[2153] Fix | Delete
[2154] Fix | Delete
//CSS3 Selectors
[2155] Fix | Delete
_class: function() {
[2156] Fix | Delete
/*
[2157] Fix | Delete
* class
[2158] Fix | Delete
* : '.' IDENT
[2159] Fix | Delete
* ;
[2160] Fix | Delete
*/
[2161] Fix | Delete
[2162] Fix | Delete
var tokenStream = this._tokenStream,
[2163] Fix | Delete
token;
[2164] Fix | Delete
[2165] Fix | Delete
if (tokenStream.match(Tokens.DOT)) {
[2166] Fix | Delete
tokenStream.mustMatch(Tokens.IDENT);
[2167] Fix | Delete
token = tokenStream.token();
[2168] Fix | Delete
return new SelectorSubPart("." + token.value, "class", token.startLine, token.startCol - 1);
[2169] Fix | Delete
} else {
[2170] Fix | Delete
return null;
[2171] Fix | Delete
}
[2172] Fix | Delete
[2173] Fix | Delete
},
[2174] Fix | Delete
[2175] Fix | Delete
//CSS3 Selectors
[2176] Fix | Delete
_element_name: function() {
[2177] Fix | Delete
/*
[2178] Fix | Delete
* element_name
[2179] Fix | Delete
* : IDENT
[2180] Fix | Delete
* ;
[2181] Fix | Delete
*/
[2182] Fix | Delete
[2183] Fix | Delete
var tokenStream = this._tokenStream,
[2184] Fix | Delete
token;
[2185] Fix | Delete
[2186] Fix | Delete
if (tokenStream.match(Tokens.IDENT)) {
[2187] Fix | Delete
token = tokenStream.token();
[2188] Fix | Delete
return new SelectorSubPart(token.value, "elementName", token.startLine, token.startCol);
[2189] Fix | Delete
[2190] Fix | Delete
} else {
[2191] Fix | Delete
return null;
[2192] Fix | Delete
}
[2193] Fix | Delete
},
[2194] Fix | Delete
[2195] Fix | Delete
//CSS3 Selectors
[2196] Fix | Delete
_namespace_prefix: function() {
[2197] Fix | Delete
/*
[2198] Fix | Delete
* namespace_prefix
[2199] Fix | Delete
* : [ IDENT | '*' ]? '|'
[2200] Fix | Delete
* ;
[2201] Fix | Delete
*/
[2202] Fix | Delete
var tokenStream = this._tokenStream,
[2203] Fix | Delete
value = "";
[2204] Fix | Delete
[2205] Fix | Delete
//verify that this is a namespace prefix
[2206] Fix | Delete
if (tokenStream.LA(1) === Tokens.PIPE || tokenStream.LA(2) === Tokens.PIPE) {
[2207] Fix | Delete
[2208] Fix | Delete
if (tokenStream.match([Tokens.IDENT, Tokens.STAR])) {
[2209] Fix | Delete
value += tokenStream.token().value;
[2210] Fix | Delete
}
[2211] Fix | Delete
[2212] Fix | Delete
tokenStream.mustMatch(Tokens.PIPE);
[2213] Fix | Delete
value += "|";
[2214] Fix | Delete
[2215] Fix | Delete
}
[2216] Fix | Delete
[2217] Fix | Delete
return value.length ? value : null;
[2218] Fix | Delete
},
[2219] Fix | Delete
[2220] Fix | Delete
//CSS3 Selectors
[2221] Fix | Delete
_universal: function() {
[2222] Fix | Delete
/*
[2223] Fix | Delete
* universal
[2224] Fix | Delete
* : [ namespace_prefix ]? '*'
[2225] Fix | Delete
* ;
[2226] Fix | Delete
*/
[2227] Fix | Delete
var tokenStream = this._tokenStream,
[2228] Fix | Delete
value = "",
[2229] Fix | Delete
ns;
[2230] Fix | Delete
[2231] Fix | Delete
ns = this._namespace_prefix();
[2232] Fix | Delete
if (ns) {
[2233] Fix | Delete
value += ns;
[2234] Fix | Delete
}
[2235] Fix | Delete
[2236] Fix | Delete
if (tokenStream.match(Tokens.STAR)) {
[2237] Fix | Delete
value += "*";
[2238] Fix | Delete
}
[2239] Fix | Delete
[2240] Fix | Delete
return value.length ? value : null;
[2241] Fix | Delete
[2242] Fix | Delete
},
[2243] Fix | Delete
[2244] Fix | Delete
//CSS3 Selectors
[2245] Fix | Delete
_attrib: function() {
[2246] Fix | Delete
/*
[2247] Fix | Delete
* attrib
[2248] Fix | Delete
* : '[' S* [ namespace_prefix ]? IDENT S*
[2249] Fix | Delete
* [ [ PREFIXMATCH |
[2250] Fix | Delete
* SUFFIXMATCH |
[2251] Fix | Delete
* SUBSTRINGMATCH |
[2252] Fix | Delete
* '=' |
[2253] Fix | Delete
* INCLUDES |
[2254] Fix | Delete
* DASHMATCH ] S* [ IDENT | STRING ] S*
[2255] Fix | Delete
* ]? ']'
[2256] Fix | Delete
* ;
[2257] Fix | Delete
*/
[2258] Fix | Delete
[2259] Fix | Delete
var tokenStream = this._tokenStream,
[2260] Fix | Delete
value = null,
[2261] Fix | Delete
ns,
[2262] Fix | Delete
token;
[2263] Fix | Delete
[2264] Fix | Delete
if (tokenStream.match(Tokens.LBRACKET)) {
[2265] Fix | Delete
token = tokenStream.token();
[2266] Fix | Delete
value = token.value;
[2267] Fix | Delete
value += this._readWhitespace();
[2268] Fix | Delete
[2269] Fix | Delete
ns = this._namespace_prefix();
[2270] Fix | Delete
[2271] Fix | Delete
if (ns) {
[2272] Fix | Delete
value += ns;
[2273] Fix | Delete
}
[2274] Fix | Delete
[2275] Fix | Delete
tokenStream.mustMatch(Tokens.IDENT);
[2276] Fix | Delete
value += tokenStream.token().value;
[2277] Fix | Delete
value += this._readWhitespace();
[2278] Fix | Delete
[2279] Fix | Delete
if (tokenStream.match([Tokens.PREFIXMATCH, Tokens.SUFFIXMATCH, Tokens.SUBSTRINGMATCH,
[2280] Fix | Delete
Tokens.EQUALS, Tokens.INCLUDES, Tokens.DASHMATCH])) {
[2281] Fix | Delete
[2282] Fix | Delete
value += tokenStream.token().value;
[2283] Fix | Delete
value += this._readWhitespace();
[2284] Fix | Delete
[2285] Fix | Delete
tokenStream.mustMatch([Tokens.IDENT, Tokens.STRING]);
[2286] Fix | Delete
value += tokenStream.token().value;
[2287] Fix | Delete
value += this._readWhitespace();
[2288] Fix | Delete
}
[2289] Fix | Delete
[2290] Fix | Delete
tokenStream.mustMatch(Tokens.RBRACKET);
[2291] Fix | Delete
[2292] Fix | Delete
return new SelectorSubPart(value + "]", "attribute", token.startLine, token.startCol);
[2293] Fix | Delete
} else {
[2294] Fix | Delete
return null;
[2295] Fix | Delete
}
[2296] Fix | Delete
},
[2297] Fix | Delete
[2298] Fix | Delete
//CSS3 Selectors
[2299] Fix | Delete
_pseudo: function() {
[2300] Fix | Delete
[2301] Fix | Delete
/*
[2302] Fix | Delete
* pseudo
[2303] Fix | Delete
* : ':' ':'? [ IDENT | functional_pseudo ]
[2304] Fix | Delete
* ;
[2305] Fix | Delete
*/
[2306] Fix | Delete
[2307] Fix | Delete
var tokenStream = this._tokenStream,
[2308] Fix | Delete
pseudo = null,
[2309] Fix | Delete
colons = ":",
[2310] Fix | Delete
line,
[2311] Fix | Delete
col;
[2312] Fix | Delete
[2313] Fix | Delete
if (tokenStream.match(Tokens.COLON)) {
[2314] Fix | Delete
[2315] Fix | Delete
if (tokenStream.match(Tokens.COLON)) {
[2316] Fix | Delete
colons += ":";
[2317] Fix | Delete
}
[2318] Fix | Delete
[2319] Fix | Delete
if (tokenStream.match(Tokens.IDENT)) {
[2320] Fix | Delete
pseudo = tokenStream.token().value;
[2321] Fix | Delete
line = tokenStream.token().startLine;
[2322] Fix | Delete
col = tokenStream.token().startCol - colons.length;
[2323] Fix | Delete
} else if (tokenStream.peek() === Tokens.FUNCTION) {
[2324] Fix | Delete
line = tokenStream.LT(1).startLine;
[2325] Fix | Delete
col = tokenStream.LT(1).startCol - colons.length;
[2326] Fix | Delete
pseudo = this._functional_pseudo();
[2327] Fix | Delete
}
[2328] Fix | Delete
[2329] Fix | Delete
if (pseudo) {
[2330] Fix | Delete
pseudo = new SelectorSubPart(colons + pseudo, "pseudo", line, col);
[2331] Fix | Delete
} else {
[2332] Fix | Delete
var startLine = tokenStream.LT(1).startLine,
[2333] Fix | Delete
startCol = tokenStream.LT(0).startCol;
[2334] Fix | Delete
throw new SyntaxError("Expected a `FUNCTION` or `IDENT` after colon at line " + startLine + ", col " + startCol + ".", startLine, startCol);
[2335] Fix | Delete
}
[2336] Fix | Delete
}
[2337] Fix | Delete
[2338] Fix | Delete
return pseudo;
[2339] Fix | Delete
},
[2340] Fix | Delete
[2341] Fix | Delete
//CSS3 Selectors
[2342] Fix | Delete
_functional_pseudo: function() {
[2343] Fix | Delete
/*
[2344] Fix | Delete
* functional_pseudo
[2345] Fix | Delete
* : FUNCTION S* expression ')'
[2346] Fix | Delete
* ;
[2347] Fix | Delete
*/
[2348] Fix | Delete
[2349] Fix | Delete
var tokenStream = this._tokenStream,
[2350] Fix | Delete
value = null;
[2351] Fix | Delete
[2352] Fix | Delete
if (tokenStream.match(Tokens.FUNCTION)) {
[2353] Fix | Delete
value = tokenStream.token().value;
[2354] Fix | Delete
value += this._readWhitespace();
[2355] Fix | Delete
value += this._expression();
[2356] Fix | Delete
tokenStream.mustMatch(Tokens.RPAREN);
[2357] Fix | Delete
value += ")";
[2358] Fix | Delete
}
[2359] Fix | Delete
[2360] Fix | Delete
return value;
[2361] Fix | Delete
},
[2362] Fix | Delete
[2363] Fix | Delete
//CSS3 Selectors
[2364] Fix | Delete
_expression: function() {
[2365] Fix | Delete
/*
[2366] Fix | Delete
* expression
[2367] Fix | Delete
* : [ [ PLUS | '-' | DIMENSION | NUMBER | STRING | IDENT ] S* ]+
[2368] Fix | Delete
* ;
[2369] Fix | Delete
*/
[2370] Fix | Delete
[2371] Fix | Delete
var tokenStream = this._tokenStream,
[2372] Fix | Delete
value = "";
[2373] Fix | Delete
[2374] Fix | Delete
while (tokenStream.match([Tokens.PLUS, Tokens.MINUS, Tokens.DIMENSION,
[2375] Fix | Delete
Tokens.NUMBER, Tokens.STRING, Tokens.IDENT, Tokens.LENGTH,
[2376] Fix | Delete
Tokens.FREQ, Tokens.ANGLE, Tokens.TIME,
[2377] Fix | Delete
Tokens.RESOLUTION, Tokens.SLASH])) {
[2378] Fix | Delete
[2379] Fix | Delete
value += tokenStream.token().value;
[2380] Fix | Delete
value += this._readWhitespace();
[2381] Fix | Delete
}
[2382] Fix | Delete
[2383] Fix | Delete
return value.length ? value : null;
[2384] Fix | Delete
[2385] Fix | Delete
},
[2386] Fix | Delete
[2387] Fix | Delete
//CSS3 Selectors
[2388] Fix | Delete
_negation: function() {
[2389] Fix | Delete
/*
[2390] Fix | Delete
* negation
[2391] Fix | Delete
* : NOT S* negation_arg S* ')'
[2392] Fix | Delete
* ;
[2393] Fix | Delete
*/
[2394] Fix | Delete
[2395] Fix | Delete
var tokenStream = this._tokenStream,
[2396] Fix | Delete
line,
[2397] Fix | Delete
col,
[2398] Fix | Delete
value = "",
[2399] Fix | Delete
arg,
[2400] Fix | Delete
subpart = null;
[2401] Fix | Delete
[2402] Fix | Delete
if (tokenStream.match(Tokens.NOT)) {
[2403] Fix | Delete
value = tokenStream.token().value;
[2404] Fix | Delete
line = tokenStream.token().startLine;
[2405] Fix | Delete
col = tokenStream.token().startCol;
[2406] Fix | Delete
value += this._readWhitespace();
[2407] Fix | Delete
arg = this._negation_arg();
[2408] Fix | Delete
value += arg;
[2409] Fix | Delete
value += this._readWhitespace();
[2410] Fix | Delete
tokenStream.match(Tokens.RPAREN);
[2411] Fix | Delete
value += tokenStream.token().value;
[2412] Fix | Delete
[2413] Fix | Delete
subpart = new SelectorSubPart(value, "not", line, col);
[2414] Fix | Delete
subpart.args.push(arg);
[2415] Fix | Delete
}
[2416] Fix | Delete
[2417] Fix | Delete
return subpart;
[2418] Fix | Delete
},
[2419] Fix | Delete
[2420] Fix | Delete
//CSS3 Selectors
[2421] Fix | Delete
_negation_arg: function() {
[2422] Fix | Delete
/*
[2423] Fix | Delete
* negation_arg
[2424] Fix | Delete
* : type_selector | universal | HASH | class | attrib | pseudo
[2425] Fix | Delete
* ;
[2426] Fix | Delete
*/
[2427] Fix | Delete
[2428] Fix | Delete
var tokenStream = this._tokenStream,
[2429] Fix | Delete
args = [
[2430] Fix | Delete
this._type_selector,
[2431] Fix | Delete
this._universal,
[2432] Fix | Delete
function() {
[2433] Fix | Delete
return tokenStream.match(Tokens.HASH) ?
[2434] Fix | Delete
new SelectorSubPart(tokenStream.token().value, "id", tokenStream.token().startLine, tokenStream.token().startCol) :
[2435] Fix | Delete
null;
[2436] Fix | Delete
},
[2437] Fix | Delete
this._class,
[2438] Fix | Delete
this._attrib,
[2439] Fix | Delete
this._pseudo
[2440] Fix | Delete
],
[2441] Fix | Delete
arg = null,
[2442] Fix | Delete
i = 0,
[2443] Fix | Delete
len = args.length,
[2444] Fix | Delete
line,
[2445] Fix | Delete
col,
[2446] Fix | Delete
part;
[2447] Fix | Delete
[2448] Fix | Delete
line = tokenStream.LT(1).startLine;
[2449] Fix | Delete
col = tokenStream.LT(1).startCol;
[2450] Fix | Delete
[2451] Fix | Delete
while (i < len && arg === null) {
[2452] Fix | Delete
[2453] Fix | Delete
arg = args[i].call(this);
[2454] Fix | Delete
i++;
[2455] Fix | Delete
}
[2456] Fix | Delete
[2457] Fix | Delete
//must be a negation arg
[2458] Fix | Delete
if (arg === null) {
[2459] Fix | Delete
this._unexpectedToken(tokenStream.LT(1));
[2460] Fix | Delete
}
[2461] Fix | Delete
[2462] Fix | Delete
//it's an element name
[2463] Fix | Delete
if (arg.type === "elementName") {
[2464] Fix | Delete
part = new SelectorPart(arg, [], arg.toString(), line, col);
[2465] Fix | Delete
} else {
[2466] Fix | Delete
part = new SelectorPart(null, [arg], arg.toString(), line, col);
[2467] Fix | Delete
}
[2468] Fix | Delete
[2469] Fix | Delete
return part;
[2470] Fix | Delete
},
[2471] Fix | Delete
[2472] Fix | Delete
_declaration: function() {
[2473] Fix | Delete
[2474] Fix | Delete
/*
[2475] Fix | Delete
* declaration
[2476] Fix | Delete
* : property ':' S* expr prio?
[2477] Fix | Delete
* | /( empty )/
[2478] Fix | Delete
* ;
[2479] Fix | Delete
*/
[2480] Fix | Delete
[2481] Fix | Delete
var tokenStream = this._tokenStream,
[2482] Fix | Delete
property = null,
[2483] Fix | Delete
expr = null,
[2484] Fix | Delete
prio = null,
[2485] Fix | Delete
invalid = null,
[2486] Fix | Delete
propertyName= "";
[2487] Fix | Delete
[2488] Fix | Delete
property = this._property();
[2489] Fix | Delete
if (property !== null) {
[2490] Fix | Delete
[2491] Fix | Delete
tokenStream.mustMatch(Tokens.COLON);
[2492] Fix | Delete
this._readWhitespace();
[2493] Fix | Delete
[2494] Fix | Delete
expr = this._expr();
[2495] Fix | Delete
[2496] Fix | Delete
//if there's no parts for the value, it's an error
[2497] Fix | Delete
if (!expr || expr.length === 0) {
[2498] Fix | Delete
this._unexpectedToken(tokenStream.LT(1));
[2499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function