Skip to content

Commit

Permalink
fix func decl gen
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepami committed Feb 16, 2024
1 parent 097e1a0 commit ef97623
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Interpreter.Lib/IR/Ast/Visitors/InstructionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
using Interpreter.Lib.IR.Ast.Impl.Nodes.Expressions.ComplexLiterals;
using Interpreter.Lib.IR.Ast.Impl.Nodes.Expressions.PrimaryExpressions;
using Interpreter.Lib.IR.Ast.Impl.Nodes.Statements;
using Visitor.NET;

namespace Interpreter.Lib.IR.Ast.Visitors;

Expand Down Expand Up @@ -122,9 +121,6 @@ public AddressedInstructions Visit(ObjectLiteral visitable)

public AddressedInstructions Visit(FunctionDeclaration visitable)
{
if (!visitable.Any())
return new();

var objectId = visitable.Object?.Id;
var functionInfo = new FunctionInfo(visitable.Name, objectId);

Expand Down

0 comments on commit ef97623

Please sign in to comment.