CurrentTypeInScope() public méthode

public CurrentTypeInScope ( ) : Type
Résultat System.Type
 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);
 }
Exemple #2
0
        private static void HandleEachOverSelf(SuperSimpleTemplateParserState state)
        {
            var each = SyntaxTree.Iterate(
                Expression.Self(state.CurrentTypeInScope()),
                SyntaxTree.Block()
                );

            state.AddNodeToCurrentBlock(each);
            state.PushNewScope(each.Body, each.ItemType);
        }
Exemple #3
0
        private static void HandlePartial(SuperSimpleTemplateParserState state)
        {
            var            details    = state.ParseCurrentTokenNameAndModelExpression();
            ExpressionNode expression = Expression.Self(state.CurrentTypeInScope());

            if (!String.IsNullOrEmpty(details.Model))
            {
                expression = state.ParseExpression(details.Model);
            }
            state.AddNodeToCurrentBlock(SyntaxTree.Include(details.Name, expression));
        }
        private static void HandlePartial(SuperSimpleTemplateParserState state)
        {
            var details = state.ParseCurrentTokenNameAndModelExpression();
            ExpressionNode expression = SyntaxTreeExpression.Self(state.CurrentTypeInScope());

            if (!String.IsNullOrEmpty(details.Model))
            {
                expression = state.ParseExpression(details.Model);
            }
            state.AddNodeToCurrentBlock(SyntaxTree.Include(details.Name, expression));
        }