Class ResolveCustomFunctionNodesForChunks<T>

    • Field Detail

      • DEF_PREFIX

        public static final java.lang.String DEF_PREFIX
        The prefix for definitions of calls with references
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResolveCustomFunctionNodesForChunks

        public ResolveCustomFunctionNodesForChunks​(MutatingVisitController visitController,
                                                   ErrorManager errorManager,
                                                   java.util.Map<java.lang.String,​GssFunction> functionMap,
                                                   boolean allowUnknownFunctions,
                                                   java.util.Set<java.lang.String> allowedNonStandardFunctions,
                                                   com.google.common.base.Function<T,​java.lang.String> nextUniqueSuffix)
        Constructs the pass.
        Parameters:
        visitController - the visit controller
        errorManager - the error manager
        functionMap - the map from function names to resolve to GSS functions
        allowUnknownFunctions - whether to allow unknown function calls, leaving them as is, instead of reporting an error
        nextUniqueSuffix - a function from a chunk to a globally unique suffix
    • Method Detail

      • getConstantDefinitions

        public java.util.Map<T,​ConstantDefinitions> getConstantDefinitions()
        Gets the constant definitions for the replaced calls with references. Chunks which have no such calls are not in the map.
        Returns:
        A map of constant definitions per chunk