Documentation/Source/eric5.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax.html

branch
Py2 comp.
changeset 3525
66f4b8646622
equal deleted inserted replaced
3524:c6141071339a 3525:66f4b8646622
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric5.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric5.Plugins.CheckerPlugins.SyntaxChecker.jsCheckSyntax</h1>
23 <p>
24 Module implementing the syntax check for Python 2/3.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr><td>None</td></tr>
33 </table>
34 <h3>Functions</h3>
35 <table>
36 <tr>
37 <td><a href="#initService">initService</a></td>
38 <td>Initialize the service and return the entry point.</td>
39 </tr><tr>
40 <td><a href="#jsCheckSyntax">jsCheckSyntax</a></td>
41 <td>Function to check a Javascript source file for syntax errors.</td>
42 </tr><tr>
43 <td><a href="#normalizeCode">normalizeCode</a></td>
44 <td>Function to normalize the given code.</td>
45 </tr>
46 </table>
47 <hr /><hr />
48 <a NAME="initService" ID="initService"></a>
49 <h2>initService</h2>
50 <b>initService</b>(<i></i>)
51 <p>
52 Initialize the service and return the entry point.
53 </p><dl>
54 <dt>Returns:</dt>
55 <dd>
56 the entry point for the background client (function)
57 </dd>
58 </dl>
59 <div align="right"><a href="#top">Up</a></div>
60 <hr /><hr />
61 <a NAME="jsCheckSyntax" ID="jsCheckSyntax"></a>
62 <h2>jsCheckSyntax</h2>
63 <b>jsCheckSyntax</b>(<i>file, codestring</i>)
64 <p>
65 Function to check a Javascript source file for syntax errors.
66 </p><dl>
67 <dt><i>file</i></dt>
68 <dd>
69 source filename (string)
70 </dd><dt><i>codestring</i></dt>
71 <dd>
72 string containing the code to check (string)
73 </dd>
74 </dl><dl>
75 <dt>Returns:</dt>
76 <dd>
77 dictionary with the keys 'error' and 'warnings' which
78 hold a list containing details about the error/ warnings
79 (file name, line number, column, codestring (only at syntax
80 errors), the message, a list with arguments for the message)
81 </dd>
82 </dl>
83 <div align="right"><a href="#top">Up</a></div>
84 <hr /><hr />
85 <a NAME="normalizeCode" ID="normalizeCode"></a>
86 <h2>normalizeCode</h2>
87 <b>normalizeCode</b>(<i>codestring</i>)
88 <p>
89 Function to normalize the given code.
90 </p><dl>
91 <dt><i>codestring</i></dt>
92 <dd>
93 code to be normalized (string)
94 </dd>
95 </dl><dl>
96 <dt>Returns:</dt>
97 <dd>
98 normalized code (string)
99 </dd>
100 </dl>
101 <div align="right"><a href="#top">Up</a></div>
102 <hr />
103 </body></html>

eric ide

mercurial