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

Unified Diff: pkg/analyzer/lib/src/dart/ast/ast.dart

Issue 2187863003: Always set correspondingStaticParameters and correspondingPropagatedParameters, to clear when we don (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/ast/ast.dart
diff --git a/pkg/analyzer/lib/src/dart/ast/ast.dart b/pkg/analyzer/lib/src/dart/ast/ast.dart
index 97defa61517fef5041fa2e061c9cc2750fb57ff9..6be013c362327fb74f5b658b9100e39d6bcff5b8 100644
--- a/pkg/analyzer/lib/src/dart/ast/ast.dart
+++ b/pkg/analyzer/lib/src/dart/ast/ast.dart
@@ -398,7 +398,7 @@ class ArgumentListImpl extends AstNodeImpl implements ArgumentList {
@override
void set correspondingPropagatedParameters(
List<ParameterElement> parameters) {
- if (parameters.length != _arguments.length) {
+ if (parameters != null && parameters.length != _arguments.length) {
throw new IllegalArgumentException(
"Expected ${_arguments.length} parameters, not ${parameters.length}");
}
@@ -410,7 +410,7 @@ class ArgumentListImpl extends AstNodeImpl implements ArgumentList {
@override
void set correspondingStaticParameters(List<ParameterElement> parameters) {
- if (parameters.length != _arguments.length) {
+ if (parameters != null && parameters.length != _arguments.length) {
throw new IllegalArgumentException(
"Expected ${_arguments.length} parameters, not ${parameters.length}");
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698