Changeset 13576


Ignore:
Timestamp:
Sep 23, 2019 3:00:41 PM (3 months ago)
Author:
molsson
Message:

#5843 Refactored prettyPrint for FDerivedType.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-mo-2275/Compiler/ModelicaFlatTree/src/jastadd/PrettyPrint.jrag

    r13527 r13576  
    13271327
    13281328    public void FDerivedType.prettyPrint(Printer p, CodeStream str, String indent) {
     1329        prettyPrintWithName(p, str, indent, getName());
     1330    }
     1331   
     1332    private void FDerivedType.prettyPrintWithName(Printer p, CodeStream str, String indent, String name) {
    13291333        if (!getBaseType().isEnum()) {
    1330             str.print(indent, "type ", getName(), " = ", getBaseType());
     1334            str.print(indent, "type ", name, " = ", getBaseType());
    13311335            getFAttributeList().prettyPrintFAttributeList(str, p);
    13321336            str.println(";");
Note: See TracChangeset for help on using the changeset viewer.