| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |