This commit is contained in:
parent
42fa039daf
commit
8d12c0bdf8
4 changed files with 17 additions and 3 deletions
|
|
@ -96,6 +96,10 @@ func (n NodeType) String() string {
|
|||
return "Index"
|
||||
case RecordNodeType:
|
||||
return "Record"
|
||||
case ForNodeType:
|
||||
return "For"
|
||||
case IncludeNodeType:
|
||||
return "Include"
|
||||
}
|
||||
return "Invalid Node Type"
|
||||
}
|
||||
|
|
@ -534,7 +538,7 @@ func (n ConditionalNode) String() string {
|
|||
return fmt.Sprintf("if %s then %s", n.condition.String(), n.do.String())
|
||||
}
|
||||
|
||||
return fmt.Sprintf("if %s then %s otheriwise %s", n.condition.String(), n.do.String(), n.otherwise.String())
|
||||
return fmt.Sprintf("if %s then %s otherwise %s", n.condition.String(), n.do.String(), n.otherwise.String())
|
||||
}
|
||||
|
||||
func (n ConditionalNode) Bounds() (Pos, Pos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue