NStringPart
Represents a string part that can appear in string literals.
Instance Members
The type of string part
type(): String| Returns |
|---|
| String |
each(handleNode: Function): Void| Name | Type |
|---|---|
handleNode |
Function |
toJson(): DynamicConverts the string part to a JSON representation.
| Returns | Description |
|---|---|
| Dynamic | Dynamic object containing string part data |
new(id: NodeId, pos: Position, partType: Anonymous, ?leadingComments: Array<Comment>, ?trailingComments: Array<Comment>): VoidCreates a new string part node.
| Name | Type | Default | Description |
|---|---|---|---|
id |
NodeId | ||
pos |
Position | Position in source where this string part appears | |
partType |
Anonymous | ||
leadingComments |
Array<Comment> | (optional) | Optional comments before the string |
trailingComments |
Array<Comment> | (optional) | Optional comments after the string |