Veil.SuperSimple.SuperSimpleTemplateParserState.PushNewScope C# (CSharp) Méthode

PushNewScope() public méthode

public PushNewScope ( BlockNode blockNode ) : void
blockNode Veil.Parser.Nodes.BlockNode
Résultat void
        public void PushNewScope(BlockNode blockNode)
        {
            this.PushNewScope(blockNode, this.CurrentTypeInScope());
        }

Same methods

SuperSimpleTemplateParserState::PushNewScope ( BlockNode blockNode, Type modelType ) : void
SuperSimpleTemplateParserState::PushNewScope ( Type modelType ) : void

Usage Example

 private static void HandlePositiveConditional(SuperSimpleTemplateParserState state)
 {
     var condition = SyntaxTree.Conditional(
         state.ParseCurrentTokenExpression(),
         SyntaxTree.Block()
     );
     state.AddNodeToCurrentBlock(condition);
     state.PushNewScope(condition.TrueBlock);
 }
All Usage Examples Of Veil.SuperSimple.SuperSimpleTemplateParserState::PushNewScope