コード例 #1
0
 public virtual bool VisitFixedStatement(FixedStatement fixedStatement, object d)
 {
     if ((fixedStatement == null)) {
         return SetFailure();
     }
     if ((d == null)) {
         return SetFailure();
     }
     if ((fixedStatement.PointerDeclaration == null)) {
         return SetFailure();
     }
     if ((fixedStatement.EmbeddedStatement == null)) {
         return SetFailure();
     }
     if(fixedStatement.GetType() != d.GetType()) {return SetFailure();}
     var data = (FixedStatement)d;
     if (!IsMatch(fixedStatement, data)) {
         return SetFailure();
     }
     fixedStatement.PointerDeclaration.AcceptVisitor(this, data.PointerDeclaration);
     return fixedStatement.EmbeddedStatement.AcceptVisitor(this, data.EmbeddedStatement);
 }