Class: Parser
Defined in: | src/parser.coffee |
Overview
CoffeeScript parser to convert the files into a
Instance Method Summary
- .constructor(options) Constructor Construct the parser
- .convertComments(content) Convert the comments to block comments, so they appear in the nodes.
- .getAllMethods() Get all parsed methods
- .getAllVariables() Get all parsed variables
- .linkAncestors(node) Attach each parent to its children, so we are able
- .parseContent(content, file = '') Parse the given CoffeeScript content
- .parseFile(file) Parse the given CoffeeScript file
- .showResult(generator) Show the parsing statistics
- .toJSON() Get a JSON representation of the object
Constructor Details
.constructor(options) Source
Construct the parser
Instance Method Details
.convertComments(content) Source
Convert the comments to block comments, so they appear in the nodes.
.getAllMethods() Source
Get all parsed methods
.getAllVariables() Source
Get all parsed variables
.linkAncestors(node) Source
Attach each parent to its children, so we are able
.parseContent(content, file = '') Source
Parse the given CoffeeScript content
.parseFile(file) Source
Parse the given CoffeeScript file
.showResult(generator) Source
Show the parsing statistics
.toJSON() Source
Get a JSON representation of the object