Interface TranslatorToCAst.WalkContext<C extends TranslatorToCAst.WalkContext<C,​T>,​T>

    • Method Detail

      • getScopedEntities

        Map<CAstNode,​Collection<CAstEntity>> getScopedEntities()
        get a mapping from CAstNodes to the scoped entities (e.g. functions or local classes) introduced by those nodes. Also maps null to those entities not corresponding to any node (e.g nested classes)
      • addScopedEntity

        void addScopedEntity​(CAstNode newNode,
                             CAstEntity visit)
        associate a child entity with a given CAstNode, e.g. for a function declaration
      • getContinueFor

        T getContinueFor​(String label)
        for a 'continue' style goto, return the control flow target
      • getBreakFor

        T getBreakFor​(String label)
        for a 'break' style goto, return the control flow target