Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » How to fix warning on bidirectional reference
How to fix warning on bidirectional reference [message #1754042] Tue, 14 February 2017 06:24
chris yo is currently offline chris yoFriend
Messages: 146
Registered: February 2013
Senior Member
I have an xcore model using bidirectional cross-references.

This is my grammar:
	greetings+=(Greeting| Test)*;
	'Hello' sample=[Test] 'age' age=INT '!';
	'Bye' sName=ID '!' 'see' 'you' date=ID';'

My xcore looks like this:
class Model {
	contains EObject[] greetings

class Greeting {
	refers Test sample opposite greet
	int age

class Test {
        refers Greeting greet opposite sample
	String sName
	String date

But I am getting this warning "The feature sample is bidirectional reference. This may cause problems in the linking process." How can I fix this warning? I cannot modify the Test grammar to include a reference to greeting.
Previous Topic:After Migtation from xtext 2.10 to xtext 2.11. Cannot open text editor for my DSL
Next Topic:Modify error message from IResourceValidator
Goto Forum:

Current Time: Mon Mar 19 12:51:39 GMT 2018

Powered by FUDForum. Page generated in 0.01421 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software