public FunctionScope Add(FrameObjectEntry frameObjectEntry) { var localSymbleTable = this.LocalScopes.Peek().Add(frameObjectEntry); return(new FunctionScope( this.FunctionType, this.FunctionParams, this.LocalScopes.Pop().Push(localSymbleTable) )); }
public FunctionScope Add(FrameObjectEntry frameObjectEntry) { var localSymbleTable = this.LocalScopes.Peek().Add(frameObjectEntry); return new FunctionScope( this.FunctionType, this.FunctionParams, this.LocalScopes.Pop().Push(localSymbleTable) ); }
public LocalSymbolTable Add(FrameObjectEntry frameObjectEntry) => new LocalSymbolTable(this.TypeDefs, this.Enums, this.FrameObjects.Add(frameObjectEntry));