Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 ssa; | 5 library ssa; |
| 6 | 6 |
| 7 import '../closure.dart'; | 7 import '../closure.dart'; |
| 8 import '../js/js.dart' as js; | 8 import '../js/js.dart' as js; |
| 9 import '../dart2jslib.dart' hide Selector; | 9 import '../dart2jslib.dart' hide Selector; |
| 10 import '../source_file.dart'; | 10 import '../source_file.dart'; |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 28 part 'codegen_helpers.dart'; | 28 part 'codegen_helpers.dart'; |
| 29 part 'js_names.dart'; | 29 part 'js_names.dart'; |
| 30 part 'nodes.dart'; | 30 part 'nodes.dart'; |
| 31 part 'optimize.dart'; | 31 part 'optimize.dart'; |
| 32 part 'types.dart'; | 32 part 'types.dart'; |
| 33 part 'types_propagation.dart'; | 33 part 'types_propagation.dart'; |
| 34 part 'validate.dart'; | 34 part 'validate.dart'; |
| 35 part 'variable_allocator.dart'; | 35 part 'variable_allocator.dart'; |
| 36 part 'value_range_analyzer.dart'; | 36 part 'value_range_analyzer.dart'; |
| 37 part 'value_set.dart'; | 37 part 'value_set.dart'; |
| 38 | |
| 39 String fetchReasonsFromMalformedType(DartType type) { | |
|
ahe
2012/11/30 15:44:07
For consistency, please move this function to anot
Johnni Winther
2012/12/04 10:07:17
Moved to typechecker.dart
| |
| 40 var reasons = new List<String>(); | |
| 41 type.forEachMalformedType((MalformedType malformedType) { | |
| 42 ErroneousElement error = malformedType.element; | |
| 43 Message message = error.messageKind.message(error.messageArguments); | |
| 44 reasons.add(message.toString()); | |
| 45 return true; | |
| 46 }); | |
| 47 return Strings.join(reasons, ', '); | |
|
ahe
2012/11/30 15:44:07
I'm not sure it is a good idea to concatenate stri
Johnni Winther
2012/12/04 10:07:17
Added a TODO.
| |
| 48 } | |
| OLD | NEW |