Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
toStructure operator case
Browse files Browse the repository at this point in the history
  • Loading branch information
dmt0 committed Oct 2, 2019
1 parent fc926ff commit 1d46e06
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/syntax-tree/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface IStructure {
subType?: string;
type: string;
value: any;
case: string | undefined;

block?: IStructure;
left?: IStructure;
Expand All @@ -21,7 +22,8 @@ function toStructure(tree: ISyntaxTree): IStructure {
const res: IStructure = {
subType: lexeme.subType,
type: lexeme.type,
value: lexeme.present ? lexeme.present(tree) : value
value: lexeme.present ? lexeme.present(tree) : value,
case: lexeme.case
};

if (block) {
Expand Down

0 comments on commit 1d46e06

Please sign in to comment.