Class: Piggly::Parser::Nodes::Branch

Inherits:
Statement show all
Defined in:
lib/piggly/parser/nodes.rb

Overview

Branches with child ‘cond’ (Expression) will get a ConditionalBranchTag

Direct Known Subclasses

CaseWhen, Catch, CondWhen, ContinueWhen, ExitWhen, If

Instance Attribute Summary

Attributes inherited from NodeClass

#source_text

Instance Method Summary collapse

Methods inherited from Statement

#statement?, #terminal?

Methods inherited from NodeClass

#assignment?, #block?, #comment?, #datatype?, #else?, #expression?, #for?, #identifier?, #if?, #indent, #keyword?, #label?, #loop?, #named?, #sql?, #statement?, #string?, #stub?, #style, #tag, #tag_id, #tagged?, #token?, #while?, #whitespace?

Methods included from Traversal

#count, #find, #flatten, #inject, #select

Instance Method Details

#branch?Boolean

Returns:

  • (Boolean)


134
135
136
# File 'lib/piggly/parser/nodes.rb', line 134

def branch?
  true
end