public CsScopedExpression CreateScope() { var expression = new CsScopedExpression(); expression.Parent = this; this.Expressions.Add(expression); return(expression); }
private static void BindOpCodeHandler(CsScopedExpression scope, OpCodeMetaModel model) { scope.AddPreBodyExpression("{\r\n"); scope.AddPostBodyExpression("}\r\n"); scope.AddPostBodyExpression("break;\r\n"); var handlerBody = scope.CreateChildExpression().CreateScope(); handlerBody.AddPreBodyExpression($"///TODO: Load and bind {model.ClrName} instructions\r\n"); }