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

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

Issue 2730093002: Avoid crashing on function syntax. (Closed)
Patch Set: Update status. 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 'kernel_builder.dart' 71 import 'kernel_builder.dart'
72 show 72 show
73 Builder, 73 Builder,
74 ClassBuilder, 74 ClassBuilder,
75 DynamicTypeBuilder,
76 InvalidTypeBuilder,
77 KernelClassBuilder, 75 KernelClassBuilder,
78 KernelLibraryBuilder, 76 KernelLibraryBuilder,
79 KernelNamedTypeBuilder, 77 KernelNamedTypeBuilder,
80 KernelProcedureBuilder, 78 KernelProcedureBuilder,
81 LibraryBuilder, 79 LibraryBuilder,
82 MixinApplicationBuilder, 80 MixinApplicationBuilder,
83 NamedMixinApplicationBuilder, 81 NamedMixinApplicationBuilder,
84 NamedTypeBuilder, 82 NamedTypeBuilder,
85 TypeBuilder; 83 TypeBuilder;
86 84
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 } 602 }
605 for (Constructor constructor in superclass.constructors) { 603 for (Constructor constructor in superclass.constructors) {
606 if (constructor.name.name.isEmpty) { 604 if (constructor.name.name.isEmpty) {
607 return constructor.function.requiredParameterCount == 0 605 return constructor.function.requiredParameterCount == 0
608 ? constructor 606 ? constructor
609 : null; 607 : null;
610 } 608 }
611 } 609 }
612 return null; 610 return null;
613 } 611 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart ('k') | pkg/front_end/lib/src/fasta/source/diet_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698