Search in sources :

Example 1 with PImportPackage

use of de.be4.classicalb.core.parser.node.PImportPackage in project probparsers by bendisposto.

the class ReferencedMachines method caseAPackageParseUnit.

@Override
public void caseAPackageParseUnit(APackageParseUnit node) {
    determineRootDirectory(node.getPackage(), node);
    List<PImportPackage> copy = new ArrayList<>(node.getImports());
    for (PImportPackage e : copy) {
        e.apply(this);
    }
    node.getParseUnit().apply(this);
    // delete this node
    node.replaceBy(node.getParseUnit());
}
Also used : PImportPackage(de.be4.classicalb.core.parser.node.PImportPackage) ArrayList(java.util.ArrayList)

Example 2 with PImportPackage

use of de.be4.classicalb.core.parser.node.PImportPackage in project probparsers by bendisposto.

the class RulesReferencesFinder method caseAPackageParseUnit.

@Override
public void caseAPackageParseUnit(APackageParseUnit node) {
    determineRootDirectory(node.getPackage(), node);
    List<PImportPackage> copy = new ArrayList<>(node.getImports());
    for (PImportPackage e : copy) {
        e.apply(this);
    }
    node.getParseUnit().apply(this);
    // delete this node
    node.replaceBy(node.getParseUnit());
}
Also used : PImportPackage(de.be4.classicalb.core.parser.node.PImportPackage) ArrayList(java.util.ArrayList)

Aggregations

PImportPackage (de.be4.classicalb.core.parser.node.PImportPackage)2 ArrayList (java.util.ArrayList)2