|
|
Re: Cyclic resolution of lazy links [message #1064588 is a reply to message #1064505] |
Thu, 20 June 2013 06:53 |
junior developer Messages: 354 Registered: January 2013 |
Senior Member |
|
|
Hi Sven,
My grammar is below :I used my util class
in addition I receive same error for scoping one element in the referencing element one DSL to onother DSL project project
My scop customization :
def IScope scope_ViewField_field(Function context, EReference reference) {
Function context1 =(Function) context.eContainer();
println("xxxxx"+context.ownedView );
val EList<View> list = (context.ownedView)
for (i : 0 ..< list.size) {
val element = list.get(i)
val ArrayList<Field> possiblefieldview = ViewUtil::possibleFieldForViewField(element)
return Scopes::scopeFor( possiblefieldview,qnp, IScope::NULLSCOPE)
}
Context returns Context:
'context'
name=QualifiedName
'{'
app=Application
'}';
ContextUnit returns ContentextUnit:
Context | Application | Collection | Method | Function | Type | Field ;
Application returns WebApplication:
'Application'
name=QualifiedName
'{'
collection+=Collection (collection+=Collection)*
'}';
Collection returns Collection:
'Collection'
name=QualifiedName
'{'
ownmethod=Method
'}';
Method returns Method:
'method'
name=QualifiedName
'{'
(list+=Function (list+=Function)*)?
(ownmethod+=Method (ownmethod+=Method)*)?
'}';
Function returns Function:
'function'
name=QualifiedName
'{'
(type+=Type (type+=Type)*)?
(ownedView+=View (ownedView+=View)*)?
'}';
View returns View:
'View'
name=QualifiedName
'{'
'type' '=' type= STRING
('fields' '=' ownedViewField+=ViewField (','ownedViewField+=ViewField)*)?
'}';
ViewField returns ViewField:
(field= [Field|QualifiedName]);
Type returns Type:
'type'
name=QualifiedName
'{'
('parent' '=' parentType=[Type|QualifiedName])?
'fields' '{'
(ownedField+=Field (ownedField+=Field)*)?
'}'
'}';
Field returns Field:
LookUp| TextField ;
LookUp returns LookUp:
'LookUp'
name=QualifiedName
'{'
('type' '=' type=[Type|QualifiedName])
('showField' '=' showField =[Field|QualifiedName])
'}';
TextField returns TextField:
'Text' name=QualifiedName '{'
'displayName' '=' displayName=STRING
'property''=' property=STRING
'}';
QualifiedName :
ID('.'ID)*
;
Best Regards
[Updated on: Thu, 20 June 2013 06:58] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.02914 seconds