Class Node_2
Constructors
(constructor)(kind)
Constructs a new instance of the Node
class
Declaration
constructor(kind: TKind);
Parameters
Type |
Name |
Description |
TKind |
kind |
|
Properties
end
Declaration
Property Value
firstChild
Declaration
get firstChild(): Node | undefined;
Property Value
Type |
Description |
Node | undefined |
|
kind
Declaration
Property Value
lastChild
Declaration
get lastChild(): Node | undefined;
Property Value
Type |
Description |
Node | undefined |
|
leadingHtmlTrivia
Declaration
leadingHtmlTrivia: HtmlTrivia[] | undefined;
Property Value
pos
Declaration
Property Value
trailingHtmlTrivia
Declaration
trailingHtmlTrivia: HtmlTrivia[] | undefined;
Property Value
Methods
children()
Declaration
children(): IterableIterator<Node>;
Returns
Type |
Description |
IterableIterator<Node> |
|
forEachChild(_cbNode)
Declaration
forEachChild<T>(_cbNode: (node: Node) => T | undefined): T | undefined;
Parameters
Type |
Name |
Description |
(node: Node) => T | undefined |
_cbNode |
|
Returns
Type |
Description |
T | undefined |
|
Type Parameters
getEnd()
Declaration
Returns
getFullStart()
Declaration
Returns
getFullText(sourceFile)
Declaration
getFullText(sourceFile: SourceFile): string;
Parameters
Returns
getFullWidth()
Declaration
Returns
getStart(sourceFile)
Declaration
getStart(sourceFile?: SourceFile): number;
Parameters
Returns
getText(sourceFile)
Declaration
getText(sourceFile: SourceFile): string;
Parameters
Returns
getWidth(sourceFile)
Declaration
getWidth(sourceFile?: SourceFile): number;
Parameters
Returns