Class: Rubycc::Preprocess::Preprocessor::Frame
- Inherits:
-
Struct
- Object
- Struct
- Rubycc::Preprocess::Preprocessor::Frame
- Defined in:
- lib/rubycc/preprocess/preprocessor.rb
Overview
One nesting level of a conditional. active is whether this frame's
current group is being emitted (its condition held and the frame itself
is reachable); taken records whether any group of this #if has been
selected yet, so a later #elif/#else knows to stay inert; seen_else
guards against an #elif/#else after the #else; parent_active is whether
the enclosing context was active when the #if opened, which freezes the
whole conditional off when it was not. token is the opening directive,
for an "unterminated conditional" diagnosed at end of file.
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#parent_active ⇒ Object
Returns the value of attribute parent_active.
-
#seen_else ⇒ Object
Returns the value of attribute seen_else.
-
#taken ⇒ Object
Returns the value of attribute taken.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active
219 220 221 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 219 def active @active end |
#parent_active ⇒ Object
Returns the value of attribute parent_active
219 220 221 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 219 def parent_active @parent_active end |
#seen_else ⇒ Object
Returns the value of attribute seen_else
219 220 221 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 219 def seen_else @seen_else end |
#taken ⇒ Object
Returns the value of attribute taken
219 220 221 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 219 def taken @taken end |
#token ⇒ Object
Returns the value of attribute token
219 220 221 |
# File 'lib/rubycc/preprocess/preprocessor.rb', line 219 def token @token end |