New J2K: Remove multiverse
This commit is contained in:
committed by
Ilya Kirillov
parent
83f9054a7e
commit
9b205c2825
@@ -1,21 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.j2k.tree.multiverse
|
||||
|
||||
import org.jetbrains.kotlin.j2k.tree.JKDeclaration
|
||||
|
||||
interface JKMultiverseDeclaration : JKDeclaration
|
||||
@@ -1,54 +0,0 @@
|
||||
/*
|
||||
* Copyright 2010-2018 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.j2k.tree.multiverse
|
||||
|
||||
import org.jetbrains.kotlin.j2k.tree.*
|
||||
import org.jetbrains.kotlin.j2k.tree.impl.JKJavaPrimitiveTypeImpl
|
||||
import org.jetbrains.kotlin.j2k.tree.impl.JKModifierListImpl
|
||||
|
||||
abstract class JKMultiverseElementBase : JKElement {
|
||||
override var parent: JKElement? = null
|
||||
|
||||
fun <D : JKTreeElement> D.setParent(p: JKTreeElement): D {
|
||||
parent = p
|
||||
return this
|
||||
}
|
||||
}
|
||||
|
||||
class JKMultiverseField(override var name: JKNameIdentifier) : JKField, JKMultiverseDeclaration, JKMultiverseElementBase() {
|
||||
override var modifierList: JKModifierList = JKModifierListImpl()
|
||||
override var type: JKType = JKJavaPrimitiveTypeImpl.BOOLEAN //TODO
|
||||
override val valid: Boolean
|
||||
get() = true
|
||||
}
|
||||
|
||||
class JKMultiverseMethod(override var name: JKNameIdentifier) : JKMethod, JKMultiverseDeclaration, JKMultiverseElementBase() {
|
||||
override val returnType: JKType
|
||||
get() = TODO("not implemented")
|
||||
override var modifierList: JKModifierList = JKModifierListImpl()
|
||||
override var valueArguments: List<JKValueArgument> = listOf()
|
||||
override val valid: Boolean
|
||||
get() = true
|
||||
}
|
||||
|
||||
class JKMultiverseClass(
|
||||
override var name: JKNameIdentifier, override val declarationList: List<JKMultiverseDeclaration>,
|
||||
override var classKind: JKClass.ClassKind, override var modifierList: JKModifierList
|
||||
) : JKClass, JKMultiverseElementBase() {
|
||||
override val valid: Boolean
|
||||
get() = true
|
||||
}
|
||||
Reference in New Issue
Block a user