public DirectiveSyntax(DirectiveBlockTagOpenToken StartToken, DirectiveContentsSyntax Contents, BlockTagCloseToken EndToken) { this.StartToken = StartToken; this.Contents = Contents; this.EndToken = EndToken; }
// Token public bool TryParseDirectiveBlockTagOpenToken(Lexer lexer, out DirectiveBlockTagOpenToken result) { var next = lexer.Next(); if (next.Text == "<#@") { result = new DirectiveBlockTagOpenToken(next); return(true); } result = null; return(false); } // Parse method end