Module: lib/Sniff/SyntaxTree/ChainedMethodCallsSpacing

lib/Sniff/SyntaxTree/ChainedMethodCallsSpacing

new require("lib/Sniff/SyntaxTree/ChainedMethodCallsSpacing")(sourceCode, mediator, tokenIterator)

Parameters:
Name Type Description
sourceCode module:lib/SourceCode
mediator module:lib/Mediator
tokenIterator module:lib/TokenIterator
Source:
A module representing a sniffer.
Source:

Methods

<inner> run(rule, node)

Run the sniffer according a given rule if a given node type matches the case
Parameters:
Name Type Description
rule Object
node Object
Source:

<protected, inner> sniff(node, lPos, rPos, expected, errorCode)

Report to the mediator if the fragment between lPos and rPos doesn't match expected if it's not multiline
Parameters:
Name Type Description
node Object
lPos number
rPos number
expected number
errorCode string
Source:

<inner> validateRule(rule)

Check the contract
Parameters:
Name Type Description
rule Object
Source: