Class PositionedElement

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(parent: PositionedElement, element: ISyntaxElement, fullStart: number): PositionedElement

Parameters

Returns

PositionedElement

Properties

private _element: any

private _fullStart: any

private _parent: any

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 static create(parent: PositionedElement, element: ISyntaxElement, fullStart: number): PositionedElement

Parameters

Returns

PositionedElement

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 parent(): PositionedElement

Returns

PositionedElement

public parentElement(): ISyntaxElement

Returns

ISyntaxElement

public root(): PositionedNode

Returns

PositionedNode

public start(): number

Returns

number