Behavior generation error

Hi,

I have inequation statement in the inference method, but after generation some errors appears. I don't know how to correct them. Can anybody help me??? %)

  public static void call_checkDefaultSyntaxValues_2103069454645394557(SNode thisNode, final TypeCheckingContext typeCheckingContext, SNode defaultSyntax) {
    List<SNode> fieldSpecs = SLinkOperations.getTargets(thisNode, "fieldSpecs", true);
    List<SNode> fieldSettings = SLinkOperations.getTargets(defaultSyntax, "fieldSetting", true);

    for (SNode fieldSetting : ListSequence.fromList(fieldSettings)) {

//at if statement error (first error in the list): ASN\behavior\ObjectClassDefn_Behavior.java : Syntax error on token(s), misplaced construct(s) (line: 177)
      if (SNodeOperations.isInstanceOf(SLinkOperations.getTarget(fieldSetting, "setting", true), "ASN.structure.ValueSetting")) {

      ...

        {

          //here ':<=:' statement (more valuable mistake in my opinion)
          <!TextGen not found for 'jetbrains.mps.lang.smodel.structure.SNodeType'!> _nodeToCheck_1029348928467 = value;
          BaseIntentionProvider intentionProvider = null;
          typeCheckingContext.createLessThanInequation((SNode)type, (SNode)value, _nodeToCheck_1029348928467, type + " value expected", "r:c1f894d1-f3b9-4d18-a511-78be0ad50d06(ASN.behavior)", "6366208545133881824", false, 0, intentionProvider);
        }

Regards,

Oleg

1 comment
Comment actions Permalink

Oleg,

I've wrote some about "TextGen not found ..." error here http://www.jetbrains.net/devnet/thread/287161?tstart=0

As SNodeType is a concept from MPS package, I can tell exactly that generator for it is defined, and it is likely that the problem is in generator priorities.

So, you can try to find using "show generator partitioning" action, or post the non-working code here - in this case, I could find the problem.

Regards,

Mihail

0

Please sign in to leave a comment.