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

Skip to content

Commit 0220ab6

Browse files
committed
JS: Move some TypeScript classes into .ts.extractor
1 parent 8d09885 commit 0220ab6

7 files changed

Lines changed: 10 additions & 7 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
import com.semmle.js.extractor.trapcache.DummyTrapCache;
4747
import com.semmle.js.extractor.trapcache.ITrapCache;
4848
import com.semmle.js.parser.ParsedProject;
49-
import com.semmle.js.parser.TypeScriptParser;
5049
import com.semmle.ts.extractor.TypeExtractor;
50+
import com.semmle.ts.extractor.TypeScriptParser;
5151
import com.semmle.ts.extractor.TypeTable;
5252
import com.semmle.util.data.StringUtil;
5353
import com.semmle.util.exception.CatastrophicError;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.concurrent.ConcurrentMap;
77
import java.util.Optional;
88

9-
import com.semmle.js.parser.TypeScriptParser;
9+
import com.semmle.ts.extractor.TypeScriptParser;
1010

1111
/**
1212
* Contains the state to be shared between extractions of different files.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import com.semmle.js.extractor.trapcache.DummyTrapCache;
2020
import com.semmle.js.extractor.trapcache.ITrapCache;
2121
import com.semmle.js.parser.ParsedProject;
22-
import com.semmle.js.parser.TypeScriptParser;
2322
import com.semmle.ts.extractor.TypeExtractor;
23+
import com.semmle.ts.extractor.TypeScriptParser;
2424
import com.semmle.ts.extractor.TypeTable;
2525
import com.semmle.util.data.StringUtil;
2626
import com.semmle.util.data.UnitParser;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.semmle.js.extractor.ExtractorConfig.ECMAVersion;
66
import com.semmle.js.extractor.ExtractorConfig.SourceType;
77
import com.semmle.js.parser.JSParser.Result;
8+
import com.semmle.ts.extractor.TypeScriptParser;
89
import com.semmle.js.parser.ParseError;
910

1011
public class TypeScriptExtractor implements IExtractor {

javascript/extractor/src/com/semmle/js/parser/TypeScriptASTConverter.java renamed to javascript/extractor/src/com/semmle/ts/extractor/TypeScriptASTConverter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.semmle.js.parser;
1+
package com.semmle.ts.extractor;
22

33
import java.util.ArrayList;
44
import java.util.Collections;
@@ -113,6 +113,7 @@
113113
import com.semmle.js.ast.jsx.JSXSpreadAttribute;
114114
import com.semmle.js.ast.jsx.JSXThisExpr;
115115
import com.semmle.js.parser.JSParser.Result;
116+
import com.semmle.js.parser.ParseError;
116117
import com.semmle.ts.ast.ArrayTypeExpr;
117118
import com.semmle.ts.ast.ConditionalTypeExpr;
118119
import com.semmle.ts.ast.DecoratorList;

javascript/extractor/src/com/semmle/js/parser/TypeScriptParser.java renamed to javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParser.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.semmle.js.parser;
1+
package com.semmle.ts.extractor;
22

33
import java.io.BufferedReader;
44
import java.io.BufferedWriter;
@@ -32,8 +32,9 @@
3232
import com.semmle.js.extractor.EnvironmentVariables;
3333
import com.semmle.js.extractor.ExtractionMetrics;
3434
import com.semmle.js.extractor.VirtualSourceRoot;
35+
import com.semmle.js.parser.JSParser;
36+
import com.semmle.js.parser.ParsedProject;
3537
import com.semmle.js.parser.JSParser.Result;
36-
import com.semmle.ts.extractor.TypeTable;
3738
import com.semmle.util.data.StringUtil;
3839
import com.semmle.util.data.UnitParser;
3940
import com.semmle.util.exception.CatastrophicError;

javascript/extractor/src/com/semmle/js/parser/TypeScriptParserMetadata.java renamed to javascript/extractor/src/com/semmle/ts/extractor/TypeScriptParserMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.semmle.js.parser;
1+
package com.semmle.ts.extractor;
22

33
import java.util.LinkedHashMap;
44
import java.util.Map;

0 commit comments

Comments
 (0)