blob: 47d593f4c78243542dcd324d224d96aba4b348fa [file] [log] [blame]
>>>
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);