| 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 library analyzer.src.command_line.arguments; | 5 library analyzer.src.command_line.arguments; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/file_system/file_system.dart'; | 9 import 'package:analyzer/file_system/file_system.dart'; |
| 10 import 'package:analyzer/src/context/builder.dart'; | 10 import 'package:analyzer/src/context/builder.dart'; |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 parser.addOption(sdkSummaryPathOption, | 166 parser.addOption(sdkSummaryPathOption, |
| 167 help: 'The path to the Dart SDK summary file.', hide: hide); | 167 help: 'The path to the Dart SDK summary file.', hide: hide); |
| 168 parser.addFlag(enableStrictCallChecksFlag, | 168 parser.addFlag(enableStrictCallChecksFlag, |
| 169 help: 'Fix issue 21938.', | 169 help: 'Fix issue 21938.', |
| 170 defaultsTo: false, | 170 defaultsTo: false, |
| 171 negatable: false, | 171 negatable: false, |
| 172 hide: hide); | 172 hide: hide); |
| 173 parser.addFlag(enableInitializingFormalAccessFlag, | 173 parser.addFlag(enableInitializingFormalAccessFlag, |
| 174 help: | 174 help: |
| 175 'Enable support for allowing access to field formal parameters in a ' | 175 'Enable support for allowing access to field formal parameters in a ' |
| 176 'constructor\'s initializer list', | 176 'constructor\'s initializer list.', |
| 177 defaultsTo: false, | 177 defaultsTo: false, |
| 178 negatable: false, | 178 negatable: false, |
| 179 hide: hide || ddc); | 179 hide: hide || ddc); |
| 180 parser.addFlag(enableSuperMixinFlag, | 180 parser.addFlag(enableSuperMixinFlag, |
| 181 help: 'Relax restrictions on mixins (DEP 34).', | 181 help: 'Relax restrictions on mixins (DEP 34).', |
| 182 defaultsTo: false, | 182 defaultsTo: false, |
| 183 negatable: false, | 183 negatable: false, |
| 184 hide: hide); | 184 hide: hide); |
| 185 } | 185 } |
| 186 | 186 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 .replaceAll('\r\n', '\n') | 302 .replaceAll('\r\n', '\n') |
| 303 .replaceAll('\r', '\n') | 303 .replaceAll('\r', '\n') |
| 304 .split('\n') | 304 .split('\n') |
| 305 .where((String line) => line.isNotEmpty)); | 305 .where((String line) => line.isNotEmpty)); |
| 306 } on FileSystemException catch (e) { | 306 } on FileSystemException catch (e) { |
| 307 throw new Exception('Failed to read file specified by $lastArg : $e'); | 307 throw new Exception('Failed to read file specified by $lastArg : $e'); |
| 308 } | 308 } |
| 309 } | 309 } |
| 310 return args; | 310 return args; |
| 311 } | 311 } |
| OLD | NEW |