| 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 '../common_elements.dart' show CommonElements; | 10 import '../common_elements.dart' show CommonElements; |
| 11 import '../util/util.dart' show Link; | 11 import '../util/util.dart' show Link; |
| 12 import 'entities.dart'; | 12 import 'entities.dart'; |
| 13 import 'elements.dart'; | 13 import 'elements.dart'; |
| 14 import 'names.dart'; |
| 14 import 'types.dart'; | 15 import 'types.dart'; |
| 15 import 'resolution_types.dart' | 16 import 'resolution_types.dart' |
| 16 show ResolutionDartType, ResolutionInterfaceType, ResolutionFunctionType; | 17 show ResolutionDartType, ResolutionInterfaceType, ResolutionFunctionType; |
| 17 | 18 |
| 18 abstract class ElementCommon implements Element { | 19 abstract class ElementCommon implements Element { |
| 19 @override | 20 @override |
| 20 bool get isLibrary => kind == ElementKind.LIBRARY; | 21 bool get isLibrary => kind == ElementKind.LIBRARY; |
| 21 | 22 |
| 22 @override | 23 @override |
| 23 bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; | 24 bool get isCompilationUnit => kind == ElementKind.COMPILATION_UNIT; |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 @override | 673 @override |
| 673 bool get isBoolFromEnvironmentConstructor { | 674 bool get isBoolFromEnvironmentConstructor { |
| 674 return fromEnvironmentState == _FromEnvironmentState.BOOL; | 675 return fromEnvironmentState == _FromEnvironmentState.BOOL; |
| 675 } | 676 } |
| 676 | 677 |
| 677 @override | 678 @override |
| 678 bool get isStringFromEnvironmentConstructor { | 679 bool get isStringFromEnvironmentConstructor { |
| 679 return fromEnvironmentState == _FromEnvironmentState.STRING; | 680 return fromEnvironmentState == _FromEnvironmentState.STRING; |
| 680 } | 681 } |
| 681 } | 682 } |
| OLD | NEW |