You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sa...@apache.org on 2002/05/10 17:38:25 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler UnresolvedRef.java

santiagopg    02/05/10 08:38:25

  Modified:    java/src/org/apache/xalan/xsltc/compiler UnresolvedRef.java
  Log:
  Assigned type to _type.
  
  Revision  Changes    Path
  1.3       +10 -5     xml-xalan/java/src/org/apache/xalan/xsltc/compiler/UnresolvedRef.java
  
  Index: UnresolvedRef.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/UnresolvedRef.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- UnresolvedRef.java	1 Feb 2002 20:07:09 -0000	1.2
  +++ UnresolvedRef.java	10 May 2002 15:38:25 -0000	1.3
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: UnresolvedRef.java,v 1.2 2002/02/01 20:07:09 tmiller Exp $
  + * @(#)$Id: UnresolvedRef.java,v 1.3 2002/05/10 15:38:25 santiagopg Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -119,10 +119,10 @@
   	    ErrorMsg err = new ErrorMsg(ErrorMsg.CIRCULAR_VARIABLE_ERR,
   					name, this);
   	}
  -	if ((_ref = resolve(getParser(), stable)) != null)
  -	    return(_ref.typeCheck(stable));
  -	else
  -	    throw new TypeCheckError(reportError());
  +	if ((_ref = resolve(getParser(), stable)) != null) {
  +	    return (_type = _ref.typeCheck(stable));
  +	}
  +	throw new TypeCheckError(reportError());
       }
   
       public void translate(ClassGenerator classGen, MethodGenerator methodGen) {
  @@ -131,4 +131,9 @@
   	else
   	    reportError();
       }
  +
  +    public String toString() {
  +	return "unresolved-ref()";
  +    }
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org