Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ObjectLiteralExpressionBase<T>

This interface is a base interface for ObjectLiteralExpression and JSXAttributes to extend from. JSXAttributes is similar to ObjectLiteralExpression in that it contains array of properties; however, JSXAttributes' properties can only be JSXAttribute or JSXSpreadAttribute. ObjectLiteralExpression, on the other hand, can only have properties of type ObjectLiteralElement (e.g. PropertyAssignment, ShorthandPropertyAssignment etc.)

Type parameters

Hierarchy

Index

Properties

_declarationBrand

_declarationBrand: any

_expressionBrand

_expressionBrand: any

_leftHandSideExpressionBrand

_leftHandSideExpressionBrand: any

_memberExpressionBrand

_memberExpressionBrand: any

_primaryExpressionBrand

_primaryExpressionBrand: any

_unaryExpressionBrand

_unaryExpressionBrand: any

_updateExpressionBrand

_updateExpressionBrand: any

Optional Readonly decorators

decorators: NodeArray<Decorator>

Readonly end

end: number

Readonly flags

flags: NodeFlags

Readonly kind

Optional Readonly modifiers

modifiers: ModifiersArray

Readonly parent

parent: Node

Readonly pos

pos: number

Readonly properties

properties: NodeArray<T>

Methods

forEachChild

  • forEachChild<T>(cbNode: (node: Node) => T, cbNodeArray?: (nodes: NodeArray<Node>) => T): T

getChildAt

getChildCount

getChildren

getEnd

  • getEnd(): number
  • Returns number

getFirstToken

getFullStart

  • getFullStart(): number
  • Returns number

getFullText

getFullWidth

  • getFullWidth(): number
  • Returns number

getLastToken

getLeadingTriviaWidth

  • getLeadingTriviaWidth(sourceFile?: SourceFile): number

getSourceFile

getStart

  • getStart(sourceFile?: SourceFile, includeJsDocComment?: boolean): number
  • Parameters

    • Optional sourceFile: SourceFile
    • Optional includeJsDocComment: boolean

    Returns number

getText

  • Parameters

    Returns string

getWidth

Generated using TypeDoc