Method: Glyph::SyntaxNode#parent_macro

Defined in:
lib/glyph/syntax_node.rb

#parent_macroGlyph::MacroNode

Returns the first Glyph::MacroNode ancestor.

Returns:

Since:

  • 0.3.0


36
37
38
# File 'lib/glyph/syntax_node.rb', line 36

def parent_macro
	find_parent{|n| n.is_a?(MacroNode)}
end