• Resolves the importer! macro inside a publicode file if any.

    Parameters

    • filePath: string

      The path of the publicode file.

    • rules: RawRules

      The rules of the publicode file.

    • verbose: boolean = false

      If true, logs the imported packages.

    Returns {
        completeRules: RawRules;
        neededNamespaces: Set<string>;
    }

    The rules of the publicode file with the imported rules.

    • completeRules: RawRules
    • neededNamespaces: Set<string>

    Throws

    If the rule to import does not exist.

    Throws

    If there is double definition of a rule.

    Throws

    If the imported rule's publicode raw node "nom" attribute is different from the resolveImport script ruleName.

Generated using TypeDoc