public void ChildrenBound(ModelMap map, ParsingContext context) { var query = context.CurrentObject <IQueryContext>(); var instruction = query is BeginView ? (IModelMapInstruction) new EndView() : new EndTable(); map.AddInstruction(instruction); context.PopObject(); }
private void parse(ModelMap map, XDocument document, ModelMapCompilationReport report) { var root = document.Root; var context = new ParsingContext(_services, report); map.AddInstruction(new BeginModelMap(map.Name)); context.PushObject(map); root .Elements() .Each(_ => _elementService.Visit(_, map, context)); context.PopObject(); map.AddInstruction(new EndModelMap()); }
public void ChildrenBound(ModelMap map, ParsingContext context) { context.PopObject(); }
public void ChildrenBound(ModelMap map, ParsingContext context) { context.PopObject(); map.AddInstruction(new EndTransform()); }