blob: 32edbf7b2a351b2cf598e3bcf1dd9133fc6df6df [file] [log] [blame]
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// @assertion Metadata can appear before ... export ...
/// @description Check that metadata is allowed before export directive
/// @author
import 'dart:mirrors';
import '../../Utils/expect.dart';
import 'before_export_lib1.dart';
main() {
Symbol libraryName = MirrorSystem.getSymbol('before_export_lib1');
LibraryMirror libraryMirror = currentMirrorSystem().findLibrary(libraryName);
LibraryDependencyMirror exportMirror = libraryMirror.libraryDependencies
.firstWhere( (e) => e.isExport );