public IHolderCil Visit(LetBodyContext parserRule, IFunctionCil cilTree, IContextCil contextCil) { var newContextCil = contextCil.CreateAChild(); Visit(parserRule.declaretion, cilTree, newContextCil); return(Visit(parserRule.body, cilTree, newContextCil)); }
public void Visit(LetBodyContext parserRule, IObjectContext <IVar, IVar> context) { var newContext = context.CreateChildContext(); Visit(parserRule.declaretion, newContext); Visit(parserRule.body, newContext); parserRule.computedType = parserRule.body.computedType; }