Class: Parser
Defined in: | src/parser.coffee |
Overview
This parser is responsible for converting each file into the intermediate /
Instance Method Summary
- .constructor(options) Constructor Construct the parser
- .convertComments(content) Converts the comments to block comments, so they appear in the node structure.
- .fileContents(file)
- Array .getAllMethods() Get all the parsed methods.
- Array .getAllVariables() Get all parsed variables.
- .linkAncestors(node) Attach each parent to its children, so we are able
- .parseContent(file = '', content) Parse the given CoffeeScript content.
- .parseFile(file, contents) Parse the given CoffeeScript file.
- .showResult(generator) Show the final parsing statistics.
- Object .toJSON() Get a JSON representation of the object.
Constructor Details
.constructor(options)
Construct the parser
Instance Method Details
.convertComments(content)
Converts the comments to block comments, so they appear in the node structure.
.fileContents(file)
Array .getAllMethods()
Get all the parsed methods.
Array .getAllVariables()
Get all parsed variables.
.linkAncestors(node)
Attach each parent to its children, so we are able
.parseContent(file = '', content)
Parse the given CoffeeScript content.
.parseFile(file, contents)
Parse the given CoffeeScript file.
.showResult(generator)
Show the final parsing statistics.
Object .toJSON()
Get a JSON representation of the object.