IDEA-48931 Wrong warnings "'method' cannot be applied to 'Type' " for 'minus'...
authorMaxim Medvedev <maxim.medvedev@jetbrains.com>
Wed, 20 Oct 2010 07:21:44 +0000 (11:21 +0400)
committerMaxim Medvedev <maxim.medvedev@jetbrains.com>
Wed, 20 Oct 2010 07:21:44 +0000 (11:21 +0400)
plugins/groovy/resources/standardDsls/defaultArithmeticOperations.gdsl [new file with mode: 0644]

diff --git a/plugins/groovy/resources/standardDsls/defaultArithmeticOperations.gdsl b/plugins/groovy/resources/standardDsls/defaultArithmeticOperations.gdsl
new file mode 100644 (file)
index 0000000..1f31af2
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright 2000-2010 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 standardDsls
+
+/**
+ * @author Maxim.Medvedev
+ */
+
+final String NUMBER = "java.lang.Number"
+contributor(ctype:NUMBER) {
+  method name: "plus", type: NUMBER, params:[arg:NUMBER]
+  method name: "minus", type: NUMBER, params:[arg:NUMBER]
+  method name: "multiply", type: NUMBER, params:[arg:NUMBER]
+  method name: "power", type: NUMBER, params:[arg:NUMBER]
+  method name: "div", type: NUMBER, params:[arg:NUMBER]
+  method name: "mod", type: NUMBER, params:[arg:NUMBER]
+  method name: "or", type: NUMBER, params:[arg:NUMBER]
+  method name: "and", type: NUMBER, params:[arg:NUMBER]
+  method name: "xor", type: NUMBER, params:[arg:NUMBER]
+  method name: "next", type: psiType.canonicalText
+  method name: "previous", type: psiType.canonicalText
+  method name: "negative", type: psiType.canonicalText
+  method name: "positive", type: psiType.canonicalText
+}