diff --git a/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t19.dart b/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t19.dart new file mode 100644 index 0000000000..f1beb6aa5d --- /dev/null +++ b/LanguageFeatures/Augmentation-libraries/augmented_expression_A09_t19.dart @@ -0,0 +1,59 @@ +// Copyright (c) 2024, 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. + +/// @assertion A compile-time error occurs if a declaration with the basename +/// `augmented` occurs in a location where any enclosing declaration is +/// augmenting. +/// +/// @description Checks that it is not an error to use metadata named +/// `augmented` on class-like augmenting declaration. +/// @author sgrekhov22@gmail.com + +// SharedOptions=--enable-experiment=macros + +const augmented = 0; + +@augmented +class C {} + +@augmented +augment class C {} + +@augmented +mixin M {} + +@augmented +augment mixin M {} + +@augmented +enum E { + e0; +} + +@augmented +augment enum E { + e1; +} + +class A {} + +@augmented +extension Ext on A {} + +@augmented +augment extension Ext {} + +@augmented +extension type ET(int _) {} + +@augmented +augment extension type ET {} + +main() { + print(C); + print(M); + print(E); + print(A); + print(ET); +} diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t01.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t01.dart index d7076ea7b3..3601ba59be 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t01.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t01.dart @@ -58,7 +58,7 @@ main() { var symbol = MirrorSystem .getSymbol("topLevelVariable"); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t01.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); testType(C); @@ -75,7 +75,7 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t01.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t01_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t01_lib.dart index 21fe8d430e..9c21bdec7b 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t01_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t01_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t02.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t02.dart index fb16cc343f..ea0cfaca06 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t02.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t02.dart @@ -28,6 +28,8 @@ class Meta2 { const Meta2(); } +var expected = ['metadata_A01_t02.Meta1', 'metadata_A01_t02.Meta2']; + @Meta1() String topLevelVariable = "Top-level variable"; @@ -47,6 +49,7 @@ mixin M { enum E { e0; + @Meta1() static String staticVariable = "Static variable"; @Meta1() @@ -68,13 +71,13 @@ extension type ET(int id) { main() { Symbol libName = MirrorSystem.getSymbol('metadata_A01_t02'); LibraryMirror libraryMirror = currentMirrorSystem().findLibrary(libName); - var symbol = MirrorSystem .getSymbol("topLevelVariable"); + var symbol = MirrorSystem.getSymbol("topLevelVariable"); DeclarationMirror varMirror = - libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName)); + libraryMirror.declarations[symbol] as DeclarationMirror; + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); testType(C); testType(M); @@ -87,12 +90,12 @@ void testType(Type t) { ClassMirror classMirror = reflectClass(t); var varNames = ['staticVariable', 'instanceVariable']; for (var name in varNames) { - Symbol symbol = MirrorSystem .getSymbol(name); + Symbol symbol = MirrorSystem.getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t02_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t02_lib.dart index 09b89bca66..625c4475b7 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t02_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t02_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t03.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t03.dart index 532f65de9e..39d41a0e02 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t03.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t03.dart @@ -60,7 +60,7 @@ main() { var symbol = MirrorSystem .getSymbol("topLevelGetter"); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t03.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); testType(C); @@ -77,7 +77,7 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t03.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t03_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t03_lib.dart index 77e40bed61..815836ef21 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t03_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t03_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t04.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t04.dart index 0d01d942b2..4d732106ca 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t04.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t04.dart @@ -28,6 +28,8 @@ class Meta2 { const Meta2(); } +var expected = ['metadata_A01_t04.Meta1', 'metadata_A01_t04.Meta2']; + @Meta1() String get topLevelGetter => "Top-level getter"; @@ -75,10 +77,10 @@ main() { var symbol = MirrorSystem .getSymbol("topLevelGetter"); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); testType(C); testType(M); @@ -94,9 +96,9 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName)); + Expect.isTrue(expected.contains( + MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains( + MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName))); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t04_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t04_lib.dart index 74207623aa..c04adb3e40 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t04_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t04_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t05.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t05.dart index d1e293a43c..dc26b79b52 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t05.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t05.dart @@ -60,7 +60,7 @@ main() { var symbol = MirrorSystem .getSymbol("topLevelSetter="); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t05.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); testType(C); @@ -77,7 +77,7 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t05.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t05_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t05_lib.dart index 0860c698dc..8dbedf2a85 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t05_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t05_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t06.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t06.dart index 6659799de8..8a6d999e4f 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t06.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t06.dart @@ -28,6 +28,8 @@ class Meta2 { const Meta2(); } +var expected = ['metadata_A01_t06.Meta1', 'metadata_A01_t06.Meta2']; + @Meta1() void set topLevelSetter(String _) {} @@ -75,10 +77,10 @@ main() { var symbol = MirrorSystem .getSymbol("topLevelSetter="); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); testType(C); testType(M); @@ -94,9 +96,9 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t06_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t06_lib.dart index 05e433118f..ae18293daf 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t06_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t06_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t07.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t07.dart index 86b884cb7b..fd41263297 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t07.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t07.dart @@ -60,7 +60,7 @@ main() { var symbol = MirrorSystem .getSymbol("topLevelFunction"); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t07.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); testType(C); @@ -77,7 +77,7 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', + Expect.equals('metadata_A01_t07.Meta', MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t07_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t07_lib.dart index c00caf5cf2..4742fd77ba 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t07_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t07_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t08.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t08.dart index cbc3d8be4b..71f482842d 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t08.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t08.dart @@ -28,6 +28,8 @@ class Meta2 { const Meta2(); } +var expected = ['metadata_A01_t08.Meta1', 'metadata_A01_t08.Meta2']; + @Meta1() void topLevelFunction() {} @@ -70,13 +72,15 @@ extension type ET(int id) { } main() { - Symbol libName = MirrorSystem.getSymbol('metadata_A01_t07'); + Symbol libName = MirrorSystem.getSymbol('metadata_A01_t08'); LibraryMirror libraryMirror = currentMirrorSystem().findLibrary(libName); var symbol = MirrorSystem .getSymbol("topLevelFunction"); DeclarationMirror varMirror = libraryMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); testType(C); testType(M); @@ -92,7 +96,9 @@ void testType(Type t) { Symbol symbol = MirrorSystem .getSymbol(name); DeclarationMirror varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); } } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t08_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t08_lib.dart index 96c5614978..0bf7626bd0 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t08_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t08_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t09_lib.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t09_lib.dart index 8c8b22c0e9..7cae6f2627 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t09_lib.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t09_lib.dart @@ -2,7 +2,7 @@ // 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. -/// @assertion /// @assertion All declarations can be augmented with metadata annotations +/// @assertion All declarations can be augmented with metadata annotations /// and/or doc comments directly preceding an augmenting declaration. /// /// In both cases, these should be appended to existing metadata or doc diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t10.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t10.dart index c043897e1d..95588d11b4 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t10.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t10.dart @@ -27,6 +27,8 @@ class Meta2 { const Meta2(); } +var expected = [Symbol('.Meta1'), Symbol('.Meta2')]; + @Meta1() class C {} @@ -47,18 +49,18 @@ extension Ext on A {} extension type ET(int id) {} main() { - Expect.equals( - Symbol('.Meta1'), reflectClass(C).metadata[0].type.qualifiedName); - Expect.equals( - Symbol('.Meta2'), reflectClass(C).metadata[1].type.qualifiedName); - Expect.equals( - Symbol('.Meta1'), reflectClass(M).metadata[0].type.qualifiedName); - Expect.equals( - Symbol('.Meta2'), reflectClass(M).metadata[1].type.qualifiedName); - Expect.equals( - Symbol('.Meta1'), reflectClass(E).metadata[0].type.qualifiedName); - Expect.equals( - Symbol('.Meta2'), reflectClass(E).metadata[1].type.qualifiedName); + Expect.isTrue( + expected.contains(reflectClass(C).metadata[0].type.qualifiedName)); + Expect.isTrue( + expected.contains(reflectClass(C).metadata[1].type.qualifiedName)); + Expect.isTrue( + expected.contains(reflectClass(M).metadata[0].type.qualifiedName)); + Expect.isTrue( + expected.contains(reflectClass(M).metadata[1].type.qualifiedName)); + Expect.isTrue( + expected.contains(reflectClass(E).metadata[0].type.qualifiedName)); + Expect.isTrue( + expected.contains(reflectClass(E).metadata[1].type.qualifiedName)); // Extensions and extension types cannot be reflected therefore it is not // possible to check their metadata. } diff --git a/LanguageFeatures/Augmentation-libraries/metadata_A01_t11.dart b/LanguageFeatures/Augmentation-libraries/metadata_A01_t11.dart index dbe4360742..8359e143e2 100644 --- a/LanguageFeatures/Augmentation-libraries/metadata_A01_t11.dart +++ b/LanguageFeatures/Augmentation-libraries/metadata_A01_t11.dart @@ -27,6 +27,8 @@ class Meta2 { const Meta2(); } +var expected = ['.Meta1', '.Meta2']; + enum E { e0, @Meta1() @@ -43,8 +45,8 @@ main() { symbol = MirrorSystem .getSymbol("e1"); varMirror = classMirror.declarations[symbol] as DeclarationMirror; - Expect.equals('.Meta1', - MirrorSystem.getName(varMirror.metadata[0].type.qualifiedName)); - Expect.equals('.Meta2', - MirrorSystem.getName(varMirror.metadata[1].type.qualifiedName)); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[0].type.qualifiedName))); + Expect.isTrue(expected.contains(MirrorSystem.getName( + varMirror.metadata[1].type.qualifiedName))); }