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); }
public void Visit(DothtmlValueTextNode textValue) { LastFoundNode = textValue; }