November 15, 2015 [dmd-internals] [D-Programming-Language/dmd] 5156ac: Refactor: remove unnecessary check code in AliasTh... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 5156ac3ea23e44186a023f3cd476ee18456a55d6 https://github.com/D-Programming-Language/dmd/commit/5156ac3ea23e44186a023f3cd476ee18456a55d6 Author: k-hara <k.hara.pg@gmail.com> Date: 2015-11-16 (Mon, 16 Nov 2015) Changed paths: M src/aliasthis.d Log Message: ----------- Refactor: remove unnecessary check code in AliasThis.semantic It was a workaround code for the AST internal inconsistency which has caused by template instantiations. Now, it's not necessary anymore, because the problem is properly handled at the top of StructDeclaration.semantic. ```d if (type.ty == Tstruct && (cast(TypeStruct)type).sym != this) { TemplateInstance ti = (cast(TypeStruct)type).sym.isInstantiated(); if (ti && isError(ti)) (cast(TypeStruct)type).sym = this; } ``` Commit: a93b05615fe61a5e39f6e8b62b5cd268af4fd430 https://github.com/D-Programming-Language/dmd/commit/a93b05615fe61a5e39f6e8b62b5cd268af4fd430 Author: k-hara <k.hara.pg@gmail.com> Date: 2015-11-16 (Mon, 16 Nov 2015) Changed paths: M src/mtype.d Log Message: ----------- Refactor: Type.aliasthisOf Use more D style, reduce indent levels, and fewer number of lines. Commit: e538d60e2f678a306b8de8e5fd094fd00871a4a1 https://github.com/D-Programming-Language/dmd/commit/e538d60e2f678a306b8de8e5fd094fd00871a4a1 Author: David Nadlinger <code@klickverbot.at> Date: 2015-11-16 (Mon, 16 Nov 2015) Changed paths: M src/aliasthis.d M src/mtype.d Log Message: ----------- Merge pull request #5257 from 9rnsr/refactor_aliasthis Refactor around alias this handling code Compare: https://github.com/D-Programming-Language/dmd/compare/34cf3f836de2...e538d60e2f67 |
Copyright © 1999-2021 by the D Language Foundation