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

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

Issue 1671293002: Resynthesize default parameter values. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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/resynthesize.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 4114 matching lines...) Expand 10 before | Expand all | Expand 10 after
4125 int _visibleRangeOffset = 0; 4125 int _visibleRangeOffset = 0;
4126 4126
4127 /** 4127 /**
4128 * The length of the visible range for this element, or `-1` if this element 4128 * The length of the visible range for this element, or `-1` if this element
4129 * does not have a visible range. 4129 * does not have a visible range.
4130 */ 4130 */
4131 int _visibleRangeLength = -1; 4131 int _visibleRangeLength = -1;
4132 4132
4133 /** 4133 /**
4134 * Initialize a newly created parameter element to have the given [name] and 4134 * Initialize a newly created parameter element to have the given [name] and
4135 * [offset]. 4135 * [nameOffset].
4136 */ 4136 */
4137 ParameterElementImpl(String name, int nameOffset) : super(name, nameOffset); 4137 ParameterElementImpl(String name, int nameOffset) : super(name, nameOffset);
4138 4138
4139 /** 4139 /**
4140 * Initialize a newly created parameter element to have the given [name]. 4140 * Initialize a newly created parameter element to have the given [name].
4141 */ 4141 */
4142 ParameterElementImpl.forNode(Identifier name) : super.forNode(name); 4142 ParameterElementImpl.forNode(Identifier name) : super.forNode(name);
4143 4143
4144 /** 4144 /**
4145 * Creates a synthetic parameter with [name], [type] and [kind]. 4145 * Creates a synthetic parameter with [name], [type] and [kind].
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
4805 4805
4806 @override 4806 @override
4807 void visitElement(Element element) { 4807 void visitElement(Element element) {
4808 int offset = element.nameOffset; 4808 int offset = element.nameOffset;
4809 if (offset != -1) { 4809 if (offset != -1) {
4810 map[offset] = element; 4810 map[offset] = element;
4811 } 4811 }
4812 super.visitElement(element); 4812 super.visitElement(element);
4813 } 4813 }
4814 } 4814 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698