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

Side by Side Diff: lib/runtime/dart/_classes.js

Issue 1580413002: Add a `@JSExportName` annotation for internal use in the runtime (use it to export dart.assert inst… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Moved js exported name resolution down to _maybeQualifiedName (Renamed to _emitTopLevelName) Created 4 years, 11 months 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
« no previous file with comments | « no previous file | lib/runtime/dart/_foreign_helper.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /* This library defines the operations that define and manipulate Dart 5 /* This library defines the operations that define and manipulate Dart
6 * classes. Included in this are: 6 * classes. Included in this are:
7 * - Generics 7 * - Generics
8 * - Class metadata 8 * - Class metadata
9 * - Extension methods 9 * - Extension methods
10 */ 10 */
11 11
12 // TODO(leafp): Consider splitting some of this out. 12 // TODO(leafp): Consider splitting some of this out.
13 dart_library.library('dart/_classes', null, /* Imports */[ 13 dart_library.library('dart/_classes', null, /* Imports */[
14 ], /* Lazy Imports */[ 14 ], /* Lazy Imports */[
15 'dart/_utils', 15 'dart/_utils',
16 'dart/core', 16 'dart/core',
17 'dart/_interceptors', 17 'dart/_interceptors',
18 'dart/_types', 18 'dart/_types',
19 'dart/_rtti', 19 'dart/_rtti',
20 ], function(exports, dart_utils, core, _interceptors, types, rtti) { 20 ], function(exports, dart_utils, core, _interceptors, types, rtti) {
21 'use strict'; 21 'use strict';
22 22
23 const assert = dart_utils.assert_; 23 const assert = dart_utils.assert;
24 const copyProperties = dart_utils.copyProperties; 24 const copyProperties = dart_utils.copyProperties;
25 const copyTheseProperties = dart_utils.copyTheseProperties; 25 const copyTheseProperties = dart_utils.copyTheseProperties;
26 const defineMemoizedGetter = dart_utils.defineMemoizedGetter; 26 const defineMemoizedGetter = dart_utils.defineMemoizedGetter;
27 const safeGetOwnProperty = dart_utils.safeGetOwnProperty; 27 const safeGetOwnProperty = dart_utils.safeGetOwnProperty;
28 const throwInternalError = dart_utils.throwInternalError; 28 const throwInternalError = dart_utils.throwInternalError;
29 29
30 const defineProperty = Object.defineProperty; 30 const defineProperty = Object.defineProperty;
31 const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; 31 const getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
32 const getOwnPropertySymbols = Object.getOwnPropertySymbols; 32 const getOwnPropertySymbols = Object.getOwnPropertySymbols;
33 33
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 } 410 }
411 exports.list = list; 411 exports.list = list;
412 412
413 function setBaseClass(derived, base) { 413 function setBaseClass(derived, base) {
414 // Link the extension to the type it's extending as a base class. 414 // Link the extension to the type it's extending as a base class.
415 derived.prototype.__proto__ = base.prototype; 415 derived.prototype.__proto__ = base.prototype;
416 } 416 }
417 exports.setBaseClass = setBaseClass; 417 exports.setBaseClass = setBaseClass;
418 418
419 }); 419 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/_foreign_helper.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698