Example #1
0
        private DothtmlValueTextNode ReadTextValue(bool whitespacesBefore, bool whiteSpacesAfter, DothtmlTokenType valueTokenType)
        {
            var startIndex = CurrentIndex;

            var node = new DothtmlValueTextNode()
            {
                StartPosition = Peek().StartPosition
            };

            if (whitespacesBefore)
            {
                node.WhitespacesBefore = SkipWhiteSpace();
            }

            Assert(valueTokenType);
            node.ValueToken = Read();

            if (whiteSpacesAfter)
            {
                node.WhitespacesAfter = SkipWhiteSpace();
            }

            node.Tokens.AddRange(GetTokensFrom(startIndex));
            return(node);
        }
 public void Visit(DothtmlValueTextNode textValue)
 {
     ResolveFromParent(textValue);
 }
Example #3
0
 public void Visit(DothtmlValueTextNode textValue)
 {
     LastFoundNode = textValue;
 }