All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.ir.backend.js.utils.OperatorNames.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
/*
 * Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.ir.backend.js.utils

import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.util.OperatorNameConventions

object OperatorNames {
    val UNARY_PLUS = OperatorNameConventions.UNARY_PLUS
    val UNARY_MINUS = OperatorNameConventions.UNARY_MINUS

    val ADD = OperatorNameConventions.PLUS
    val SUB = OperatorNameConventions.MINUS
    val MUL = OperatorNameConventions.TIMES
    val DIV = OperatorNameConventions.DIV
    val MOD = OperatorNameConventions.MOD
    val REM = OperatorNameConventions.REM

    val AND = OperatorNameConventions.AND
    val OR = OperatorNameConventions.OR
    val XOR = Name.identifier("xor")
    val INV = Name.identifier("inv")

    val SHL = Name.identifier("shl")
    val SHR = Name.identifier("shr")
    val SHRU = Name.identifier("ushr")

    val NOT = OperatorNameConventions.NOT

    val INC = OperatorNameConventions.INC
    val DEC = OperatorNameConventions.DEC


    val BINARY = setOf(ADD, SUB, MUL, DIV, MOD, REM, AND, OR, XOR, SHL, SHR, SHRU)
    val UNARY = setOf(UNARY_PLUS, UNARY_MINUS, INV, NOT, INC, DEC)
    val ALL = BINARY + UNARY
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy