mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-15 08:18:55 +00:00
[#1231] implemented review feedback: handle only no assignments + transient here
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
This commit is contained in:
parent
6a25670bab
commit
86a14fcf4c
1 changed files with 3 additions and 1 deletions
|
@ -335,12 +335,14 @@ public class PartialSerializer {
|
|||
EStructuralFeature feature = change.getFeature();
|
||||
IFeatureInfo featureInfo = constraint.getFeatures()[owner.eClass().getFeatureID(feature)];
|
||||
List<IConstraintElement> assignments = featureInfo.getAssignments();
|
||||
if (assignments.size() != 1) {
|
||||
if (assignments.isEmpty()) {
|
||||
ValueTransient valueTransient = transientValues.isValueTransient(owner, feature);
|
||||
if (valueTransient == ValueTransient.YES) {
|
||||
return result;
|
||||
}
|
||||
return null;
|
||||
} else if (assignments.size() != 1) {
|
||||
return null;
|
||||
}
|
||||
boolean optional = assignments.get(0).isOptional();
|
||||
IAstRegion featureRegion = findRegion(ownerRegion, change);
|
||||
|
|
Loading…
Reference in a new issue