C++: Add charpred to ParameterNode

This commit is contained in:
Mathias Vorreiter Pedersen
2020-04-13 14:18:57 +02:00
parent 7f5330dd0a
commit 945ecffd05

View File

@@ -162,6 +162,12 @@ class ExprNode extends InstructionNode {
* as `x` in `f(x)` and implicit parameters such as `this` in `x.f()`
*/
class ParameterNode extends InstructionNode {
ParameterNode() {
instr instanceof InitializeParameterInstruction
or
instr instanceof InitializeThisInstruction
}
/**
* Holds if this node is the parameter of `c` at the specified (zero-based)
* position. The implicit `this` parameter is considered to have index `-1`.