eric6.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax

Module implementing the syntax check for Python 2/3.

Global Attributes

None

Classes

None

Functions

__jsSyntaxCheck Function to check a Javascript source file for syntax errors.
initBatchService Initialize the batch service and return the entry point.
initService Initialize the service and return the entry point.
jsSyntaxBatchCheck Module function to check syntax for a batch of files.
jsSyntaxCheck Function to check a Javascript source file for syntax errors.
normalizeCode Function to normalize the given code.
worker Module function acting as the parallel worker for the style check.


__jsSyntaxCheck

__jsSyntaxCheck(file, codestring)

Function to check a Javascript source file for syntax errors.

file
source filename (string)
codestring
string containing the code to check (string)
Returns:
dictionary with the keys 'error' and 'warnings' which hold a list containing details about the error/ warnings (file name, line number, column, codestring (only at syntax errors), the message, a list with arguments for the message)
Up


initBatchService

initBatchService()

Initialize the batch service and return the entry point.

Returns:
the entry point for the background client (function)
Up


initService

initService()

Initialize the service and return the entry point.

Returns:
the entry point for the background client (function)
Up


jsSyntaxBatchCheck

jsSyntaxBatchCheck(argumentsList, send, fx, cancelled)

Module function to check syntax for a batch of files.

argumentsList
list of arguments tuples as given for syntaxAndPyflakesCheck
send
reference to send function (function)
fx
registered service name (string)
cancelled
reference to function checking for a cancellation (function)
Up


jsSyntaxCheck

jsSyntaxCheck(file, codestring)

Function to check a Javascript source file for syntax errors.

file
source filename (string)
codestring
string containing the code to check (string)
Returns:
dictionary with the keys 'error' and 'warnings' which hold a list containing details about the error/ warnings (file name, line number, column, codestring (only at syntax errors), the message, a list with arguments for the message)
Up


normalizeCode

normalizeCode(codestring)

Function to normalize the given code.

codestring
code to be normalized (string)
Returns:
normalized code (string)
Up


worker

worker(input, output)

Module function acting as the parallel worker for the style check.

input
input queue (multiprocessing.Queue)
output
output queue (multiprocessing.Queue)
Up