Initialize class/struct variables with default values in modules/
This commit is contained in:
parent
57e2822a05
commit
f7209b459b
100 changed files with 533 additions and 772 deletions
|
|
@ -351,7 +351,7 @@ public:
|
|||
OP_COMP_GREATER_EQUAL,
|
||||
};
|
||||
|
||||
OpType operation;
|
||||
OpType operation = OpType::OP_ADDITION;
|
||||
Variant::Operator variant_op = Variant::OP_MAX;
|
||||
ExpressionNode *left_operand = nullptr;
|
||||
ExpressionNode *right_operand = nullptr;
|
||||
|
|
@ -753,7 +753,7 @@ public:
|
|||
|
||||
struct MatchBranchNode : public Node {
|
||||
Vector<PatternNode *> patterns;
|
||||
SuiteNode *block;
|
||||
SuiteNode *block = nullptr;
|
||||
bool has_wildcard = false;
|
||||
|
||||
MatchBranchNode() {
|
||||
|
|
@ -1001,7 +1001,7 @@ public:
|
|||
OP_LOGIC_NOT,
|
||||
};
|
||||
|
||||
OpType operation;
|
||||
OpType operation = OP_POSITIVE;
|
||||
Variant::Operator variant_op = Variant::OP_MAX;
|
||||
ExpressionNode *operand = nullptr;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue