[dmd-internals] [D-Programming-Language/dmd] 6164bb: [Refactoring] Remove unnecessary isVarDeclaration(...

GitHub noreply at github.com
Mon Dec 9 21:48:45 PST 2013


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 6164bbd2cfa1fb55de910a456f0d71e95653deaf
      https://github.com/D-Programming-Language/dmd/commit/6164bbd2cfa1fb55de910a456f0d71e95653deaf
  Author: k-hara <k.hara.pg at gmail.com>
  Date:   2013-12-09 (Mon, 09 Dec 2013)

  Changed paths:
    M src/argtypes.c
    M src/cast.c
    M src/class.c
    M src/clone.c
    M src/constfold.c
    M src/ctfeexpr.c
    M src/declaration.c
    M src/e2ir.c
    M src/expression.c
    M src/func.c
    M src/interpret.c
    M src/mtype.c
    M src/struct.c
    M src/toctype.c

  Log Message:
  -----------
  [Refactoring] Remove unnecessary isVarDeclaration() call

`AggregateDeclaration::fields` is typed as an array of `VarDeclaration`. Therefore, assignment its elements to `Dsymbol *` + invocation of `isVarDeclaration` are merely redundant operations.


  Commit: fca23a5f159bbc69db80359228d5f0cf511e7fcb
      https://github.com/D-Programming-Language/dmd/commit/fca23a5f159bbc69db80359228d5f0cf511e7fcb
  Author: Hara Kenji <k.hara.pg+dev at gmail.com>
  Date:   2013-12-09 (Mon, 09 Dec 2013)

  Changed paths:
    M src/argtypes.c
    M src/cast.c
    M src/class.c
    M src/clone.c
    M src/constfold.c
    M src/ctfeexpr.c
    M src/declaration.c
    M src/e2ir.c
    M src/expression.c
    M src/func.c
    M src/interpret.c
    M src/mtype.c
    M src/struct.c
    M src/toctype.c

  Log Message:
  -----------
  Merge pull request #2941 from 9rnsr/refactor_fields

[Refactoring] Remove unnecessary isVarDeclaration() call


Compare: https://github.com/D-Programming-Language/dmd/compare/30ff96df26f7...fca23a5f159b


More information about the dmd-internals mailing list