Class Node

Defined in: src/nodes/node.coffee

Overview

Public: The base class for all nodes.

Subclasses

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

Instance Method Summary

Instance Method Details

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

Public: Find an ancestor node by type. type - The type name (a String) node - The CoffeeScript node to search on (a Base)

Parameters:

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