diff --git a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionNotAllowedAnnotationTest.java b/litho-intellij-plugin/testdata/completion/EventClassNameCompletionNotAllowedAnnotationTest.java deleted file mode 100644 index 6d1a4d59a3..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionNotAllowedAnnotationTest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventClassNameCompletionSpec { - - class SomeNotEvent {} - - @com.facebook.litho.annotations.OnUpdateState() - static boolean onUpdateState() {} -} - diff --git a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionNotAllowedClass.java b/litho-intellij-plugin/testdata/completion/EventClassNameCompletionNotAllowedClass.java deleted file mode 100644 index 1fbede0e24..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionNotAllowedClass.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventClassNameCompletionSpec { - - class SomeNotEvent {} - - @com.facebook.litho.annotations.OnEvent(Som) - static boolean onClickEvent() {} -} - diff --git a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionOnEventTest.java b/litho-intellij-plugin/testdata/completion/EventClassNameCompletionOnEventTest.java deleted file mode 100644 index 1732f51f71..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionOnEventTest.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventClassNameCompletionSpec { - - @com.facebook.litho.annotations.Event - class ClickEvent {} - - @com.facebook.litho.annotations.OnEvent(Cli) - static boolean onClickEvent() {} -} - diff --git a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionOnTriggerTest.java b/litho-intellij-plugin/testdata/completion/EventClassNameCompletionOnTriggerTest.java deleted file mode 100644 index abcb42e02b..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionOnTriggerTest.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventClassNameCompletionSpec { - - @com.facebook.litho.annotations.Event - class ClickEvent {} - - @com.facebook.litho.annotations.OnTrigger(Cli) - static boolean onTriggerEvent() {} -} - diff --git a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionReturnVoidMethodTest.java b/litho-intellij-plugin/testdata/completion/EventClassNameCompletionReturnVoidMethodTest.java deleted file mode 100644 index 30179a2fc5..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventClassNameCompletionReturnVoidMethodTest.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventClassNameCompletionSpec { - - class SomeNotEvent {} - - @com.facebook.litho.annotations.OnEvent(Som) - static void onClickEvent() {} -} diff --git a/litho-intellij-plugin/testdata/completion/EventHandlerCompletionContributorTest.java b/litho-intellij-plugin/testdata/completion/EventHandlerCompletionContributorTest.java deleted file mode 100644 index dde66011d3..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventHandlerCompletionContributorTest.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventHandlerAnnotatorSpec { - - static void methodName(ComponentContext c) { - Component.create(c).testEventHandler(han); - } - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void handler1() {} - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void handlerTwo() {} - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void thirdHandler() {} - - static class Component { - - static Component create(ComponentContext c) { - return new Component(); - } - - void testEventHandler(com.facebook.litho.EventHandler e) {} - - void otherEventHandler(com.facebook.litho.EventHandler e) {} - } -} diff --git a/litho-intellij-plugin/testdata/completion/EventHandlerCompletionContributorTest2.java b/litho-intellij-plugin/testdata/completion/EventHandlerCompletionContributorTest2.java deleted file mode 100644 index cc2e660b9e..0000000000 --- a/litho-intellij-plugin/testdata/completion/EventHandlerCompletionContributorTest2.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class EventHandlerAnnotatorSpec { - - static void methodName(ComponentContext c) { - Component.create(c).testEventHandler(tes); - } - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void handler1() {} - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void handlerTwo() {} - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void thirdHandler() {} - - static class Component { - - static Component create(ComponentContext c) { - return new Component(); - } - - void testEventHandler(com.facebook.litho.EventHandler e) {} - - void otherEventHandler(com.facebook.litho.EventHandler e) {} - } -} diff --git a/litho-intellij-plugin/testdata/completion/FromParameterProviderFromEventTest.java b/litho-intellij-plugin/testdata/completion/FromParameterProviderFromEventTest.java deleted file mode 100644 index adf53cd46f..0000000000 --- a/litho-intellij-plugin/testdata/completion/FromParameterProviderFromEventTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class FromParameterProviderSpec { - - @com.facebook.litho.annotations.Event - class ClickEvent { - boolean someValue; - } - - @com.facebook.litho.annotations.OnEvent(ClickEvent.class) - static boolean onClickEvent(@s) {} -} - diff --git a/litho-intellij-plugin/testdata/completion/FromParameterProviderFromTriggerTest.java b/litho-intellij-plugin/testdata/completion/FromParameterProviderFromTriggerTest.java deleted file mode 100644 index f5ce1bbc6f..0000000000 --- a/litho-intellij-plugin/testdata/completion/FromParameterProviderFromTriggerTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class FromParameterProviderSpec { - - @com.facebook.litho.annotations.Event - class ClickEvent { - boolean someValue; - } - - @com.facebook.litho.annotations.OnTrigger(ClickEvent.class) - static boolean onTriggerEvent(@s) {} -} - diff --git a/litho-intellij-plugin/testdata/completion/FromParameterProviderNotAllowedAnnotationTest.java b/litho-intellij-plugin/testdata/completion/FromParameterProviderNotAllowedAnnotationTest.java deleted file mode 100644 index f9b5b19ae4..0000000000 --- a/litho-intellij-plugin/testdata/completion/FromParameterProviderNotAllowedAnnotationTest.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class FromParameterProviderSpec { - - @com.facebook.litho.annotations.Event - class ClickEvent { - boolean someValue; - } - - @com.facebook.litho.annotations.OnUpdateState(ClickEvent.class) - static boolean onClickEvent(@s) {} -} - diff --git a/litho-intellij-plugin/testdata/completion/KcomponentTestFunction.kt b/litho-intellij-plugin/testdata/completion/KcomponentTestFunction.kt deleted file mode 100644 index 90a6e3eb20..0000000000 --- a/litho-intellij-plugin/testdata/completion/KcomponentTestFunction.kt +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -class Selectable(val text: String, val selected: Boolean, val onClick: (ClickEvent) -> Unit) : - KComponent() { - - override fun ComponentScope.render(): Component? { - return Row( - justifyContent = YogaJustify.SPACE_BETWEEN, - style = Style.padding(horizontal = 20.dp, vertical = 10.dp).onClick(action = onClick)) { - child(Text(text)) - child( - Image( - drawableRes( - if (selected) android.R.drawable.checkbox_on_background - else android.R.drawable.checkbox_off_background))) - } - } -} diff --git a/litho-intellij-plugin/testdata/completion/LayoutSpec.java b/litho-intellij-plugin/testdata/completion/LayoutSpec.java deleted file mode 100644 index e615370843..0000000000 --- a/litho-intellij-plugin/testdata/completion/LayoutSpec.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class LayoutSpec { - void method1() {} -} diff --git a/litho-intellij-plugin/testdata/completion/LayoutSpecAnnotationsContributorSpec.java b/litho-intellij-plugin/testdata/completion/LayoutSpecAnnotationsContributorSpec.java deleted file mode 100644 index fde7067171..0000000000 --- a/litho-intellij-plugin/testdata/completion/LayoutSpecAnnotationsContributorSpec.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class LayoutSpecAnnotationsContributorSpecSpec { - - @ -} diff --git a/litho-intellij-plugin/testdata/completion/LayoutSpecMethodParameterAnnotationsContributorSpec.java b/litho-intellij-plugin/testdata/completion/LayoutSpecMethodParameterAnnotationsContributorSpec.java deleted file mode 100644 index 35fce58ec0..0000000000 --- a/litho-intellij-plugin/testdata/completion/LayoutSpecMethodParameterAnnotationsContributorSpec.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class LayoutSpecMethodParameterAnnotationsContributorSpec { - - @com.facebook.litho.annotations.OnCreateLayout - static Component onCreateLayout(ComponentContext c, @) {} -} diff --git a/litho-intellij-plugin/testdata/completion/MethodGenerateHandlerOnUpdateStateTest.java b/litho-intellij-plugin/testdata/completion/MethodGenerateHandlerOnUpdateStateTest.java deleted file mode 100644 index 747e198073..0000000000 --- a/litho-intellij-plugin/testdata/completion/MethodGenerateHandlerOnUpdateStateTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class MethodGenerateHandlerMethodGenerateSpec { - - @com.facebook.litho.annotations.OnCreateLayout - static com.facebook.litho.Component onCreateLayout(@com.facebook.litho.annotations.State boolean someState) { - /* TODO: Use `File -> New -> Litho Component` menu */ - return com.facebook.litho.Column.create(); - } - - static class Dummy { - - } -} - - diff --git a/litho-intellij-plugin/testdata/completion/MountSpecAnnotationsContributorSpec.java b/litho-intellij-plugin/testdata/completion/MountSpecAnnotationsContributorSpec.java deleted file mode 100644 index 3e71d53a67..0000000000 --- a/litho-intellij-plugin/testdata/completion/MountSpecAnnotationsContributorSpec.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.MountSpec -class MountSpecAnnotationsContributorSpec { - - @ -} diff --git a/litho-intellij-plugin/testdata/completion/NotLayoutSpecAnnotationsContributor.java b/litho-intellij-plugin/testdata/completion/NotLayoutSpecAnnotationsContributor.java deleted file mode 100644 index 4359cda205..0000000000 --- a/litho-intellij-plugin/testdata/completion/NotLayoutSpecAnnotationsContributor.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -class NotLayoutSpecAnnotationsContributor { - - @ - - void onCreate() {} -} diff --git a/litho-intellij-plugin/testdata/completion/NotLayoutSpecMethodParameterAnnotationsContributorSpec.java b/litho-intellij-plugin/testdata/completion/NotLayoutSpecMethodParameterAnnotationsContributorSpec.java deleted file mode 100644 index ea7cb4e0ed..0000000000 --- a/litho-intellij-plugin/testdata/completion/NotLayoutSpecMethodParameterAnnotationsContributorSpec.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -class LayoutSpecMethodParameterAnnotationsContributorSpec { - - static Component onCreateLayout(ComponentContext c, @) {} -} diff --git a/litho-intellij-plugin/testdata/completion/NotMountSpecAnnotationsContributor.java b/litho-intellij-plugin/testdata/completion/NotMountSpecAnnotationsContributor.java deleted file mode 100644 index 4be3263360..0000000000 --- a/litho-intellij-plugin/testdata/completion/NotMountSpecAnnotationsContributor.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -class NotMountSpecAnnotationsContributor { - - @ - - void onCreate() {} -} diff --git a/litho-intellij-plugin/testdata/completion/NotSpecCompletion.java b/litho-intellij-plugin/testdata/completion/NotSpecCompletion.java deleted file mode 100644 index 91a49e0ab4..0000000000 --- a/litho-intellij-plugin/testdata/completion/NotSpecCompletion.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.AnyAnnotation -public class NotSpecCompletion { - public static void one(@com.facebook.litho.annotations.Prop iany prop, - @com.facebook.litho.annotations.State irandom state) { - } - - private void two(@com.facebook.litho.annotations.State i) { - } -} diff --git a/litho-intellij-plugin/testdata/completion/OnClickEventAboveMethodCompletionSpec.java b/litho-intellij-plugin/testdata/completion/OnClickEventAboveMethodCompletionSpec.java deleted file mode 100644 index 5092c9a805..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnClickEventAboveMethodCompletionSpec.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.MountSpec -public class OnClickEventAboveMethodCompletionSpec { - - @OnC - - @AnyPresentAnnotation - void belowMethod() {} -} diff --git a/litho-intellij-plugin/testdata/completion/OnClickEventNotLithoCompletionTest.java b/litho-intellij-plugin/testdata/completion/OnClickEventNotLithoCompletionTest.java deleted file mode 100644 index 5a8c722e85..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnClickEventNotLithoCompletionTest.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -public class OnClickEventCompletionTest { - - public @interface OnEventI { - } - - @OnC -} diff --git a/litho-intellij-plugin/testdata/completion/OnEventGenerateActionTest.java b/litho-intellij-plugin/testdata/completion/OnEventGenerateActionTest.java deleted file mode 100644 index 7b92139724..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnEventGenerateActionTest.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.Event() -public class TestEvent {} - -public class TestClass {} diff --git a/litho-intellij-plugin/testdata/completion/OnEventGenerateUtilsTest.java b/litho-intellij-plugin/testdata/completion/OnEventGenerateUtilsTest.java deleted file mode 100644 index 53fa125777..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnEventGenerateUtilsTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.Event -public class TestEvent {} - -@com.facebook.litho.annotations.Event(returnType = boolean.class) -public class TestEventWithReturnTypeAndParam { - public int number; -} - -public class TestClassWithoutOnEventMethod {} - -public class TestClassWithOnEventMethod { - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void onTestEvent(com.facebook.litho.ComponentContext c) {} -} - -public class TestClassWithCustomOnEventMethod { - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void customMethodName(com.facebook.litho.ComponentContext c) {} -} - -public class TestClassWithMultipleOnEventMethods { - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void onTestEvent(com.facebook.litho.ComponentContext c) {} - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void onTestEvent1(com.facebook.litho.ComponentContext c) {} - - @com.facebook.litho.annotations.OnEvent(TestEvent.class) - static void onTestEvent3(com.facebook.litho.ComponentContext c) {} -} diff --git a/litho-intellij-plugin/testdata/completion/OnTriggerAboveMethodCompletionSpec.java b/litho-intellij-plugin/testdata/completion/OnTriggerAboveMethodCompletionSpec.java deleted file mode 100644 index 392581f090..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnTriggerAboveMethodCompletionSpec.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.MountSpec -public class OnTriggerAboveMethodCompletionSpec { - - @OnTr - - @AnyPresentAnnotation - void belowMethod() {} -} diff --git a/litho-intellij-plugin/testdata/completion/OnTriggerCompletionSpec.java b/litho-intellij-plugin/testdata/completion/OnTriggerCompletionSpec.java deleted file mode 100644 index 38a8591206..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnTriggerCompletionSpec.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -public class OnTriggerCompletionSpec { - - public @interface OnTriggerI { - } - - @OnTr -} diff --git a/litho-intellij-plugin/testdata/completion/OnTriggerNotLithoCompletionTest.java b/litho-intellij-plugin/testdata/completion/OnTriggerNotLithoCompletionTest.java deleted file mode 100644 index 1e199308dd..0000000000 --- a/litho-intellij-plugin/testdata/completion/OnTriggerNotLithoCompletionTest.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -public class OnTriggerCompletionTest { - - public @interface OnTriggerI { - } - - @OnTr -} diff --git a/litho-intellij-plugin/testdata/completion/One.java b/litho-intellij-plugin/testdata/completion/One.java deleted file mode 100644 index 5c7901e2e7..0000000000 --- a/litho-intellij-plugin/testdata/completion/One.java +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -class One {} diff --git a/litho-intellij-plugin/testdata/completion/ParamCompletionNotAllowedMethodTest.java b/litho-intellij-plugin/testdata/completion/ParamCompletionNotAllowedMethodTest.java deleted file mode 100644 index ef030b108c..0000000000 --- a/litho-intellij-plugin/testdata/completion/ParamCompletionNotAllowedMethodTest.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class ParamCompletionSpec { - @com.facebook.litho.annotations.OnCreateInitialState - static void onCreateInitialState(@) {} -} diff --git a/litho-intellij-plugin/testdata/completion/ParamCompletionOnUpdateStateTest.java b/litho-intellij-plugin/testdata/completion/ParamCompletionOnUpdateStateTest.java deleted file mode 100644 index d1eefc138e..0000000000 --- a/litho-intellij-plugin/testdata/completion/ParamCompletionOnUpdateStateTest.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class ParamCompletionSpec { - @com.facebook.litho.annotations.OnUpdateState - static void onTestEvent(@) {} -} diff --git a/litho-intellij-plugin/testdata/completion/ParamCompletionOnUpdateStateWithTransitionTest.java b/litho-intellij-plugin/testdata/completion/ParamCompletionOnUpdateStateWithTransitionTest.java deleted file mode 100644 index a92b054795..0000000000 --- a/litho-intellij-plugin/testdata/completion/ParamCompletionOnUpdateStateWithTransitionTest.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -class ParamCompletionSpec { - @com.facebook.litho.annotations.OnUpdateStateWithTransition - static void onTestEvent(@) {} -} diff --git a/litho-intellij-plugin/testdata/completion/PropCompletionSpec.java b/litho-intellij-plugin/testdata/completion/PropCompletionSpec.java deleted file mode 100644 index 8879fa16d2..0000000000 --- a/litho-intellij-plugin/testdata/completion/PropCompletionSpec.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.LayoutSpec -public class PropCompletionSpec { - public static void one(@com.facebook.litho.annotations.Prop iany prop, - @com.facebook.litho.annotations.State irandom state) { - } - - private void two(@com.facebook.litho.annotations.Prop i) { - } -} diff --git a/litho-intellij-plugin/testdata/completion/StateCompletionSpec.java b/litho-intellij-plugin/testdata/completion/StateCompletionSpec.java deleted file mode 100644 index 0e27927bc4..0000000000 --- a/litho-intellij-plugin/testdata/completion/StateCompletionSpec.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * 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. - */ - -@com.facebook.litho.annotations.MountSpec -public class StateCompletionSpec { - public static void one(@com.facebook.litho.annotations.Prop iany prop, - @com.facebook.litho.annotations.State irandom state) { - } - - private void two(@com.facebook.litho.annotations.State i) { - } -}