Scripting IDE for DSL awareness

compared with
Current by Peter Gromov
on May 01, 2012 16:50.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (4)

View Page History
contributor([contributorBody]) {
if (enclosingCall("contributor")) {
method name: "method", type: "void", params: [args: [:]] [
parameter(name:'name', type:String.name, doc:'Method name'),
parameter(name:'params', type:Map.name, doc:'A map representing method parameters'),
parameter(name:'namedParams', type:Object.name, doc:'''A list representing method named parameters.<br>
Its elements should be calls to <code>parameter</code> method.'''),
parameter(name:'type', type:Object.name, doc:'Return type name of the method'),
parameter(name:'doc', type:String.name, doc:'Method documentation text'),
]], doc:'Describe a DSL method'
method name: "property", type: "void", params: [args: [:]] [
parameter(name:'name', type:String.name, doc:'Property name'),
parameter(name:'type', type:Object.name, doc:'Property type name'),
parameter(name:'doc', type:String.name, doc:'Property documentation text'),
]], doc:'Describe a DSL property'
method name: "parameter", type: "Parameter", params: [args: [
parameter(name:'name', type:String.name, doc:'Parameter name'),
parameter(name:'type', type:Object.name, doc:'Parameter type name'),
parameter(name:'doc', type:String.name, doc:'Parameter documentation text'),
]], doc:'Describe a method named parameter'

method name: "add", type: "void", params: [member: "com.intellij.psi.PsiMember"]