Rename serialized name from "alternative" to "alternate"
This commit is contained in:
parent
af45bfd53f
commit
79569b9044
1 changed files with 3 additions and 3 deletions
|
@ -87,9 +87,9 @@ const ContinueStatementKind NodeKind = "ContinueStatement"
|
|||
// IfStatement is the usual C-style `if`.
|
||||
type IfStatement struct {
|
||||
StatementNode
|
||||
Condition Expression `json:"condition"` // a `bool` conditional expression.
|
||||
Consequent Statement `json:"consequent"` // the statement to execute if `true`.
|
||||
Alternate *Statement `json:"alternative,omitempty"` // the optional statement to execute if `false`.
|
||||
Condition Expression `json:"condition"` // a `bool` conditional expression.
|
||||
Consequent Statement `json:"consequent"` // the statement to execute if `true`.
|
||||
Alternate *Statement `json:"alternate,omitempty"` // the optional statement to execute if `false`.
|
||||
}
|
||||
|
||||
var _ Node = (*IfStatement)(nil)
|
||||
|
|
Loading…
Reference in a new issue