Changeset 3410


Ignore:
Timestamp:
Feb 14, 2008, 12:48:15 AM (13 years ago)
Author:
yura
Message:
  • Highliting improvement.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel-tools/trunk/eclipse/org.refal.plus.rfpdt/src/org/refal/plus/rfpdt/comp/NameChecker.java

    r3334 r3410  
    206206            return;
    207207        AstFuncDecl astFuncDecl = (AstFuncDecl) astDecl;
     208        astFuncDef.funcDecl = astFuncDecl;
    208209        if (astFuncDecl.funcDef != null)
    209210            msgHandler.send(astName.pos, MsgCode.DuplicateDefinitionOfTheFunction_X, astName.identifier);
    210         else {
     211        else
    211212            astFuncDecl.funcDef = astFuncDef;
    212             astFuncDef.funcDecl = astFuncDecl;
    213         }
    214213    }
    215214
     
    235234                return;
    236235            AstFuncDecl astFuncDecl = (AstFuncDecl) astDecl;
     236            astNative.funcDecl = astFuncDecl;
    237237            if (astFuncDecl.funcDef != null)
    238238                msgHandler.send(astName.pos, MsgCode.DuplicateDefinitionOfTheFunction_X, astName.identifier);
    239             else {
     239            else
    240240                astFuncDecl.funcDef = astNative;
    241                 astNative.funcDecl = astFuncDecl;
    242             }
    243241        } else if (astNative.right.identifier.matches("[A-Za-z_]+\\w*")) {
    244242            astNative.isNameAtLeft = false;
Note: See TracChangeset for help on using the changeset viewer.