public void Visit(NodeFnDecl fn) { if (fn.body != null) { currentFn = walker.Current.Lookup(fn.Name) as FnSymbol; walker.StepIn(); fn.body.ForEach(node => node.Accept(this)); walker.StepOut(); } }
public void InsertFn(string fnName, Modifiers mods, FnTyRef ty) => symbols[fnName] = new FnSymbol(fnName, mods, ty);