Visualize, refactor, format and generate c and c++ code through simple plugins
Describes a parsed token in a file. Each ASTNode contains a set of associated tokens. For example, the following c++ class, will have tokens ['class', 'Date', '{', '}']
associated with it.
class Date{
};
The token list can be retrieved by the following method:
var firstClassNode = codeBase.find('Date', 'class')[0];
var associatedTokens = firstClassNode.associatedTokens();
Describes the kind of token.
Returns the tokens associated node.
ASTNode
Returns the token name.
String
Returns the token kind.
Token.TokenKind
Inserts value before this token.
String
Value to be inserted.Inserts value after this token.
String
Value to be inserted.Inserts value on the next line following this token. If the next line does not exist, the value is inserted after this token.
String
Value to be inserted.