remove the '$' in the C code as tilera does not allow it
[IRC.git] / Robust / src / IR / Tree / BuildIR.java
index ca56794da9a5b32970e0efea9b69f48900c19f7a..c8efb8e7bc29898770e26fdbb7b1bb8a90733140 100644 (file)
@@ -662,8 +662,8 @@ private void addOuterClassParam( ClassDescriptor cn, ClassDescriptor ocn, int de
                for(Iterator method_it=icd.getMethods(); method_it.hasNext(); ) {
                         MethodDescriptor md=(MethodDescriptor)method_it.next();
                         if( md.isConstructor() ){
-                               md.addParameter( theTypeDesc, "surrounding$" + String.valueOf(depth) ); 
-                               initializeOuterMember( md, "this$" + String.valueOf( depth ), "surrounding$" + String.valueOf(depth) );
+                               md.addParameter( theTypeDesc, "surrounding___DOLLAR___" + String.valueOf(depth) );      
+                               initializeOuterMember( md, "this___DOLLAR___" + String.valueOf( depth ), "surrounding___DOLLAR___" + String.valueOf(depth) );
                                //System.out.println( "The added param is " + md.toString() + "\n" );
                        }
                }
@@ -691,7 +691,7 @@ private void addOuterClassReferences( ClassDescriptor cn, ClassDescriptor ocn, i
        tempChildNode.addChild("identifier").addChild ( tempCopy );
        theNode.addChild("type").addChild( theTypeNode );
        ParseNode variableDeclaratorID = new ParseNode("single");
-       String theStr = "this$" + String.valueOf( depth );
+       String theStr = "this___DOLLAR___" + String.valueOf( depth );
        variableDeclaratorID.addChild( theStr );
        ParseNode variableDeclarator = new ParseNode( "variable_declarator" );
        variableDeclarator.addChild( variableDeclaratorID );