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

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

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

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

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

            node.Tokens.AddRange(GetTokensFrom(startIndex));
            return(node);
        }
 public void Visit(DothtmlValueBindingNode bindingValue)
 {
     ResolveFromParent(bindingValue);
 }
示例#3
0
 public void Visit(DothtmlValueBindingNode bindingValue)
 {
     LastFoundNode = bindingValue;
 }