blob: 839fc884c2d8807f1c49e4e916a4044bf04756f9 [file] [log] [blame] [edit]
>>>
bool _hasLibraryDirective(String code) =>
parseDirectives(code, suppressErrors: true)
.directives.any((d) => d is LibraryDirective);
<<<
bool _hasLibraryDirective(String code) => parseDirectives(
code,
suppressErrors: true,
).directives.any((d) => d is LibraryDirective);