C++: Add comment to FunctionNode.

This commit is contained in:
Cornelius Riemenschneider
2020-10-28 14:48:33 +01:00
parent 668764ce40
commit 7e667b9bec

View File

@@ -546,6 +546,8 @@ class FunctionNode extends ASTNode {
}
override string getChildAccessorPredicate(int childIndex) {
// all other children of this node are not reachable via the AST `getChild` relation
// or other getters. Thus, this predicate does not hold for them.
childIndex = 2 and
result = "getEntryPoint()"
}