Skip to content

Commit

Permalink
some work stuck long time ago
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepami committed Aug 29, 2023
1 parent d8fdddf commit c2a153d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public void Clear()
SymbolTable.Clear();
}

public FunctionSymbol GetSymbol() => Function;

public override IEnumerator<AbstractSyntaxTreeNode> GetEnumerator()
{
yield return Statements;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ internal override Type NodeCheck()
});
Methods.ForEach(m =>
{
var symbol = m.GetSymbol();
var symbol = m.Function;
propertyTypes.Add(new PropertyType(symbol.Id, symbol.Type));
});
var type = new ObjectType(propertyTypes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public Unit Visit(LexicalDeclaration visitable)

public Unit Visit(FunctionDeclaration visitable)
{
//visitable.Parent.SymbolTable.AddSymbol(visitable.GetSymbol());
throw new NotImplementedException();
}
}

0 comments on commit c2a153d

Please sign in to comment.