From 99c5bd1b90475c767621e7d2a3a7cf15f83c8b2c Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 13 Aug 2014 16:27:48 +0400 Subject: [PATCH] dependencies on lang and platform are removed in ruby-psi --- .../controlflow/ConditionalInstruction.java | 2 +- .../codeInsight/controlflow/ControlFlow.java | 23 +++++++++++++++++++ .../codeInsight/controlflow/Instruction.java | 2 +- .../codeInsight/controlflow/ControlFlow.java | 8 ------- 4 files changed, 25 insertions(+), 10 deletions(-) rename platform/{lang-api => core-api}/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java (95%) create mode 100644 platform/core-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java rename platform/{lang-api => core-api}/src/com/intellij/codeInsight/controlflow/Instruction.java (95%) delete mode 100644 platform/lang-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java diff --git a/platform/lang-api/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java b/platform/core-api/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java similarity index 95% rename from platform/lang-api/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java rename to platform/core-api/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java index daea33cd1e9a..3bb44937de4a 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java +++ b/platform/core-api/src/com/intellij/codeInsight/controlflow/ConditionalInstruction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2010 JetBrains s.r.o. + * Copyright 2000-2014 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. diff --git a/platform/core-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java b/platform/core-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java new file mode 100644 index 000000000000..bf72d011c6ea --- /dev/null +++ b/platform/core-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java @@ -0,0 +1,23 @@ +/* + * Copyright 2000-2014 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 com.intellij.codeInsight.controlflow; + +/** + * @author oleg + */ +public interface ControlFlow { + Instruction[] getInstructions(); +} diff --git a/platform/lang-api/src/com/intellij/codeInsight/controlflow/Instruction.java b/platform/core-api/src/com/intellij/codeInsight/controlflow/Instruction.java similarity index 95% rename from platform/lang-api/src/com/intellij/codeInsight/controlflow/Instruction.java rename to platform/core-api/src/com/intellij/codeInsight/controlflow/Instruction.java index 26ecfcca2a5d..8b0dda01d226 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/controlflow/Instruction.java +++ b/platform/core-api/src/com/intellij/codeInsight/controlflow/Instruction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2010 JetBrains s.r.o. + * Copyright 2000-2014 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. diff --git a/platform/lang-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java b/platform/lang-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java deleted file mode 100644 index 99e7c2887d01..000000000000 --- a/platform/lang-api/src/com/intellij/codeInsight/controlflow/ControlFlow.java +++ /dev/null @@ -1,8 +0,0 @@ -package com.intellij.codeInsight.controlflow; - -/** - * @author oleg - */ -public interface ControlFlow { - Instruction[] getInstructions(); -}