mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Merge pull request #445 from xiemaisi/js/aliases
Approved by esben-semmle
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.
|
||||
*/
|
||||
|
||||
import semmle.javascript.Aliases
|
||||
import semmle.javascript.AMD
|
||||
import semmle.javascript.AST
|
||||
import semmle.javascript.BasicBlocks
|
||||
|
||||
37
javascript/ql/src/semmle/javascript/Aliases.qll
Normal file
37
javascript/ql/src/semmle/javascript/Aliases.qll
Normal file
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* Provides aliases for commonly used classes that have different names
|
||||
* in the QL libraries for other languages.
|
||||
*/
|
||||
|
||||
import javascript
|
||||
|
||||
class AndBitwiseExpr = BitAndExpr;
|
||||
class AndLogicalExpr = LogAndExpr;
|
||||
class ArrayAccess = IndexExpr;
|
||||
class AssignOp = CompoundAssignExpr;
|
||||
class Block = BlockStmt;
|
||||
class BoolLiteral = BooleanLiteral;
|
||||
class CaseStmt = Case;
|
||||
class ComparisonOperation = Comparison;
|
||||
class DoStmt = DoWhileStmt;
|
||||
class EqualityOperation = EqualityTest;
|
||||
class FieldAccess = DotExpr;
|
||||
class InstanceOfExpr = InstanceofExpr;
|
||||
class LabelStmt = LabeledStmt;
|
||||
class LogicalAndExpr = LogAndExpr;
|
||||
class LogicalNotExpr = LogNotExpr;
|
||||
class LogicalOrExpr = LogOrExpr;
|
||||
class Loop = LoopStmt;
|
||||
class MultilineComment = BlockComment;
|
||||
class OrBitwiseExpr = BitOrExpr;
|
||||
class OrLogicalExpr = LogOrExpr;
|
||||
class ParenthesisExpr = ParExpr;
|
||||
class ParenthesizedExpr = ParExpr;
|
||||
class RelationalOperation = RelationalComparison;
|
||||
class RemExpr = ModExpr;
|
||||
class SingleLineComment = LineComment;
|
||||
class SuperAccess = SuperExpr;
|
||||
class SwitchCase = Case;
|
||||
class ThisAccess = ThisExpr;
|
||||
class VariableAccess = VarAccess;
|
||||
class XorBitwiseExpr = XOrExpr;
|
||||
Reference in New Issue
Block a user