validateRuntimes method
Throws a FormatException if this refers to any undefined runtimes.
Implementation
void validateRuntimes(List<Runtime> allRuntimes) {
// We don't need to verify [customRuntimes] here because those runtimes
// already need to be verified and resolved to create [allRuntimes].
for (var settings in overrideRuntimes.values) {
if (!allRuntimes
.any((runtime) => runtime.identifier == settings.identifier)) {
throw SourceSpanFormatException(
'Unknown platform "${settings.identifier}".',
settings.identifierSpan);
}
}
suiteDefaults.validateRuntimes(allRuntimes);
for (var config in presets.values) {
config.validateRuntimes(allRuntimes);
}
}