Class: Parameter

Defined in: src/nodes/parameter.coffee
Inherits: Node

Overview

A CoffeeScript method parameter

Instance Method Summary

Inherited Method Summary

Methods inherited from Node

.findAncestor

Constructor Details

.constructor(node, options, optionized) Source

Construct a parameter

Parameters:

  • nodethe node (a [Object])
  • optionsthe parser options (a [Object])

Instance Method Details

.getDefault(i = -1) Source

Get the parameter default value

Returns:

  • Returns the default (a [String])

.getName(i = -1) Source

Get the parameter name

Returns:

  • Returns the name (a [String])

.getOptionizedDefaults() Source

.getSignature() Source

Get the full parameter signature.

Returns:

  • Returns the signature (a [String])

.isSplat() Source

Tests if the parameters is a splat

Returns:

  • Returns true if a splat (a [Boolean])

.toJSON(i = -1) Source

Get a JSON representation of the object

Returns:

  • Returns the JSON object (a [Object])