Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions javascript/ql/src/javascript.qll
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
37 changes: 37 additions & 0 deletions javascript/ql/src/semmle/javascript/Aliases.qll
Original file line number Diff line number Diff line change
@@ -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;