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

Side by Side Diff: pkg/compiler/lib/src/elements/common.dart

Issue 1284593003: Remove dart2jslib.dart (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/elements/elements.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 /// Mixins that implement convenience methods on [Element] subclasses. 5 /// Mixins that implement convenience methods on [Element] subclasses.
6 6
7 library elements.common; 7 library elements.common;
8 8
9 import '../dart2jslib.dart' show Compiler, isPrivateName; 9 import '../compiler.dart' show
10 import '../dart_types.dart' show DartType, InterfaceType, FunctionType; 10 Compiler,
11 import '../util/util.dart' show Link; 11 isPrivateName;
12 import '../dart_types.dart' show
13 DartType,
14 InterfaceType,
15 FunctionType;
16 import '../util/util.dart' show
17 Link;
12 18
13 import 'elements.dart'; 19 import 'elements.dart';
14 20
15 abstract class ElementCommon implements Element { 21 abstract class ElementCommon implements Element {
16 @override 22 @override
17 bool get isLibrary => kind == ElementKind.LIBRARY; 23 bool get isLibrary => kind == ElementKind.LIBRARY;
18 24
19 @override 25 @override
20 bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; 26 bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT;
21 27
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // this signature must not have more required parameters. Having more 491 // this signature must not have more required parameters. Having more
486 // optional parameters is not a problem, they simply are never provided 492 // optional parameters is not a problem, they simply are never provided
487 // by call sites of a call to a method with the other signature. 493 // by call sites of a call to a method with the other signature.
488 int otherTotalCount = signature.parameterCount; 494 int otherTotalCount = signature.parameterCount;
489 return requiredParameterCount <= otherTotalCount 495 return requiredParameterCount <= otherTotalCount
490 && parameterCount >= otherTotalCount; 496 && parameterCount >= otherTotalCount;
491 } 497 }
492 return true; 498 return true;
493 } 499 }
494 } 500 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dump_info.dart ('k') | pkg/compiler/lib/src/elements/elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698