mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
change the order of the children from FunctionDef
This commit is contained in:
@@ -330,6 +330,19 @@ class FunctionNode extends AstElementNode {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A print node for a `FunctionDef`.
|
||||
*/
|
||||
class FunctionDefNode extends AstElementNode {
|
||||
override FunctionDef element;
|
||||
|
||||
override AstNode getChildNode(int childIndex) {
|
||||
childIndex = 0 and result = element.getTarget(0)
|
||||
or
|
||||
childIndex = 1 and result = element.getValue()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A print node for the parameters in `func`.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user