@intersystems-community/ascot 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/generated/ascot.js +13219 -335
- package/generated/interfaces/iris-ascot-common.d.ts +225 -4
- package/generated/interfaces/iris-ascot-exported.d.ts +2 -1
- package/generated/interfaces/iris-ascot-imported.d.ts +1 -1
- package/lib/ascot.core.wasm +0 -0
- package/package.json +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/** @module Interface iris:ascot/common **/
|
|
2
|
+
export interface RoutineSource {
|
|
3
|
+
text: string,
|
|
4
|
+
uri?: string,
|
|
5
|
+
}
|
|
2
6
|
export interface Position {
|
|
3
7
|
line: number,
|
|
4
8
|
character: number,
|
|
@@ -127,10 +131,6 @@ export interface ClassInfo {
|
|
|
127
131
|
isDatatype?: boolean,
|
|
128
132
|
uri?: string,
|
|
129
133
|
}
|
|
130
|
-
export interface RoutineSource {
|
|
131
|
-
text: string,
|
|
132
|
-
uri?: string,
|
|
133
|
-
}
|
|
134
134
|
export interface Location {
|
|
135
135
|
uri: string,
|
|
136
136
|
range: Range,
|
|
@@ -156,6 +156,8 @@ export interface Diagnostic {
|
|
|
156
156
|
range: Range,
|
|
157
157
|
relatedInformation: Array<DiagnosticRelatedInformation>,
|
|
158
158
|
severity: DiagnosticSeverity,
|
|
159
|
+
code: string,
|
|
160
|
+
codeDescription: string,
|
|
159
161
|
}
|
|
160
162
|
export interface InlayHint {
|
|
161
163
|
position: Position,
|
|
@@ -208,3 +210,222 @@ export interface WorkspaceSymbol {
|
|
|
208
210
|
deprecated: boolean,
|
|
209
211
|
location: Location,
|
|
210
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* # Variants
|
|
215
|
+
*
|
|
216
|
+
* ## `"long"`
|
|
217
|
+
*
|
|
218
|
+
* ## `"short"`
|
|
219
|
+
*/
|
|
220
|
+
export type KeywordForm = 'long' | 'short';
|
|
221
|
+
/**
|
|
222
|
+
* # Variants
|
|
223
|
+
*
|
|
224
|
+
* ## `"lower"`
|
|
225
|
+
*
|
|
226
|
+
* ## `"upper"`
|
|
227
|
+
*
|
|
228
|
+
* ## `"pascal"`
|
|
229
|
+
*/
|
|
230
|
+
export type KeywordCase = 'lower' | 'upper' | 'pascal';
|
|
231
|
+
export interface KeywordStyle {
|
|
232
|
+
form?: KeywordForm,
|
|
233
|
+
'case'?: KeywordCase,
|
|
234
|
+
}
|
|
235
|
+
export interface Style {
|
|
236
|
+
command?: KeywordStyle,
|
|
237
|
+
commandDo?: KeywordStyle,
|
|
238
|
+
commandIf?: KeywordStyle,
|
|
239
|
+
commandElseif?: KeywordStyle,
|
|
240
|
+
commandElse?: KeywordStyle,
|
|
241
|
+
commandWhile?: KeywordStyle,
|
|
242
|
+
commandFor?: KeywordStyle,
|
|
243
|
+
commandGoto?: KeywordStyle,
|
|
244
|
+
commandBreak?: KeywordStyle,
|
|
245
|
+
commandQuit?: KeywordStyle,
|
|
246
|
+
commandZquit?: KeywordStyle,
|
|
247
|
+
commandReturn?: KeywordStyle,
|
|
248
|
+
commandContinue?: KeywordStyle,
|
|
249
|
+
commandSet?: KeywordStyle,
|
|
250
|
+
commandKill?: KeywordStyle,
|
|
251
|
+
commandNew?: KeywordStyle,
|
|
252
|
+
commandMerge?: KeywordStyle,
|
|
253
|
+
commandTry?: KeywordStyle,
|
|
254
|
+
commandCatch?: KeywordStyle,
|
|
255
|
+
commandThrow?: KeywordStyle,
|
|
256
|
+
commandZtrap?: KeywordStyle,
|
|
257
|
+
commandZzdump?: KeywordStyle,
|
|
258
|
+
commandWrite?: KeywordStyle,
|
|
259
|
+
commandRead?: KeywordStyle,
|
|
260
|
+
commandOpen?: KeywordStyle,
|
|
261
|
+
commandClose?: KeywordStyle,
|
|
262
|
+
commandUse?: KeywordStyle,
|
|
263
|
+
commandLock?: KeywordStyle,
|
|
264
|
+
commandHalt?: KeywordStyle,
|
|
265
|
+
commandHang?: KeywordStyle,
|
|
266
|
+
commandJob?: KeywordStyle,
|
|
267
|
+
commandTstart?: KeywordStyle,
|
|
268
|
+
commandTcommit?: KeywordStyle,
|
|
269
|
+
commandTrollback?: KeywordStyle,
|
|
270
|
+
commandZwrite?: KeywordStyle,
|
|
271
|
+
commandZkill?: KeywordStyle,
|
|
272
|
+
commandZnspace?: KeywordStyle,
|
|
273
|
+
commandXecute?: KeywordStyle,
|
|
274
|
+
commandView?: KeywordStyle,
|
|
275
|
+
commandZprint?: KeywordStyle,
|
|
276
|
+
commandPrint?: KeywordStyle,
|
|
277
|
+
commandZbreak?: KeywordStyle,
|
|
278
|
+
commandMvprint?: KeywordStyle,
|
|
279
|
+
commandMvcrt?: KeywordStyle,
|
|
280
|
+
'function'?: KeywordStyle,
|
|
281
|
+
functionAscii?: KeywordStyle,
|
|
282
|
+
functionBit?: KeywordStyle,
|
|
283
|
+
functionBitcount?: KeywordStyle,
|
|
284
|
+
functionBitfind?: KeywordStyle,
|
|
285
|
+
functionBitlogic?: KeywordStyle,
|
|
286
|
+
functionCase?: KeywordStyle,
|
|
287
|
+
functionChange?: KeywordStyle,
|
|
288
|
+
functionChar?: KeywordStyle,
|
|
289
|
+
functionClassmethod?: KeywordStyle,
|
|
290
|
+
functionClassname?: KeywordStyle,
|
|
291
|
+
functionCompile?: KeywordStyle,
|
|
292
|
+
functionData?: KeywordStyle,
|
|
293
|
+
functionDecimal?: KeywordStyle,
|
|
294
|
+
functionDouble?: KeywordStyle,
|
|
295
|
+
functionExtract?: KeywordStyle,
|
|
296
|
+
functionFactor?: KeywordStyle,
|
|
297
|
+
functionFind?: KeywordStyle,
|
|
298
|
+
functionFnumber?: KeywordStyle,
|
|
299
|
+
functionGet?: KeywordStyle,
|
|
300
|
+
functionIncrement?: KeywordStyle,
|
|
301
|
+
functionInumber?: KeywordStyle,
|
|
302
|
+
functionIsobject?: KeywordStyle,
|
|
303
|
+
functionIsvaliddouble?: KeywordStyle,
|
|
304
|
+
functionIsvalidnum?: KeywordStyle,
|
|
305
|
+
functionIsvector?: KeywordStyle,
|
|
306
|
+
functionJustify?: KeywordStyle,
|
|
307
|
+
functionLength?: KeywordStyle,
|
|
308
|
+
functionList?: KeywordStyle,
|
|
309
|
+
functionListbuild?: KeywordStyle,
|
|
310
|
+
functionListdata?: KeywordStyle,
|
|
311
|
+
functionListfind?: KeywordStyle,
|
|
312
|
+
functionListfromstring?: KeywordStyle,
|
|
313
|
+
functionListget?: KeywordStyle,
|
|
314
|
+
functionListlength?: KeywordStyle,
|
|
315
|
+
functionListnext?: KeywordStyle,
|
|
316
|
+
functionListsame?: KeywordStyle,
|
|
317
|
+
functionListtostring?: KeywordStyle,
|
|
318
|
+
functionListupdate?: KeywordStyle,
|
|
319
|
+
functionListvalid?: KeywordStyle,
|
|
320
|
+
functionLocate?: KeywordStyle,
|
|
321
|
+
functionLock?: KeywordStyle,
|
|
322
|
+
functionMatch?: KeywordStyle,
|
|
323
|
+
functionMethod?: KeywordStyle,
|
|
324
|
+
functionMv?: KeywordStyle,
|
|
325
|
+
functionMvv?: KeywordStyle,
|
|
326
|
+
functionName?: KeywordStyle,
|
|
327
|
+
functionNconvert?: KeywordStyle,
|
|
328
|
+
functionNext?: KeywordStyle,
|
|
329
|
+
functionNormalize?: KeywordStyle,
|
|
330
|
+
functionNow?: KeywordStyle,
|
|
331
|
+
functionNumber?: KeywordStyle,
|
|
332
|
+
functionOrder?: KeywordStyle,
|
|
333
|
+
functionParameter?: KeywordStyle,
|
|
334
|
+
functionPiece?: KeywordStyle,
|
|
335
|
+
functionPrefetchoff?: KeywordStyle,
|
|
336
|
+
functionPrefetchon?: KeywordStyle,
|
|
337
|
+
functionProperty?: KeywordStyle,
|
|
338
|
+
functionQlength?: KeywordStyle,
|
|
339
|
+
functionQsubscript?: KeywordStyle,
|
|
340
|
+
functionQuery?: KeywordStyle,
|
|
341
|
+
functionRandom?: KeywordStyle,
|
|
342
|
+
functionReplace?: KeywordStyle,
|
|
343
|
+
functionReverse?: KeywordStyle,
|
|
344
|
+
functionSconvert?: KeywordStyle,
|
|
345
|
+
functionSelect?: KeywordStyle,
|
|
346
|
+
functionSequence?: KeywordStyle,
|
|
347
|
+
functionSortbegin?: KeywordStyle,
|
|
348
|
+
functionSortend?: KeywordStyle,
|
|
349
|
+
functionStack?: KeywordStyle,
|
|
350
|
+
functionText?: KeywordStyle,
|
|
351
|
+
functionTranslate?: KeywordStyle,
|
|
352
|
+
functionVector?: KeywordStyle,
|
|
353
|
+
functionVectordefined?: KeywordStyle,
|
|
354
|
+
functionVectorop?: KeywordStyle,
|
|
355
|
+
functionView?: KeywordStyle,
|
|
356
|
+
functionWascii?: KeywordStyle,
|
|
357
|
+
functionWchar?: KeywordStyle,
|
|
358
|
+
functionWextract?: KeywordStyle,
|
|
359
|
+
functionWfind?: KeywordStyle,
|
|
360
|
+
functionWiswide?: KeywordStyle,
|
|
361
|
+
functionWlength?: KeywordStyle,
|
|
362
|
+
functionWreverse?: KeywordStyle,
|
|
363
|
+
functionXecute?: KeywordStyle,
|
|
364
|
+
functionZabs?: KeywordStyle,
|
|
365
|
+
functionZarccos?: KeywordStyle,
|
|
366
|
+
functionZarcsin?: KeywordStyle,
|
|
367
|
+
functionZarctan?: KeywordStyle,
|
|
368
|
+
functionZbitand?: KeywordStyle,
|
|
369
|
+
functionZbitcount?: KeywordStyle,
|
|
370
|
+
functionZbitfind?: KeywordStyle,
|
|
371
|
+
functionZbitget?: KeywordStyle,
|
|
372
|
+
functionZbitlen?: KeywordStyle,
|
|
373
|
+
functionZbitnot?: KeywordStyle,
|
|
374
|
+
functionZbitor?: KeywordStyle,
|
|
375
|
+
functionZbitset?: KeywordStyle,
|
|
376
|
+
functionZbitstr?: KeywordStyle,
|
|
377
|
+
functionZbitxor?: KeywordStyle,
|
|
378
|
+
functionZboolean?: KeywordStyle,
|
|
379
|
+
functionZconvert?: KeywordStyle,
|
|
380
|
+
functionZcos?: KeywordStyle,
|
|
381
|
+
functionZcot?: KeywordStyle,
|
|
382
|
+
functionZcrc?: KeywordStyle,
|
|
383
|
+
functionZcsc?: KeywordStyle,
|
|
384
|
+
functionZcyc?: KeywordStyle,
|
|
385
|
+
functionZdascii?: KeywordStyle,
|
|
386
|
+
functionZdate?: KeywordStyle,
|
|
387
|
+
functionZdateh?: KeywordStyle,
|
|
388
|
+
functionZdatetime?: KeywordStyle,
|
|
389
|
+
functionZdatetimeh?: KeywordStyle,
|
|
390
|
+
functionZdchar?: KeywordStyle,
|
|
391
|
+
functionZexp?: KeywordStyle,
|
|
392
|
+
functionZf?: KeywordStyle,
|
|
393
|
+
functionZhex?: KeywordStyle,
|
|
394
|
+
functionZincrement?: KeywordStyle,
|
|
395
|
+
functionZiswide?: KeywordStyle,
|
|
396
|
+
functionZlascii?: KeywordStyle,
|
|
397
|
+
functionZlchar?: KeywordStyle,
|
|
398
|
+
functionZln?: KeywordStyle,
|
|
399
|
+
functionZlog?: KeywordStyle,
|
|
400
|
+
functionZname?: KeywordStyle,
|
|
401
|
+
functionZobjclass?: KeywordStyle,
|
|
402
|
+
functionZobjclassmethod?: KeywordStyle,
|
|
403
|
+
functionZobjmethod?: KeywordStyle,
|
|
404
|
+
functionZobjproperty?: KeywordStyle,
|
|
405
|
+
functionZobjref?: KeywordStyle,
|
|
406
|
+
functionZorder?: KeywordStyle,
|
|
407
|
+
functionZposition?: KeywordStyle,
|
|
408
|
+
functionZpower?: KeywordStyle,
|
|
409
|
+
functionZprevious?: KeywordStyle,
|
|
410
|
+
functionZqascii?: KeywordStyle,
|
|
411
|
+
functionZqchar?: KeywordStyle,
|
|
412
|
+
functionZsearch?: KeywordStyle,
|
|
413
|
+
functionZsec?: KeywordStyle,
|
|
414
|
+
functionZseek?: KeywordStyle,
|
|
415
|
+
functionZsin?: KeywordStyle,
|
|
416
|
+
functionZsqr?: KeywordStyle,
|
|
417
|
+
functionZstrip?: KeywordStyle,
|
|
418
|
+
functionZtan?: KeywordStyle,
|
|
419
|
+
functionZtime?: KeywordStyle,
|
|
420
|
+
functionZtimeh?: KeywordStyle,
|
|
421
|
+
functionZutil?: KeywordStyle,
|
|
422
|
+
functionZversion?: KeywordStyle,
|
|
423
|
+
functionZwascii?: KeywordStyle,
|
|
424
|
+
functionZwbpack?: KeywordStyle,
|
|
425
|
+
functionZwbunpack?: KeywordStyle,
|
|
426
|
+
functionZwchar?: KeywordStyle,
|
|
427
|
+
functionZwidth?: KeywordStyle,
|
|
428
|
+
functionZwpack?: KeywordStyle,
|
|
429
|
+
functionZwunpack?: KeywordStyle,
|
|
430
|
+
functionZzenkaku?: KeywordStyle,
|
|
431
|
+
}
|
|
@@ -8,10 +8,11 @@ export type Range = import('./iris-ascot-common.js').Range;
|
|
|
8
8
|
export type Location = import('./iris-ascot-common.js').Location;
|
|
9
9
|
export type DocumentSymbol = import('./iris-ascot-common.js').DocumentSymbol;
|
|
10
10
|
export type WorkspaceSymbol = import('./iris-ascot-common.js').WorkspaceSymbol;
|
|
11
|
+
export type Style = import('./iris-ascot-common.js').Style;
|
|
11
12
|
export type IrisConnection = import('./iris-ascot-imported.js').IrisConnection;
|
|
12
13
|
|
|
13
14
|
export class Workspace {
|
|
14
|
-
constructor(env: IrisConnection | undefined)
|
|
15
|
+
constructor(env: IrisConnection | undefined, style: Style | undefined)
|
|
15
16
|
open(uri: string, text: string): Array<string>;
|
|
16
17
|
close(uri: string): Array<string>;
|
|
17
18
|
diagnostics(uri: string): Promise<Array<Diagnostic>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @module Interface iris:ascot/imported **/
|
|
2
|
-
export type ClassInfo = import('./iris-ascot-common.js').ClassInfo;
|
|
3
2
|
export type RoutineSource = import('./iris-ascot-common.js').RoutineSource;
|
|
3
|
+
export type ClassInfo = import('./iris-ascot-common.js').ClassInfo;
|
|
4
4
|
|
|
5
5
|
export class IrisConnection {
|
|
6
6
|
/**
|
package/lib/ascot.core.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intersystems-community/ascot",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "ascot, a type checker and code intelligence engine for InterSystems ObjectScript, for Node and other JS consumers.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"keywords": [
|