Class: Node

Defined in: src/nodes/node.coffee

Overview

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:

  • typethe class name (a [String])
  • nodethe CoffeeScript node (a [Base])