OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.src.dart.element.element; | 5 library analyzer.src.dart.element.element; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:math' show min; | 8 import 'dart:math' show min; |
9 | 9 |
10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
(...skipping 7145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7156 * Set whether this variable parameter is explicitly marked as being covariant
. | 7156 * Set whether this variable parameter is explicitly marked as being covariant
. |
7157 */ | 7157 */ |
7158 void set isExplicitlyCovariant(bool isCovariant) { | 7158 void set isExplicitlyCovariant(bool isCovariant) { |
7159 _assertNotResynthesized(_unlinkedParam); | 7159 _assertNotResynthesized(_unlinkedParam); |
7160 setModifier(Modifier.COVARIANT, isCovariant); | 7160 setModifier(Modifier.COVARIANT, isCovariant); |
7161 } | 7161 } |
7162 | 7162 |
7163 @override | 7163 @override |
7164 bool get isFinal { | 7164 bool get isFinal { |
7165 if (_unlinkedParam != null) { | 7165 if (_unlinkedParam != null) { |
7166 return false; | 7166 return _unlinkedParam.isFinal; |
7167 } | 7167 } |
7168 return super.isFinal; | 7168 return super.isFinal; |
7169 } | 7169 } |
7170 | 7170 |
7171 @override | 7171 @override |
7172 void set isFinal(bool isFinal) { | 7172 void set isFinal(bool isFinal) { |
7173 _assertNotResynthesized(_unlinkedParam); | 7173 _assertNotResynthesized(_unlinkedParam); |
7174 super.isFinal = isFinal; | 7174 super.isFinal = isFinal; |
7175 } | 7175 } |
7176 | 7176 |
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8616 | 8616 |
8617 @override | 8617 @override |
8618 void visitElement(Element element) { | 8618 void visitElement(Element element) { |
8619 int offset = element.nameOffset; | 8619 int offset = element.nameOffset; |
8620 if (offset != -1) { | 8620 if (offset != -1) { |
8621 map[offset] = element; | 8621 map[offset] = element; |
8622 } | 8622 } |
8623 super.visitElement(element); | 8623 super.visitElement(element); |
8624 } | 8624 } |
8625 } | 8625 } |
OLD | NEW |