Skip to content

Commit 025054e

Browse files
authored
Merge pull request #461 from xiemaisi/js/bye-bye-rhino
Approved by esben-semmle
2 parents 77213aa + f26d47a commit 025054e

File tree

12 files changed

+4061
-1649
lines changed

12 files changed

+4061
-1649
lines changed

javascript/extractor/src/com/semmle/js/ast/SourceLocation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ public SourceLocation(String source, Position start) {
2121
this(source, start, null);
2222
}
2323

24+
public SourceLocation(SourceLocation that) {
25+
this(that.source, that.start, that.end);
26+
}
27+
2428
/**
2529
* The source code contained in this location.
2630
*/

javascript/extractor/src/com/semmle/js/ast/regexp/Error.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,20 @@
77
* An error encountered while parsing a regular expression.
88
*/
99
public class Error extends SourceElement {
10+
public static final int UNEXPECTED_EOS = 0;
11+
public static final int UNEXPECTED_CHARACTER = 1;
12+
public static final int EXPECTED_DIGIT = 2;
13+
public static final int EXPECTED_HEX_DIGIT = 3;
14+
public static final int EXPECTED_CONTROL_LETTER = 4;
15+
public static final int EXPECTED_CLOSING_PAREN = 5;
16+
public static final int EXPECTED_CLOSING_BRACE = 6;
17+
public static final int EXPECTED_EOS = 7;
18+
public static final int OCTAL_ESCAPE = 8;
19+
public static final int INVALID_BACKREF = 9;
20+
public static final int EXPECTED_RBRACKET = 10;
21+
public static final int EXPECTED_IDENTIFIER = 11;
22+
public static final int EXPECTED_CLOSING_ANGLE = 12;
23+
1024
private final int code;
1125

1226
public Error(SourceLocation loc, Number code) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class Main {
3939
* such a way that it may produce different tuples for the same file under the same
4040
* {@link ExtractorConfig}.
4141
*/
42-
public static final String EXTRACTOR_VERSION = "2018-10-16";
42+
public static final String EXTRACTOR_VERSION = "2018-11-12";
4343

4444
public static final Pattern NEWLINE = Pattern.compile("\n");
4545

0 commit comments

Comments
 (0)