Skip to content
Merged
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
36 changes: 36 additions & 0 deletions python/ql/src/semmle/python/AstGenerated.qll
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* This library file is auto-generated by 'semmle/query_gen.py'.
* WARNING: Any modifications to this file will be lost.
* Relations can be changed by modifying master.py.
*/
import python

library class Add_ extends @py_Add, Operator {
Expand Down Expand Up @@ -1781,6 +1786,37 @@ library class Slice_ extends @py_Slice, Expr {

}

library class SpecialOperation_ extends @py_SpecialOperation, Expr {


/** Gets the name of this special operation. */
string getName() {
py_strs(result, this, 2)
}


/** Gets the arguments of this special operation. */
ExprList getArguments() {
py_expr_lists(result, this, 3)
}


/** Gets the nth argument of this special operation. */
Expr getArgument(int index) {
result = this.getArguments().getItem(index)
}

/** Gets an argument of this special operation. */
Expr getAnArgument() {
result = this.getArguments().getAnItem()
}

override string toString() {
result = "SpecialOperation"
}

}

library class Starred_ extends @py_Starred, Expr {


Expand Down