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

Side by Side Diff: lib/runtime/dart_runtime.dart

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « lib/runtime/dart_logging_runtime.dart ('k') | lib/src/checker/checker.dart » ('j') | no next file with comments »
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 library ddc.runtime.dart_runtime; 5 library dev_compiler.runtime.dart_runtime;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:dev_compiler/config.dart'; 9 import 'package:dev_compiler/config.dart';
10 10
11 dynamic dload(dynamic obj, String field) { 11 dynamic dload(dynamic obj, String field) {
12 var symbol = new Symbol(field); 12 var symbol = new Symbol(field);
13 var mirror = reflect(obj); 13 var mirror = reflect(obj);
14 // TODO(vsm): Does this create an NSM? 14 // TODO(vsm): Does this create an NSM?
15 var fieldMirror = mirror.getField(symbol); 15 var fieldMirror = mirror.getField(symbol);
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 ret1 = call1.returnType; 315 ret1 = call1.returnType;
316 params1 = call1.parameters; 316 params1 = call1.parameters;
317 } 317 }
318 318
319 // Any type that implements a call method implicitly subtypes Function. 319 // Any type that implements a call method implicitly subtypes Function.
320 if (_reflects(c2, Function)) return true; 320 if (_reflects(c2, Function)) return true;
321 321
322 // Check structural function subtyping 322 // Check structural function subtyping
323 return _isFunctionSubType(ret1, params1, c2.returnType, c2.parameters); 323 return _isFunctionSubType(ret1, params1, c2.returnType, c2.parameters);
324 } 324 }
OLDNEW
« no previous file with comments | « lib/runtime/dart_logging_runtime.dart ('k') | lib/src/checker/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698