Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new PrintNode(args: Array<[string, string, string, Expression<any>, string]>, preWS?: string, postWS?: string, emptyArgWS?: string): PrintNode

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.

Protected name

name: string = "print"

Accessors

ws

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

Methods

commentOut

  • commentOut(): void

equals

eval

  • eval(context: Scope): any

getArg

getColor

  • getColor(context: Scope): string

getFontSize

  • getFontSize(context: Scope): number

getOptionalArgMap

getPositionalArgMap

getX

  • getX(context: Scope): number

getY

  • getY(context: Scope): number

Protected initArg

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

setArg

  • setArg(argName: string, value: Expression<any>): void

setColor

  • setColor(context: Scope, val: string): void

setFontSize

  • setFontSize(context: Scope, val: number): void

setX

  • setX(context: Scope, val: number): void

setY

  • setY(context: Scope, val: number): void

toString

  • toString(): string

updateArgValue

  • updateArgValue(argName: string, scope: Scope, value: any): void

Generated using TypeDoc