Finishing refactoring intrinsic. Implemented most of FunctionIntrinsics and basic BinaryOperationIntrinsics.

All test pass, need to add tests for type conversion operation though.
This commit is contained in:
Pavel V. Talanov
2012-07-13 15:10:19 +04:00
parent 961260c5c5
commit 62ad7a9b17
41 changed files with 1147 additions and 919 deletions
@@ -98,6 +98,12 @@ public class OperatorConventions {
.put(JetTokens.PLUSEQ, JetTokens.PLUS)
.put(JetTokens.MINUSEQ, JetTokens.MINUS)
.build();
//TODO: use these across frontend
public static final ImmutableBiMap<JetToken, Name> BOOLEAN_OPERATIONS = ImmutableBiMap.<JetToken, Name>builder()
.put(JetTokens.ANDAND, Name.identifier("and"))
.put(JetTokens.OROR, Name.identifier("or"))
.build();
@Nullable
public static Name getNameForOperationSymbol(@NotNull JetToken token) {