greybel-interpreter 0.3.6 → 0.3.7
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/dist/context.d.ts +2 -1
- package/dist/context.js +4 -1
- package/package.json +1 -1
package/dist/context.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import CustomMap from './custom-types/map';
|
|
|
2
2
|
import { Operation } from './types/operation';
|
|
3
3
|
import { Expression } from './types/expression';
|
|
4
4
|
import { Callable } from './types/custom-type';
|
|
5
|
+
import { ASTPosition } from 'greyscript-core';
|
|
5
6
|
import CPS from './cps';
|
|
6
7
|
export declare enum ContextType {
|
|
7
8
|
API = "API",
|
|
@@ -59,7 +60,7 @@ export interface OperationContextForkOptions {
|
|
|
59
60
|
}
|
|
60
61
|
export declare class OperationContext {
|
|
61
62
|
target: string;
|
|
62
|
-
line:
|
|
63
|
+
line: ASTPosition;
|
|
63
64
|
debugger: Debugger;
|
|
64
65
|
previous: OperationContext | null;
|
|
65
66
|
type: ContextType;
|
package/dist/context.js
CHANGED
|
@@ -292,7 +292,10 @@ var OperationContext = /** @class */ (function () {
|
|
|
292
292
|
function OperationContext(options) {
|
|
293
293
|
var me = this;
|
|
294
294
|
me.target = options.target || 'unknown';
|
|
295
|
-
me.line =
|
|
295
|
+
me.line = {
|
|
296
|
+
line: 0,
|
|
297
|
+
character: 0
|
|
298
|
+
};
|
|
296
299
|
me.previous = options.previous || null;
|
|
297
300
|
me.type = options.type || ContextType.API;
|
|
298
301
|
me.state = options.state || ContextState.DEFAULT;
|