Пример #1
0
        /// <summary>
        /// Reads the directive.
        /// </summary>
        private DothtmlDirectiveNode ReadDirective()
        {
            var startIndex = CurrentIndex;
            var node       = new DothtmlDirectiveNode();

            Assert(DothtmlTokenType.DirectiveStart);
            node.DirectiveStartToken = Read();

            //consume only whitespaces before and after
            node.NameNode = ReadName(true, true, DothtmlTokenType.DirectiveName);

            //consume only whitespaces after
            node.ValueNode = ReadTextValue(false, true, DothtmlTokenType.DirectiveValue);

            node.Tokens.Add(GetTokensFrom(startIndex));
            return(node);
        }
Пример #2
0
 public void Visit(DothtmlDirectiveNode directive)
 {
     LastFoundNode = directive;
 }
Пример #3
0
 public void Visit(DothtmlDirectiveNode directive)
 {
     LastFoundNode = directive;
 }