Class PreferShortAssertionsProblemSemanticSequencer

java.lang.Object
org.eclipse.xtext.serializer.sequencer.AbstractSemanticSequencer
org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer
tools.refinery.language.serializer.ProblemSemanticSequencer
tools.refinery.language.serializer.PreferShortAssertionsProblemSemanticSequencer
All Implemented Interfaces:
org.eclipse.xtext.serializer.sequencer.ISemanticSequencer

public class PreferShortAssertionsProblemSemanticSequencer extends ProblemSemanticSequencer
  • Constructor Details

    • PreferShortAssertionsProblemSemanticSequencer

      public PreferShortAssertionsProblemSemanticSequencer()
  • Method Details

    • sequence_Assertion

      protected void sequence_Assertion(org.eclipse.xtext.serializer.ISerializationContext context, Assertion semanticObject)
      Description copied from class: ProblemSemanticSequencer
       Contexts:
           Statement returns Assertion
           Assertion returns Assertion
      
       Constraint:
           (
               default?='default'? 
               (
                   (relation=[Relation|QualifiedName] (arguments+=AssertionArgument arguments+=AssertionArgument*)? value=Expr) | 
                   (value=ShortLogicConstant relation=[Relation|QualifiedName] (arguments+=AssertionArgument arguments+=AssertionArgument*)?)
               )
           )
       
      Overrides:
      sequence_Assertion in class ProblemSemanticSequencer