mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
JavaScript: store YAML locations in yaml_locations table instead of hasLocation.
This commit is contained in:
@@ -37,7 +37,7 @@ public class Main {
|
||||
* A version identifier that should be updated every time the extractor changes in such a way that
|
||||
* it may produce different tuples for the same file under the same {@link ExtractorConfig}.
|
||||
*/
|
||||
public static final String EXTRACTOR_VERSION = "2019-07-24";
|
||||
public static final String EXTRACTOR_VERSION = "2019-07-25";
|
||||
|
||||
public static final Pattern NEWLINE = Pattern.compile("\n");
|
||||
|
||||
|
||||
@@ -99,6 +99,7 @@ public class YAMLExtractor implements IExtractor {
|
||||
trapWriter = textualExtractor.getTrapwriter();
|
||||
|
||||
Label fileLabel = locationManager.getFileLabel();
|
||||
locationManager.setHasLocationTable("yaml_locations");
|
||||
try {
|
||||
parser = new ParserImpl(new StreamReader(textualExtractor.getSource()));
|
||||
resolver = new Resolver();
|
||||
|
||||
Reference in New Issue
Block a user