public void Constructors() { var node = new SFNode(); Assert.AreEqual(node.ToString(), "NULL"); node = new SFNode("foo"); Assert.AreEqual(node.ToString(), "foo"); node = new SFNode(new SFNode("bar")); Assert.AreEqual(node.ToString(), "bar"); }
public void Visit(SFNode field) { VrmlToken token = m_context.PeekNextToken(); switch (token.Text) { case "NULL": field.Node = null; break; default: m_context.PushNodeContainer(field); m_nodeStatementParser(m_context); m_context.PopNodeContainer(); break; } }
public void visit(SFNode field) { VRML97Token token = context.PeekNextToken(); switch (token.Text) { case "NULL": field.Node = null; break; default: context.PushNodeContainer(field); nodeStatementParser(context); context.PopNodeContainer(); break; } }
public void Visit(SFNode field) { field.Node = Child; }
public SFNode(SFNode obj) : base((string)obj) { }
public void visit(SFNode field) { field.Node = _child; }