CheckScriptSyntaxAsync Method
Overloads
CheckScriptSyntaxAsync() |
Checks the syntax of a script. Example"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] } The list of syntax errors in the script. If there are no errors, the engine returns: If there are errors, the engine returns the following properties in the response: Please refer to Engine API reference for table definition. |
|
CheckScriptSyntaxAsync(AsyncHandle) |
Checks the syntax of a script. Example"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] } The list of syntax errors in the script. If there are no errors, the engine returns: If there are errors, the engine returns the following properties in the response: Please refer to Engine API reference for table definition. |
|
CheckScriptSyntaxAsync<T>(AsyncHandle, Func<Response, T>) |
Checks the syntax of a script. Example"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] } The list of syntax errors in the script. If there are no errors, the engine returns: If there are errors, the engine returns the following properties in the response: Please refer to Engine API reference for table definition. |
CheckScriptSyntaxAsync()
Checks the syntax of a script.
Example
"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] }
The list of syntax errors in the script.
If there are no errors, the engine returns:
If there are errors, the engine returns the following properties in the response:
Please refer to Engine API reference for table definition.
Declaration
Task<IEnumerable<ScriptSyntaxError>> CheckScriptSyntaxAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ScriptSyntaxError>> |
Remarks
The first area is the primary error area, the second area is the secondary error area. The second area is optional and is shown only if qSecondaryFailure is set to true. The second area ends when the next statement in the script begins.
CheckScriptSyntaxAsync(AsyncHandle)
Checks the syntax of a script.
Example
"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] }
The list of syntax errors in the script.
If there are no errors, the engine returns:
If there are errors, the engine returns the following properties in the response:
Please refer to Engine API reference for table definition.
Declaration
Task<IEnumerable<ScriptSyntaxError>> CheckScriptSyntaxAsync(AsyncHandle asyncHandle)
Parameters
Type | Name | Description |
---|---|---|
AsyncHandle | asyncHandle |
Handle to asynchronous method request |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<ScriptSyntaxError>> |
Remarks
The first area is the primary error area, the second area is the secondary error area. The second area is optional and is shown only if qSecondaryFailure is set to true. The second area ends when the next statement in the script begins.
CheckScriptSyntaxAsync<T>(AsyncHandle, Func<Response, T>)
Checks the syntax of a script.
Example
"result": { "qErrors": [ { "qErrLen": 3, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 0, "qTextPos": 0 }, { "qErrLen": 5, "qTabIx": 0, "qLineInTab": 0, "qColInLine": 1, "qTextPos": 4, "qSecondaryFailure": true } ] }
The list of syntax errors in the script.
If there are no errors, the engine returns:
If there are errors, the engine returns the following properties in the response:
Please refer to Engine API reference for table definition.
Declaration
Task<T> CheckScriptSyntaxAsync<T>(AsyncHandle asyncHandle, Func<Response, T> onResult)
Parameters
Type | Name | Description |
---|---|---|
AsyncHandle | asyncHandle |
Handle to asynchronous method request |
System.Func<Response, T> | onResult |
Continuation function |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> |
Type Parameters
Name | Description |
---|---|
T |
Remarks
The first area is the primary error area, the second area is the secondary error area. The second area is optional and is shown only if qSecondaryFailure is set to true. The second area ends when the next statement in the script begins.
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!