@@ -177,7 +177,7 @@ static RawInstance* CreateParameterMirrorList(const Function& func,
177
177
args.SetAt (6 , is_final);
178
178
args.SetAt (7 , default_value);
179
179
args.SetAt (8 , metadata);
180
- param = CreateMirror (Symbols::_LocalParameterMirror (), args);
180
+ param = CreateMirror (Symbols::_ParameterMirror (), args);
181
181
results.SetAt (i, param);
182
182
}
183
183
results.MakeImmutable ();
@@ -190,7 +190,7 @@ static RawInstance* CreateTypeVariableMirror(const TypeParameter& param,
190
190
args.SetAt (0 , param);
191
191
args.SetAt (1 , String::Handle (param.name ()));
192
192
args.SetAt (2 , owner_mirror);
193
- return CreateMirror (Symbols::_LocalTypeVariableMirror (), args);
193
+ return CreateMirror (Symbols::_TypeVariableMirror (), args);
194
194
}
195
195
196
196
// We create a list in native code and let Dart code create the type mirror
@@ -225,7 +225,7 @@ static RawInstance* CreateTypedefMirror(const Class& cls,
225
225
args.SetAt (3 , Bool::Get (cls.IsGeneric ()));
226
226
args.SetAt (4 , cls.IsGeneric () ? is_declaration : Bool::False ());
227
227
args.SetAt (5 , owner_mirror);
228
- return CreateMirror (Symbols::_LocalTypedefMirror (), args);
228
+ return CreateMirror (Symbols::_TypedefMirror (), args);
229
229
}
230
230
231
231
static RawInstance* CreateFunctionTypeMirror (const AbstractType& type) {
@@ -236,7 +236,7 @@ static RawInstance* CreateFunctionTypeMirror(const AbstractType& type) {
236
236
args.SetAt (0 , MirrorReference::Handle (MirrorReference::New (cls)));
237
237
args.SetAt (1 , MirrorReference::Handle (MirrorReference::New (func)));
238
238
args.SetAt (2 , type);
239
- return CreateMirror (Symbols::_LocalFunctionTypeMirror (), args);
239
+ return CreateMirror (Symbols::_FunctionTypeMirror (), args);
240
240
}
241
241
242
242
static RawInstance* CreateMethodMirror (const Function& func,
@@ -276,7 +276,7 @@ static RawInstance* CreateMethodMirror(const Function& func,
276
276
kind_flags |= (static_cast <intptr_t >(is_synthetic) << Mirrors::kSynthetic );
277
277
args.SetAt (5 , Smi::Handle (Smi::New (kind_flags)));
278
278
279
- return CreateMirror (Symbols::_LocalMethodMirror (), args);
279
+ return CreateMirror (Symbols::_MethodMirror (), args);
280
280
}
281
281
282
282
static RawInstance* CreateVariableMirror (const Field& field,
@@ -295,7 +295,7 @@ static RawInstance* CreateVariableMirror(const Field& field,
295
295
args.SetAt (5 , Bool::Get (field.is_final ()));
296
296
args.SetAt (6 , Bool::Get (field.is_const ()));
297
297
298
- return CreateMirror (Symbols::_LocalVariableMirror (), args);
298
+ return CreateMirror (Symbols::_VariableMirror (), args);
299
299
}
300
300
301
301
static RawInstance* CreateClassMirror (const Class& cls,
@@ -326,7 +326,7 @@ static RawInstance* CreateClassMirror(const Class& cls,
326
326
args.SetAt (6 , Bool::Get (cls.is_transformed_mixin_application ()));
327
327
args.SetAt (7 , cls.NumTypeParameters () == 0 ? Bool::False () : is_declaration);
328
328
args.SetAt (8 , Bool::Get (cls.is_enum_class ()));
329
- return CreateMirror (Symbols::_LocalClassMirror (), args);
329
+ return CreateMirror (Symbols::_ClassMirror (), args);
330
330
}
331
331
332
332
static bool IsCensoredLibrary (const String& url) {
@@ -360,15 +360,15 @@ static RawInstance* CreateLibraryMirror(Thread* thread, const Library& lib) {
360
360
return Instance::null ();
361
361
}
362
362
args.SetAt (2 , str);
363
- return CreateMirror (Symbols::_LocalLibraryMirror (), args);
363
+ return CreateMirror (Symbols::_LibraryMirror (), args);
364
364
}
365
365
366
366
static RawInstance* CreateCombinatorMirror (const Object& identifiers,
367
367
bool is_show) {
368
368
const Array& args = Array::Handle (Array::New (2 ));
369
369
args.SetAt (0 , identifiers);
370
370
args.SetAt (1 , Bool::Get (is_show));
371
- return CreateMirror (Symbols::_LocalCombinatorMirror (), args);
371
+ return CreateMirror (Symbols::_CombinatorMirror (), args);
372
372
}
373
373
374
374
static RawInstance* CreateLibraryDependencyMirror (Thread* thread,
@@ -419,7 +419,7 @@ static RawInstance* CreateLibraryDependencyMirror(Thread* thread,
419
419
args.SetAt (4 , Bool::Get (is_import));
420
420
args.SetAt (5 , Bool::Get (is_deferred));
421
421
args.SetAt (6 , metadata);
422
- return CreateMirror (Symbols::_LocalLibraryDependencyMirror (), args);
422
+ return CreateMirror (Symbols::_LibraryDependencyMirror (), args);
423
423
}
424
424
425
425
static RawInstance* CreateLibraryDependencyMirror (Thread* thread,
@@ -644,7 +644,7 @@ static RawInstance* CreateIsolateMirror() {
644
644
const Array& args = Array::Handle (Array::New (2 ));
645
645
args.SetAt (0 , debug_name);
646
646
args.SetAt (1 , root_library_mirror);
647
- return CreateMirror (Symbols::_LocalIsolateMirror (), args);
647
+ return CreateMirror (Symbols::_IsolateMirror (), args);
648
648
}
649
649
650
650
static void VerifyMethodKindShifts () {
@@ -653,7 +653,7 @@ static void VerifyMethodKindShifts() {
653
653
Zone* zone = thread->zone ();
654
654
const Library& lib = Library::Handle (zone, Library::MirrorsLibrary ());
655
655
const Class& cls = Class::Handle (
656
- zone, lib.LookupClassAllowPrivate (Symbols::_LocalMethodMirror ()));
656
+ zone, lib.LookupClassAllowPrivate (Symbols::_MethodMirror ()));
657
657
Error& error = Error::Handle (zone);
658
658
error ^= cls.EnsureIsFinalized (thread);
659
659
ASSERT (error.IsNull ());
0 commit comments