more cleanups
This commit is contained in:
parent
6463c4db5a
commit
6055320aa2
|
@ -39,12 +39,12 @@ export class SqFrame {
|
||||||
constructor(private _value: RSReducerT.frame) {}
|
constructor(private _value: RSReducerT.frame) {}
|
||||||
|
|
||||||
name(): string {
|
name(): string {
|
||||||
return RSFrameStack.Frame.toName(this._value);
|
return RSFrameStack.Frame.getName(this._value);
|
||||||
}
|
}
|
||||||
|
|
||||||
location() {
|
location() {
|
||||||
console.log(RSFrameStack);
|
console.log(RSFrameStack);
|
||||||
console.log(RSFrameStack.Frame);
|
console.log(RSFrameStack.Frame);
|
||||||
return RSFrameStack.Frame.toLocation(this._value);
|
return RSFrameStack.Frame.getLocation(this._value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,10 +13,10 @@ module Frame = {
|
||||||
}
|
}
|
||||||
|
|
||||||
@genType
|
@genType
|
||||||
let toLocation = (t: Reducer_T.frame): option<Reducer_Peggy_Parse.location> => t.location
|
let getLocation = (t: Reducer_T.frame): option<Reducer_Peggy_Parse.location> => t.location
|
||||||
|
|
||||||
@genType
|
@genType
|
||||||
let toName = (t: Reducer_T.frame): string => t.name
|
let getName = (t: Reducer_T.frame): string => t.name
|
||||||
}
|
}
|
||||||
|
|
||||||
let make = (): t => list{}
|
let make = (): t => list{}
|
||||||
|
|
|
@ -8,8 +8,6 @@ type rawParseType = option<rawParseArgumentType>
|
||||||
type expressionArgumentType = result<ExpressionT.t, SqError.t>
|
type expressionArgumentType = result<ExpressionT.t, SqError.t>
|
||||||
type expressionType = option<expressionArgumentType>
|
type expressionType = option<expressionArgumentType>
|
||||||
type continuationArgumentType = Reducer_T.namespace
|
type continuationArgumentType = Reducer_T.namespace
|
||||||
type continuationType = option<continuationArgumentType>
|
|
||||||
type continuationResultType = option<result<continuationArgumentType, SqError.Message.t>>
|
|
||||||
type resultArgumentType = result<Reducer_T.value, SqError.t>
|
type resultArgumentType = result<Reducer_T.value, SqError.t>
|
||||||
type resultType = option<resultArgumentType>
|
type resultType = option<resultArgumentType>
|
||||||
type continuesArgumentType = array<string>
|
type continuesArgumentType = array<string>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user