Class PositionedNode

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(parent: PositionedElement, node: SyntaxNode, fullStart: number): PositionedNode

Parameters

Returns

PositionedNode

Methods

public childAt(index: number): PositionedElement

Parameters

  • index: number

Returns

PositionedElement

public childCount(): number

Returns

number

public childEnd(child: ISyntaxElement): number

Parameters

Returns

number

public childEndAt(index: number): number

Parameters

  • index: number

Returns

number

public childIndex(child: ISyntaxElement): number

Parameters

Returns

number

public childStart(child: ISyntaxElement): number

Parameters

Returns

number

public childStartAt(index: number): number

Parameters

  • index: number

Returns

number

public containingNode(): PositionedNode

Returns

PositionedNode

public element(): ISyntaxElement

Returns

ISyntaxElement

public end(): number

Returns

number

public fullEnd(): number

Returns

number

public fullStart(): number

Returns

number

public fullWidth(): number

Returns

number

public getPositionedChild(child: ISyntaxElement): PositionedElement

Parameters

Returns

PositionedElement

public kind(): SyntaxKind

Returns

SyntaxKind

public node(): SyntaxNode

Returns

SyntaxNode

public nodeOrToken(): ISyntaxNodeOrToken

Returns

ISyntaxNodeOrToken

public parent(): PositionedElement

Returns

PositionedElement

public parentElement(): ISyntaxElement

Returns

ISyntaxElement

public root(): PositionedNode

Returns

PositionedNode

public start(): number

Returns

number