mirror of
https://github.com/github/codeql.git
synced 2026-05-04 21:25:44 +02:00
JS: add QL classes for the extraction metrics
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
| tst2.js:0:0:0:0 | tst2.js |
|
||||
| tst.html:0:0:0:0 | tst.html |
|
||||
| tst.js:0:0:0:0 | tst.js |
|
||||
| tst.ts:0:0:0:0 | tst.ts |
|
||||
@@ -0,0 +1,4 @@
|
||||
import semmle.javascript.meta.ExtractionMetrics::ExtractionMetrics
|
||||
|
||||
from FileWithExtractionMetrics f
|
||||
select f
|
||||
@@ -0,0 +1,4 @@
|
||||
| tst2.js:0:0:0:0 | tst2.js | 26 |
|
||||
| tst.html:0:0:0:0 | tst.html | 127 |
|
||||
| tst.js:0:0:0:0 | tst.js | 26 |
|
||||
| tst.ts:0:0:0:0 | tst.ts | 31 |
|
||||
@@ -0,0 +1,4 @@
|
||||
import semmle.javascript.meta.ExtractionMetrics::ExtractionMetrics
|
||||
|
||||
from FileWithExtractionMetrics f
|
||||
select f, f.getLength()
|
||||
@@ -0,0 +1,36 @@
|
||||
| tst2.js:0:0:0:0 | tst2.js | ASTExtractor_extract |
|
||||
| tst2.js:0:0:0:0 | tst2.js | CFGExtractor_extract |
|
||||
| tst2.js:0:0:0:0 | tst2.js | FileExtractor_extractContents |
|
||||
| tst2.js:0:0:0:0 | tst2.js | JSExtractor_extract |
|
||||
| tst2.js:0:0:0:0 | tst2.js | JSParser_parse |
|
||||
| tst2.js:0:0:0:0 | tst2.js | LexicalExtractor_extractLines |
|
||||
| tst2.js:0:0:0:0 | tst2.js | LexicalExtractor_extractTokens |
|
||||
| tst2.js:0:0:0:0 | tst2.js | TypeScriptASTConverter_convertAST |
|
||||
| tst2.js:0:0:0:0 | tst2.js | TypeScriptParser_talkToParserWrapper |
|
||||
| tst.html:0:0:0:0 | tst.html | ASTExtractor_extract |
|
||||
| tst.html:0:0:0:0 | tst.html | CFGExtractor_extract |
|
||||
| tst.html:0:0:0:0 | tst.html | FileExtractor_extractContents |
|
||||
| tst.html:0:0:0:0 | tst.html | JSExtractor_extract |
|
||||
| tst.html:0:0:0:0 | tst.html | JSParser_parse |
|
||||
| tst.html:0:0:0:0 | tst.html | LexicalExtractor_extractLines |
|
||||
| tst.html:0:0:0:0 | tst.html | LexicalExtractor_extractTokens |
|
||||
| tst.html:0:0:0:0 | tst.html | TypeScriptASTConverter_convertAST |
|
||||
| tst.html:0:0:0:0 | tst.html | TypeScriptParser_talkToParserWrapper |
|
||||
| tst.js:0:0:0:0 | tst.js | ASTExtractor_extract |
|
||||
| tst.js:0:0:0:0 | tst.js | CFGExtractor_extract |
|
||||
| tst.js:0:0:0:0 | tst.js | FileExtractor_extractContents |
|
||||
| tst.js:0:0:0:0 | tst.js | JSExtractor_extract |
|
||||
| tst.js:0:0:0:0 | tst.js | JSParser_parse |
|
||||
| tst.js:0:0:0:0 | tst.js | LexicalExtractor_extractLines |
|
||||
| tst.js:0:0:0:0 | tst.js | LexicalExtractor_extractTokens |
|
||||
| tst.js:0:0:0:0 | tst.js | TypeScriptASTConverter_convertAST |
|
||||
| tst.js:0:0:0:0 | tst.js | TypeScriptParser_talkToParserWrapper |
|
||||
| tst.ts:0:0:0:0 | tst.ts | ASTExtractor_extract |
|
||||
| tst.ts:0:0:0:0 | tst.ts | CFGExtractor_extract |
|
||||
| tst.ts:0:0:0:0 | tst.ts | FileExtractor_extractContents |
|
||||
| tst.ts:0:0:0:0 | tst.ts | JSExtractor_extract |
|
||||
| tst.ts:0:0:0:0 | tst.ts | JSParser_parse |
|
||||
| tst.ts:0:0:0:0 | tst.ts | LexicalExtractor_extractLines |
|
||||
| tst.ts:0:0:0:0 | tst.ts | LexicalExtractor_extractTokens |
|
||||
| tst.ts:0:0:0:0 | tst.ts | TypeScriptASTConverter_convertAST |
|
||||
| tst.ts:0:0:0:0 | tst.ts | TypeScriptParser_talkToParserWrapper |
|
||||
@@ -0,0 +1,7 @@
|
||||
import semmle.javascript.meta.ExtractionMetrics::ExtractionMetrics
|
||||
|
||||
from FileWithExtractionMetrics f, PhaseName phase
|
||||
where
|
||||
exists(f.getCpuTime(phase)) and
|
||||
exists(f.getWallclockTime(phase))
|
||||
select f, phase
|
||||
@@ -0,0 +1,7 @@
|
||||
<script>
|
||||
console.log("extract me")
|
||||
</script>
|
||||
<script>
|
||||
console.log("extract me")
|
||||
</script>
|
||||
<script src="./tst.js"></script>
|
||||
1
javascript/ql/test/library-tests/meta/Extraction/tst.js
Normal file
1
javascript/ql/test/library-tests/meta/Extraction/tst.js
Normal file
@@ -0,0 +1 @@
|
||||
console.log("extract me")
|
||||
1
javascript/ql/test/library-tests/meta/Extraction/tst.ts
Normal file
1
javascript/ql/test/library-tests/meta/Extraction/tst.ts
Normal file
@@ -0,0 +1 @@
|
||||
console.log("extract me too");
|
||||
1
javascript/ql/test/library-tests/meta/Extraction/tst2.js
Normal file
1
javascript/ql/test/library-tests/meta/Extraction/tst2.js
Normal file
@@ -0,0 +1 @@
|
||||
console.log("extract me")
|
||||
Reference in New Issue
Block a user