Class StringLiteral

Hierarchy

  • AST
    • StringLiteral

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(_text: string, _valueText: string): StringLiteral

Parameters

  • _text: string
  • _valueText: string

Returns

StringLiteral

Properties

public _end: number

public _start: number

private _text: any

public _trailingTriviaWidth: number

private _valueText: any

public parent: AST

Methods

public end(): number

Returns

number

public fileName(): string

Returns

string

public isExpression(): boolean

Returns

boolean

public kind(): SyntaxKind

Returns

SyntaxKind

public postComments(): Comment[]

Returns

Comment[]

public preComments(): Comment[]

Returns

Comment[]

public setPostComments(comments: Comment[])

Parameters

public setPreComments(comments: Comment[])

Parameters

public start(): number

Returns

number

public structuralEquals(ast: StringLiteral, includingPosition: boolean): boolean

Parameters

Returns

boolean

public syntaxID(): number

Returns

number

public text(): string

Returns

string

public trailingTriviaWidth(): number

Returns

number

public valueText(): string

Returns

string

public width(): number

Returns

number