Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Issue 10690110: dart2dart support for instantiatin simple top-level class: (Closed)

Created:
8 years, 5 months ago by Roman
Modified:
8 years, 5 months ago
Reviewers:
Anton Muhin
CC:
reviews_dartlang.org
Visibility:
Public.

Description

dart2dart support for instantiatin simple top-level class: class A { } main() { new A(); } Committed: https://code.google.com/p/dart/source/detail?r=9506

Patch Set 1 #

Total comments: 24

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -1 line) Patch
M lib/compiler/implementation/dart_backend/backend.dart View 1 2 3 4 4 chunks +43 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/unparser_test.dart View 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Roman
8 years, 5 months ago (2012-07-10 08:57:33 UTC) #1
Anton Muhin
neat https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode17 lib/compiler/implementation/dart_backend/backend.dart:17: Map<ClassElement, List<Element>> resolvedClasses; resolvedClasses doesn't sound correct. That's ...
8 years, 5 months ago (2012-07-10 09:50:12 UTC) #2
Roman
https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode17 lib/compiler/implementation/dart_backend/backend.dart:17: Map<ClassElement, List<Element>> resolvedClasses; On 2012/07/10 09:50:12, antonmuhin wrote: > ...
8 years, 5 months ago (2012-07-10 10:45:15 UTC) #3
Anton Muhin
https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode17 lib/compiler/implementation/dart_backend/backend.dart:17: Map<ClassElement, List<Element>> resolvedClasses; I'd rather not see word resolved ...
8 years, 5 months ago (2012-07-10 11:31:40 UTC) #4
Roman
https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10690110/diff/1/lib/compiler/implementation/dart_backend/backend.dart#newcode63 lib/compiler/implementation/dart_backend/backend.dart:63: var enclosingClass = element.enclosingElement; On 2012/07/10 11:31:40, antonmuhin wrote: ...
8 years, 5 months ago (2012-07-10 11:53:40 UTC) #5
Anton Muhin
stv! https://chromiumcodereview.appspot.com/10690110/diff/1003/lib/compiler/implementation/dart_backend/backend.dart File lib/compiler/implementation/dart_backend/backend.dart (right): https://chromiumcodereview.appspot.com/10690110/diff/1003/lib/compiler/implementation/dart_backend/backend.dart#newcode91 lib/compiler/implementation/dart_backend/backend.dart:91: assert(enclosingClass.isTopLevel()); you may want to add an assert ...
8 years, 5 months ago (2012-07-10 12:07:29 UTC) #6
Roman
8 years, 5 months ago (2012-07-10 12:18:02 UTC) #7
https://chromiumcodereview.appspot.com/10690110/diff/1003/lib/compiler/implem...
File lib/compiler/implementation/dart_backend/backend.dart (right):

https://chromiumcodereview.appspot.com/10690110/diff/1003/lib/compiler/implem...
lib/compiler/implementation/dart_backend/backend.dart:91:
assert(enclosingClass.isTopLevel());
On 2012/07/10 12:07:29, antonmuhin wrote:
> you may want to add an assert that it's a class.

Done.

Powered by Google App Engine
This is Rietveld 408576698