src/eric7/Documentation/Source/eric7.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax.html

branch
eric7
changeset 9955
aa02420279fe
parent 9954
7c5fa3eef082
child 9956
5b138f996a1e
equal deleted inserted replaced
9954:7c5fa3eef082 9955:aa02420279fe
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax</title>
4 <meta charset="UTF-8">
5 <link rel="stylesheet" href="styles.css">
6 </head>
7 <body>
8 <a NAME="top" ID="top"></a>
9 <h1>eric7.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax</h1>
10
11 <p>
12 Module implementing the syntax check for JavaScript.
13 </p>
14 <h3>Global Attributes</h3>
15
16 <table>
17 <tr><td>None</td></tr>
18 </table>
19 <h3>Classes</h3>
20
21 <table>
22 <tr><td>None</td></tr>
23 </table>
24 <h3>Functions</h3>
25
26 <table>
27
28 <tr>
29 <td><a href="#__jsSyntaxCheck">__jsSyntaxCheck</a></td>
30 <td>Function to check a Javascript source file for syntax errors.</td>
31 </tr>
32 <tr>
33 <td><a href="#initBatchService">initBatchService</a></td>
34 <td>Initialize the batch service and return the entry point.</td>
35 </tr>
36 <tr>
37 <td><a href="#initService">initService</a></td>
38 <td>Initialize the service and return the entry point.</td>
39 </tr>
40 <tr>
41 <td><a href="#jsSyntaxBatchCheck">jsSyntaxBatchCheck</a></td>
42 <td>Module function to check syntax for a batch of files.</td>
43 </tr>
44 <tr>
45 <td><a href="#jsSyntaxCheck">jsSyntaxCheck</a></td>
46 <td>Function to check a Javascript source file for syntax errors.</td>
47 </tr>
48 <tr>
49 <td><a href="#workerTask">workerTask</a></td>
50 <td>Module function acting as the parallel worker for the syntax check.</td>
51 </tr>
52 </table>
53 <hr />
54 <hr />
55 <a NAME="__jsSyntaxCheck" ID="__jsSyntaxCheck"></a>
56 <h2>__jsSyntaxCheck</h2>
57 <b>__jsSyntaxCheck</b>(<i>file, codestring</i>)
58
59 <p>
60 Function to check a Javascript source file for syntax errors.
61 </p>
62 <dl>
63
64 <dt><i>file</i></dt>
65 <dd>
66 source filename (string)
67 </dd>
68 <dt><i>codestring</i></dt>
69 <dd>
70 string containing the code to check (string)
71 </dd>
72 </dl>
73 <dl>
74 <dt>Return:</dt>
75 <dd>
76 dictionary with the keys 'error' and 'warnings' which
77 hold a list containing details about the error/ warnings
78 (file name, line number, column, codestring (only at syntax
79 errors), the message, a list with arguments for the message)
80 </dd>
81 </dl>
82 <div align="right"><a href="#top">Up</a></div>
83 <hr />
84 <hr />
85 <a NAME="initBatchService" ID="initBatchService"></a>
86 <h2>initBatchService</h2>
87 <b>initBatchService</b>(<i></i>)
88
89 <p>
90 Initialize the batch service and return the entry point.
91 </p>
92 <dl>
93 <dt>Return:</dt>
94 <dd>
95 the entry point for the background client (function)
96 </dd>
97 </dl>
98 <div align="right"><a href="#top">Up</a></div>
99 <hr />
100 <hr />
101 <a NAME="initService" ID="initService"></a>
102 <h2>initService</h2>
103 <b>initService</b>(<i></i>)
104
105 <p>
106 Initialize the service and return the entry point.
107 </p>
108 <dl>
109 <dt>Return:</dt>
110 <dd>
111 the entry point for the background client (function)
112 </dd>
113 </dl>
114 <div align="right"><a href="#top">Up</a></div>
115 <hr />
116 <hr />
117 <a NAME="jsSyntaxBatchCheck" ID="jsSyntaxBatchCheck"></a>
118 <h2>jsSyntaxBatchCheck</h2>
119 <b>jsSyntaxBatchCheck</b>(<i>argumentsList, send, fx, cancelled, maxProcesses=0</i>)
120
121 <p>
122 Module function to check syntax for a batch of files.
123 </p>
124 <dl>
125
126 <dt><i>argumentsList</i> (list)</dt>
127 <dd>
128 list of arguments tuples as given for jsSyntaxCheck
129 </dd>
130 <dt><i>send</i> (func)</dt>
131 <dd>
132 reference to send function
133 </dd>
134 <dt><i>fx</i> (str)</dt>
135 <dd>
136 registered service name
137 </dd>
138 <dt><i>cancelled</i> (func)</dt>
139 <dd>
140 reference to function checking for a cancellation
141 </dd>
142 <dt><i>maxProcesses</i> (int)</dt>
143 <dd>
144 number of processes to be used
145 </dd>
146 </dl>
147 <div align="right"><a href="#top">Up</a></div>
148 <hr />
149 <hr />
150 <a NAME="jsSyntaxCheck" ID="jsSyntaxCheck"></a>
151 <h2>jsSyntaxCheck</h2>
152 <b>jsSyntaxCheck</b>(<i>file, codestring</i>)
153
154 <p>
155 Function to check a Javascript source file for syntax errors.
156 </p>
157 <dl>
158
159 <dt><i>file</i></dt>
160 <dd>
161 source filename (string)
162 </dd>
163 <dt><i>codestring</i></dt>
164 <dd>
165 string containing the code to check (string)
166 </dd>
167 </dl>
168 <dl>
169 <dt>Return:</dt>
170 <dd>
171 dictionary with the keys 'error' and 'warnings' which
172 hold a list containing details about the error/ warnings
173 (file name, line number, column, codestring (only at syntax
174 errors), the message, a list with arguments for the message)
175 </dd>
176 </dl>
177 <div align="right"><a href="#top">Up</a></div>
178 <hr />
179 <hr />
180 <a NAME="workerTask" ID="workerTask"></a>
181 <h2>workerTask</h2>
182 <b>workerTask</b>(<i>inputQueue, outputQueue</i>)
183
184 <p>
185 Module function acting as the parallel worker for the syntax check.
186 </p>
187 <dl>
188
189 <dt><i>inputQueue</i></dt>
190 <dd>
191 input queue (multiprocessing.Queue)
192 </dd>
193 <dt><i>outputQueue</i></dt>
194 <dd>
195 output queue (multiprocessing.Queue)
196 </dd>
197 </dl>
198 <div align="right"><a href="#top">Up</a></div>
199 <hr />
200 </body></html>

eric ide

mercurial