equal
deleted
inserted
replaced
900 } |
900 } |
901 |
901 |
902 /** Return binary operator that corresponds to given access code. |
902 /** Return binary operator that corresponds to given access code. |
903 */ |
903 */ |
904 private OperatorSymbol binaryAccessOperator(int acode) { |
904 private OperatorSymbol binaryAccessOperator(int acode) { |
905 for (Symbol sym : syms.predefClass.members().getSymbols(NON_RECURSIVE)) { |
905 return (OperatorSymbol)operators.lookupBinaryOp(sym -> accessCode(((OperatorSymbol)sym).opcode) == acode); |
906 if (sym instanceof OperatorSymbol) { |
|
907 OperatorSymbol op = (OperatorSymbol)sym; |
|
908 if (accessCode(op.opcode) == acode) return op; |
|
909 } |
|
910 } |
|
911 return null; |
|
912 } |
906 } |
913 |
907 |
914 /** Return tree tag for assignment operation corresponding |
908 /** Return tree tag for assignment operation corresponding |
915 * to given binary operator. |
909 * to given binary operator. |
916 */ |
910 */ |