dplassgit / d2lang

D2 is a strongly-typed, statically-typed, (mostly) inferred-type compiled language.
MIT License
6 stars 0 forks source link

Refactor duplicated record symbol code #353

Closed dplassgit closed 3 weeks ago

dplassgit commented 1 month ago

This is in at least 3 or maybe 4 places:

    VariableSymbol tempSymbol = temp.symbol();
    if (tempSymbol.varType().isRecord()) {
      RecordSymbol recordSymbol = tempSymbol.recordSymbol();
      if (recordSymbol != null) {
        symbol.setRecordSymbol(recordSymbol);
      }
    }