public Type CurrentTypeInScope()
{
return this.scopeStack.First().ModelType;
}
private static void HandleEachOverSelf(SuperSimpleTemplateParserState state) { var each = SyntaxTree.Iterate( SyntaxTreeExpression.Self(state.CurrentTypeInScope()), SyntaxTree.Block() ); state.AddNodeToCurrentBlock(each); state.PushNewScope(each.Body, each.ItemType); }