Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdb615f

Browse files
committed
renamed "jsParseErrors" to "js_parse_errors"
1 parent b5d6cbd commit fdb615f

35 files changed

Lines changed: 42 additions & 35 deletions

javascript/extractor/src/com/semmle/js/extractor/JSExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public Pair<Label, LoCInfo> extract(
130130
if (!config.isTolerateParseErrors()) throw parseError;
131131
Label key = trapwriter.freshLabel();
132132
String errorLine = textualExtractor.getLine(parseError.getPosition().getLine());
133-
trapwriter.addTuple("jsParseErrors", key, toplevelLabel, "Error: " + parseError, errorLine);
133+
trapwriter.addTuple("js_parse_errors", key, toplevelLabel, "Error: " + parseError, errorLine);
134134
locationManager.emitErrorLocation(
135135
key, parseError.getPosition(), textualExtractor.getNumLines());
136136
lexicalExtractor.extractLines(source, toplevelLabel);

javascript/extractor/tests/encoding/output/trap/zwsp.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toplevels(#20001,0)
1414
locations_default(#20002,#10000,1,1,1,1)
1515
hasLocation(#20001,#20002)
1616
#20003=*
17-
jsParseErrors(#20003,#20001,"Error: Unexpected character '​' (U+200B)","​
17+
js_parse_errors(#20003,#20001,"Error: Unexpected character '​' (U+200B)","​
1818
")
1919
hasLocation(#20003,#20002)
2020
#20004=*

javascript/extractor/tests/errors/output/trap/errors.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toplevels(#20001,0)
1414
locations_default(#20002,#10000,1,1,1,1)
1515
hasLocation(#20001,#20002)
1616
#20003=*
17-
jsParseErrors(#20003,#20001,"Error: Unexpected token","hi~~")
17+
js_parse_errors(#20003,#20001,"Error: Unexpected token","hi~~")
1818
#20004=@"loc,{#10000},1,3,1,3"
1919
locations_default(#20004,#10000,1,3,1,3)
2020
hasLocation(#20003,#20004)

javascript/extractor/tests/errors/output/trap/incomplete.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toplevels(#20001,0)
1414
locations_default(#20002,#10000,1,1,1,1)
1515
hasLocation(#20001,#20002)
1616
#20003=*
17-
jsParseErrors(#20003,#20001,"Error: Unexpected token","")
17+
js_parse_errors(#20003,#20001,"Error: Unexpected token","")
1818
hasLocation(#20003,#20002)
1919
#20004=*
2020
lines(#20004,#20001,"if (b) {","

javascript/extractor/tests/errors/output/trap/invalid-assignment-pattern.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ successor(#20025,#20026)
105105
successor(#20022,#20030)
106106
successor(#20028,#20021)
107107
#20031=*
108-
jsParseErrors(#20031,#20001,"Error: Unexpected assignment pattern.","(x = 0) = y
108+
js_parse_errors(#20031,#20001,"Error: Unexpected assignment pattern.","(x = 0) = y
109109
")
110110
hasLocation(#20031,#20007)
111111
#20032=*

javascript/extractor/tests/errors/output/trap/kwident.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ successor(#20021,#20022)
9090
successor(#20019,#20025)
9191
successor(#20023,#20018)
9292
#20026=*
93-
jsParseErrors(#20026,#20001,"Error: Cannot use keyword 'class' as an identifier.","var class = 23;
93+
js_parse_errors(#20026,#20001,"Error: Cannot use keyword 'class' as an identifier.","var class = 23;
9494
")
9595
#20027=@"loc,{#10000},1,5,1,5"
9696
locations_default(#20027,#10000,1,5,1,5)

javascript/extractor/tests/errors/output/trap/weirdassign.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toplevels(#20001,0)
1414
locations_default(#20002,#10000,1,1,1,1)
1515
hasLocation(#20001,#20002)
1616
#20003=*
17-
jsParseErrors(#20003,#20001,"Error: Unexpected token","a %*= 1")
17+
js_parse_errors(#20003,#20001,"Error: Unexpected token","a %*= 1")
1818
#20004=@"loc,{#10000},1,4,1,4"
1919
locations_default(#20004,#10000,1,4,1,4)
2020
hasLocation(#20003,#20004)

javascript/extractor/tests/es2015/output/trap/restparms2.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ toplevels(#20001,0)
1414
locations_default(#20002,#10000,1,1,1,1)
1515
hasLocation(#20001,#20002)
1616
#20003=*
17-
jsParseErrors(#20003,#20001,"Error: Unexpected token","function f(x, ...[y, z]) {
17+
js_parse_errors(#20003,#20001,"Error: Unexpected token","function f(x, ...[y, z]) {
1818
")
1919
#20004=@"loc,{#10000},1,18,1,18"
2020
locations_default(#20004,#10000,1,18,1,18)

javascript/extractor/tests/es2015/output/trap/unknown_meta_property.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ successor(#20044,#20035)
145145
successor(#20032,#20031)
146146
successor(#20041,#20032)
147147
#20046=*
148-
jsParseErrors(#20046,#20001,"Error: The only valid meta property for new is new.target"," new.source;
148+
js_parse_errors(#20046,#20001,"Error: The only valid meta property for new is new.target"," new.source;
149149
")
150150
#20047=@"loc,{#10000},2,7,2,7"
151151
locations_default(#20047,#10000,2,7,2,7)

javascript/extractor/tests/es2016/output/trap/usestrict.js.trap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ successor(#20046,#20035)
157157
successor(#20030,#20029)
158158
successor(#20043,#20030)
159159
#20048=*
160-
jsParseErrors(#20048,#20001,"Error: Illegal 'use strict' directive in function with non-simple parameter list","function f(a=2) { 'use strict'; }")
160+
js_parse_errors(#20048,#20001,"Error: Illegal 'use strict' directive in function with non-simple parameter list","function f(a=2) { 'use strict'; }")
161161
#20049=@"loc,{#10000},1,19,1,19"
162162
locations_default(#20049,#10000,1,19,1,19)
163163
hasLocation(#20048,#20049)

0 commit comments

Comments
 (0)