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

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_target.dart

Issue 2725093003: Recover correctly from empty optional parameters. (Closed)
Patch Set: Created 3 years, 9 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
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 fasta.kernel_target; 5 library fasta.kernel_target;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import 'dart:io' show File, IOSink; 9 import 'dart:io' show File, IOSink;
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 import '../dill/dill_target.dart' show DillTarget; 62 import '../dill/dill_target.dart' show DillTarget;
63 63
64 import '../errors.dart' 64 import '../errors.dart'
65 show InputError, internalError, reportCrash, resetCrashReporting; 65 show InputError, internalError, reportCrash, resetCrashReporting;
66 66
67 import '../util/relativize.dart' show relativizeUri; 67 import '../util/relativize.dart' show relativizeUri;
68 68
69 import '../compiler_context.dart' show CompilerContext; 69 import '../compiler_context.dart' show CompilerContext;
70 70
71 import '../util/relativize.dart' show relativizeUri;
72
73 import 'kernel_builder.dart' 71 import 'kernel_builder.dart'
74 show 72 show
75 Builder, 73 Builder,
76 ClassBuilder, 74 ClassBuilder,
77 DynamicTypeBuilder, 75 DynamicTypeBuilder,
78 InvalidTypeBuilder, 76 InvalidTypeBuilder,
79 KernelClassBuilder, 77 KernelClassBuilder,
80 KernelLibraryBuilder, 78 KernelLibraryBuilder,
81 KernelNamedTypeBuilder, 79 KernelNamedTypeBuilder,
82 KernelProcedureBuilder, 80 KernelProcedureBuilder,
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 } 607 }
610 for (Constructor constructor in superclass.constructors) { 608 for (Constructor constructor in superclass.constructors) {
611 if (constructor.name.name.isEmpty) { 609 if (constructor.name.name.isEmpty) {
612 return constructor.function.requiredParameterCount == 0 610 return constructor.function.requiredParameterCount == 0
613 ? constructor 611 ? constructor
614 : null; 612 : null;
615 } 613 }
616 } 614 }
617 return null; 615 return null;
618 } 616 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/body_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/outline_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698