Example #1
0
        private DothtmlValueBindingNode ReadBindingValue(bool whitespacesBefore, bool whiteSpacesAfter)
        {
            var startIndex = CurrentIndex;

            var node = new DothtmlValueBindingNode();

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

            Assert(DothtmlTokenType.OpenBinding);
            node.BindingNode = ReadBinding();
            node.ValueTokens = node.BindingNode.Tokens;

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

            node.Tokens.Add(GetTokensFrom(startIndex));
            return(node);
        }
 public void Visit(DothtmlValueBindingNode bindingValue)
 {
     LastFoundNode = bindingValue;
 }
 public void Visit(DothtmlValueBindingNode bindingValue)
 {
     LastFoundNode = bindingValue;
 }