Module: lib/SyntaxAnalizer

lib/SyntaxAnalizer

A module representing a SyntaxAnalizer.
Source:

Methods

<inner> applySourceCodeSniffs()

Analyze the source code for the registered rules and available sniffs
Source:

<inner> applySyntaxTreeSniffs(syntaxTree)

Go through the syntax tree and apply registered sniffs to every node
Parameters:
Name Type Description
syntaxTree Object
Source:

<inner> applyTokenSniffs(tokens)

Go through the tokens list and apply registered sniffs to every token
Parameters:
Name Type Description
tokens Object[]
Source:

<inner> loadSniffs(sourceCode, mediator, tokenIterator)

Populate sniffs repository with instances
Parameters:
Name Type Description
sourceCode Object
mediator Object
tokenIterator module:lib/TokenIterator
Source:

<protected, inner> markNestings(syntaxTree)

Flag all the statements inside an outter call expression
Parameters:
Name Type Description
syntaxTree Object
Source:

<inner> traverseSyntaxTree(node, fn, parentNode)

Esprima syntax tree traverser Inspiread by https://github.com/mdevils/node-jscs
Parameters:
Name Type Description
node Object
fn sniffSyntaxTree
parentNode Object
Source:

<inner> validateStandard()

Validate assigned rules (of the given standard)
Source: