Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

constructor

  • new AbstractFunctionNode(args: Array<[string, string, string, Expression<any>, string]>, preWS?: string, postWS?: string, emptyArgWS?: string): AbstractFunctionNode
  • Constructor for an abstract function

    Parameters

    • args: Array<[string, string, string, Expression<any>, string]>

      array of arguments

    • Default value preWS: string = ""

      Whitespace preceding the function name

    • Default value postWS: string = ""

      Whitespace between the function and the parentheses

    • Default value emptyArgWS: string = ""

      Whitespace when there's no argument in the parantheses

    Returns AbstractFunctionNode

Properties

Protected _commentOut

_commentOut: boolean = false

Protected argMap

argMap: Map<string, Argument<any>>

Argument map for functions. Begins with positional args first, then follows with optional named args. Positionals don't have default value and must be supplied, while optional named args MUST have default values. Note: Map traversal is in order of insertion.

Private args

args: Array<[string, string, string, Expression<any>, string]>

array of arguments

Private emptyArgWS

emptyArgWS: string

Whitespace when there's no argument in the parantheses

Protected Abstract name

name: string

Private postWS

postWS: string

Whitespace between the function and the parentheses

Accessors

ws

  • get ws(): string
  • set ws(ws: string): void

Methods

commentOut

  • commentOut(): void

equals

Abstract eval

  • eval(context: Scope): T

Protected initArg

  • initArg(posArgMap: Map<string, Argument<any>>, optArgMap: Map<string, Argument<any>>): void

toString

  • toString(): string

Generated using TypeDoc