Veil.SuperSimple.SuperSimpleTemplateParserState.CurrentTypeInScope C# (CSharp) Method

CurrentTypeInScope() public method

public CurrentTypeInScope ( ) : Type
return System.Type
        public Type CurrentTypeInScope()
        {
            return this.scopeStack.First().ModelType;
        }

Usage Example

 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);
 }
All Usage Examples Of Veil.SuperSimple.SuperSimpleTemplateParserState::CurrentTypeInScope