more cleanups

This commit is contained in:
Vyacheslav Matyukhin 2022-10-05 15:56:13 +04:00
parent 6463c4db5a
commit 6055320aa2
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C
3 changed files with 4 additions and 6 deletions

View File

@ -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);
} }
} }

View File

@ -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{}

View File

@ -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>