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

Side by Side Diff: pkg/analyzer/lib/src/summary/summarize_ast.dart

Issue 2302993003: Fix recently introduced strong mode errors (Closed)
Patch Set: Created 4 years, 3 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 | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 serialization.summarize_ast; 5 library serialization.summarize_ast;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/ast/visitor.dart'; 9 import 'package:analyzer/dart/ast/visitor.dart';
10 import 'package:analyzer/dart/element/type.dart' show DartType; 10 import 'package:analyzer/dart/element/type.dart' show DartType;
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 localClosureIndexMap, expr, constructorParameterNames); 1087 localClosureIndexMap, expr, constructorParameterNames);
1088 })) 1088 }))
1089 .toList(); 1089 .toList();
1090 } 1090 }
1091 executables.add(b); 1091 executables.add(b);
1092 } 1092 }
1093 1093
1094 @override 1094 @override
1095 UnlinkedParamBuilder visitDefaultFormalParameter( 1095 UnlinkedParamBuilder visitDefaultFormalParameter(
1096 DefaultFormalParameter node) { 1096 DefaultFormalParameter node) {
1097 UnlinkedParamBuilder b = node.parameter.accept(this); 1097 UnlinkedParamBuilder b =
1098 node.parameter.accept(this) as UnlinkedParamBuilder;
1098 b.initializer = serializeInitializerFunction(node.defaultValue, true); 1099 b.initializer = serializeInitializerFunction(node.defaultValue, true);
1099 if (node.defaultValue != null) { 1100 if (node.defaultValue != null) {
1100 b.defaultValueCode = node.defaultValue.toSource(); 1101 b.defaultValueCode = node.defaultValue.toSource();
1101 } 1102 }
1102 b.codeRange = serializeCodeRange(node); 1103 b.codeRange = serializeCodeRange(node);
1103 return b; 1104 return b;
1104 } 1105 }
1105 1106
1106 @override 1107 @override
1107 void visitEnumDeclaration(EnumDeclaration node) { 1108 void visitEnumDeclaration(EnumDeclaration node) {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1377 /** 1378 /**
1378 * A [_TypeParameterScope] is a [_Scope] which defines [_ScopedTypeParameter]s. 1379 * A [_TypeParameterScope] is a [_Scope] which defines [_ScopedTypeParameter]s.
1379 */ 1380 */
1380 class _TypeParameterScope extends _Scope { 1381 class _TypeParameterScope extends _Scope {
1381 /** 1382 /**
1382 * Get the number of [_ScopedTypeParameter]s defined in this 1383 * Get the number of [_ScopedTypeParameter]s defined in this
1383 * [_TypeParameterScope]. 1384 * [_TypeParameterScope].
1384 */ 1385 */
1385 int get length => _definedNames.length; 1386 int get length => _definedNames.length;
1386 } 1387 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698