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

Side by Side Diff: lib/compiler/implementation/js_backend/emitter.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of js_backend;
6
5 /** 7 /**
6 * A function element that represents a closure call. The signature is copied 8 * A function element that represents a closure call. The signature is copied
7 * from the given element. 9 * from the given element.
8 */ 10 */
9 class ClosureInvocationElement extends FunctionElement { 11 class ClosureInvocationElement extends FunctionElement {
10 ClosureInvocationElement(SourceString name, 12 ClosureInvocationElement(SourceString name,
11 FunctionElement other) 13 FunctionElement other)
12 : super.from(name, other, other.enclosingElement), 14 : super.from(name, other, other.enclosingElement),
13 methodElement = other; 15 methodElement = other;
14 16
(...skipping 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 const String HOOKS_API_USAGE = """ 1578 const String HOOKS_API_USAGE = """
1577 // Generated by dart2js, the Dart to JavaScript compiler. 1579 // Generated by dart2js, the Dart to JavaScript compiler.
1578 // The code supports the following hooks: 1580 // The code supports the following hooks:
1579 // dartPrint(message) - if this function is defined it is called 1581 // dartPrint(message) - if this function is defined it is called
1580 // instead of the Dart [print] method. 1582 // instead of the Dart [print] method.
1581 // dartMainRunner(main) - if this function is defined, the Dart [main] 1583 // dartMainRunner(main) - if this function is defined, the Dart [main]
1582 // method will not be invoked directly. 1584 // method will not be invoked directly.
1583 // Instead, a closure that will invoke [main] is 1585 // Instead, a closure that will invoke [main] is
1584 // passed to [dartMainRunner]. 1586 // passed to [dartMainRunner].
1585 """; 1587 """;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698