Changeset 3787 for devel-tools/trunk


Ignore:
Timestamp:
May 29, 2008, 3:09:30 PM (12 years ago)
Author:
orlov
Message:
  • Check first all declarations and then function definitions.
  • Check new-built AST once (not twice) for syntax and occurences highlighting.
  • Test for $iter.
Location:
devel-tools/trunk/eclipse
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.rfpdt.core/src/org/refal/rfpdt/compiler/ExprChecker.java

    r3619 r3787  
    197197            astUse.accept(this);
    198198        for (AstTopNode astTopNode : astImplem.topNodeList)
    199             astTopNode.accept(this);
     199            if (!(astTopNode instanceof AstFuncDef))
     200                astTopNode.accept(this);
     201        for (AstTopNode astTopNode : astImplem.topNodeList)
     202            if (astTopNode instanceof AstFuncDef)
     203                astTopNode.accept(this);
    200204    }
    201205
  • devel-tools/trunk/eclipse/org.refal.rfpdt.test/src/org/refal/rfpdt/test/comp/FormatCheckerTest.java

    r3621 r3787  
    8383        expectMessage("$func F A = B; F { { { B; }; A; } = B; };", MsgCode.WrongFormatOfPatternExpression);
    8484        expectMessage("$func F A = B; F { { { A = A; }; A = B; }; };", MsgCode.WrongFormatOfFunctionResult);
     85       
     86        expectMessage("$func F =; F ,A $iter /*empty*/ :: sX;", MsgCode.FormatMismatch);
    8587    }
    8688
  • devel-tools/trunk/eclipse/org.refal.rfpdt.ui/src/org/refal/rfpdt/editor/RfpReconcilingStrategy.java

    r3566 r3787  
    3232    }
    3333
    34     public AstImplem getAstImplem () {
     34    public synchronized AstImplem getAstImplem () {
    3535        if (!isRelevant)
    3636            updateAstImplem();
     
    3939
    4040    public void reconcile (IRegion partition) {
    41         updateAstImplem();
     41        getAstImplem();
    4242        if (astImplem != null)
    4343            editor.changeTextPresentation(document, PresentationVisitor.updateTextPresentation(astImplem));
Note: See TracChangeset for help on using the changeset viewer.