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

Side by Side Diff: pkg/kernel/lib/ast.dart

Issue 2561723003: Merge kernel closure conversion into the Dart SDK (Closed)
Patch Set: Remove path constraint Created 4 years 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/kernel/bin/transform.dart ('k') | pkg/kernel/lib/binary/ast_from_binary.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 /// ----------------------------------------------------------------------- 5 /// -----------------------------------------------------------------------
6 /// ERROR HANDLING 6 /// ERROR HANDLING
7 /// ----------------------------------------------------------------------- 7 /// -----------------------------------------------------------------------
8 /// 8 ///
9 /// As a rule of thumb, errors that can be detected statically are handled by 9 /// As a rule of thumb, errors that can be detected statically are handled by
10 /// the frontend, typically by translating the erroneous code into a 'throw' or 10 /// the frontend, typically by translating the erroneous code into a 'throw' or
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 /// 335 ///
336 /// For mixin applications this should be empty. 336 /// For mixin applications this should be empty.
337 final List<Procedure> procedures; 337 final List<Procedure> procedures;
338 338
339 Class( 339 Class(
340 {this.name, 340 {this.name,
341 this.isAbstract: false, 341 this.isAbstract: false,
342 this.supertype, 342 this.supertype,
343 this.mixedInType, 343 this.mixedInType,
344 List<TypeParameter> typeParameters, 344 List<TypeParameter> typeParameters,
345 List<InterfaceType> implementedTypes, 345 List<Supertype> implementedTypes,
346 List<Constructor> constructors, 346 List<Constructor> constructors,
347 List<Procedure> procedures, 347 List<Procedure> procedures,
348 List<Field> fields, 348 List<Field> fields,
349 this.fileUri}) 349 this.fileUri})
350 : this.typeParameters = typeParameters ?? <TypeParameter>[], 350 : this.typeParameters = typeParameters ?? <TypeParameter>[],
351 this.implementedTypes = implementedTypes ?? <Supertype>[], 351 this.implementedTypes = implementedTypes ?? <Supertype>[],
352 this.fields = fields ?? <Field>[], 352 this.fields = fields ?? <Field>[],
353 this.constructors = constructors ?? <Constructor>[], 353 this.constructors = constructors ?? <Constructor>[],
354 this.procedures = procedures ?? <Procedure>[] { 354 this.procedures = procedures ?? <Procedure>[] {
355 setParents(this.typeParameters, this); 355 setParents(this.typeParameters, this);
(...skipping 3288 matching lines...) Expand 10 before | Expand all | Expand 10 after
3644 3644
3645 @override 3645 @override
3646 defaultTreeNode(TreeNode node) { 3646 defaultTreeNode(TreeNode node) {
3647 if (node == child) { 3647 if (node == child) {
3648 return replacement; 3648 return replacement;
3649 } else { 3649 } else {
3650 return node; 3650 return node;
3651 } 3651 }
3652 } 3652 }
3653 } 3653 }
OLDNEW
« no previous file with comments | « pkg/kernel/bin/transform.dart ('k') | pkg/kernel/lib/binary/ast_from_binary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698