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); }
public NVReference(NVDesignator designator) { _designator = designator; }