change the order of the children from FunctionDef

This commit is contained in:
Erik Krogh Kristensen
2020-10-15 12:57:17 +02:00
parent 9604705f64
commit 9da8c23717

View File

@@ -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`.
*/