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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2657583007: Record isFinal for parameters into summaries. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | pkg/analyzer/lib/src/summary/format.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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698