| OLD | NEW |
| 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 '../common/names.dart' show Identifiers, Names, Uris; | 9 import '../common/names.dart' show Identifiers, Names, Uris; |
| 10 import '../core_types.dart' show CoreClasses; | 10 import '../core_types.dart' show CoreClasses; |
| 11 import '../dart_types.dart' show DartType, InterfaceType, FunctionType; | 11 import '../dart_types.dart' show DartType, InterfaceType, FunctionType; |
| 12 import '../util/util.dart' show Link; | 12 import '../util/util.dart' show Link; |
| 13 | |
| 14 import 'elements.dart'; | 13 import 'elements.dart'; |
| 15 | 14 |
| 16 abstract class ElementCommon implements Element { | 15 abstract class ElementCommon implements Element { |
| 17 @override | 16 @override |
| 18 bool get isLibrary => kind == ElementKind.LIBRARY; | 17 bool get isLibrary => kind == ElementKind.LIBRARY; |
| 19 | 18 |
| 20 @override | 19 @override |
| 21 bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; | 20 bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; |
| 22 | 21 |
| 23 @override | 22 @override |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 @override | 645 @override |
| 647 bool get isBoolFromEnvironmentConstructor { | 646 bool get isBoolFromEnvironmentConstructor { |
| 648 return fromEnvironmentState == _FromEnvironmentState.BOOL; | 647 return fromEnvironmentState == _FromEnvironmentState.BOOL; |
| 649 } | 648 } |
| 650 | 649 |
| 651 @override | 650 @override |
| 652 bool get isStringFromEnvironmentConstructor { | 651 bool get isStringFromEnvironmentConstructor { |
| 653 return fromEnvironmentState == _FromEnvironmentState.STRING; | 652 return fromEnvironmentState == _FromEnvironmentState.STRING; |
| 654 } | 653 } |
| 655 } | 654 } |
| OLD | NEW |