Class: Node

Defined in: src/nodes/node.coffee

Overview

The base class for all nodes.

Direct Known Subclasses

Class, Doc, Method, Mixin, Parameter, Property, Variable, VirtualMethod

Instance Method Summary

Instance Method Details

::findAncestor(type, node = @node) Source

Find an ancestor node by type.

Parameters:

  • (String) typeThe type name (a String)
  • (Base) nodeThe CoffeeScript node to search on (a Base)