lexemeOfNode method

String lexemeOfNode(
  1. AstNode node
)

Returns the lexeme that created an AST node (which should be a child of rootNode, e.g appear in this result).

Implementation

String lexemeOfNode(AstNode node) {
  return sql.substring(node.firstPosition, node.lastPosition);
}