예제 #1
0
        public void ParseReferenceInBetweenXmlTextNodes()
        {
            Parser parser = GetNewParser(
                "text$first.second(100) text");
            //      ^ ^                 ^
            TemplateNode templateNode = parser.ParseTemplate();

            // XmlTextNode
            XmlTextNode text1 = (XmlTextNode)templateNode.GetNodeAt(1, 4);

            AssertPosition(new Position(1, 1, 1, 5), text1.Position);

            // NVReference
            NVDesignator designator = (NVDesignator)templateNode.GetNodeAt(1, 6);

            AssertPosition(new Position(1, 5, 1, 23), designator.Position);

            // XmlTextNode
            XmlTextNode text2 = (XmlTextNode)templateNode.GetNodeAt(1, 24);

            AssertPosition(new Position(1, 23, 1, 28), text2.Position);
        }
예제 #2
0
 public NVReference(NVDesignator designator)
 {
     _designator = designator;
 }
예제 #3
0
 public NVReference(NVDesignator designator)
 {
     _designator = designator;
 }