public void ThisReference()
        {
            nodeTypeExistenceVisitor = new NodeTypeExistenceVisitor(typeof(ThisReferenceExpression));

            string program = TestUtil.StatementParse("this.name = name;");
            CompilationUnit cu = TestUtil.ParseProgram(program);
            AssignmentExpression assignment = (AssignmentExpression) TestUtil.GetStatementNodeOf(cu, 0);
            nodeTypeExistenceVisitor.VisitAssignmentExpression(assignment, null);
            Assert.IsTrue(nodeTypeExistenceVisitor.Contains);
        }
        public void ThisReference()
        {
            nodeTypeExistenceVisitor = new NodeTypeExistenceVisitor(typeof(ThisReferenceExpression));

            string               program    = TestUtil.StatementParse("this.name = name;");
            CompilationUnit      cu         = TestUtil.ParseProgram(program);
            AssignmentExpression assignment = (AssignmentExpression)TestUtil.GetStatementNodeOf(cu, 0);

            nodeTypeExistenceVisitor.VisitAssignmentExpression(assignment, null);
            Assert.IsTrue(nodeTypeExistenceVisitor.Contains);
        }