anchor.diff:      assertHasTargetInDartCore('index;');
     }
   
  +  Future<void> test_enum_method() async {
  +    addTestFile('''
  +enum E {
  +  v;
  +  void foo(int a) {}
  +}
  +''');
  +    await prepareNavigation();
  +
  +    assertHasRegion('int ');
  +  }
  +
  +  Future<void> test_enum_setter() async {
  +    addTestFile('''
  +enum E {
  +  v;
  +  set foo(int _) {}
  +  void bar() {
  +    foo = 0;
  +  }
  +}
  +''');
  +    await prepareNavigation();
  +
  +    assertHasRegion('int _');
  +    assertHasRegionTarget('foo = 0;', 'foo(');
  +  }
  +
     Future<void> test_enum_typeParameter() async {
       addTestFile('''
   enum E<T> {
  
positive.code:     assertHasRegionTarget('new()', 'E();', targetLength: 0);
    }
  
    Future<void> test_enum_index() async {
      addTestFile('''
  enum E { a, b }
  
negative.code:     await prepareNavigation();
      assertHasRegion('values');
      assertHasTarget('E');
    }
  
    Future<void> test_enum_with() async {
      addTestFile('''
  mixin M {}
  
  enum E with M { // ref
    v
  }
  ''');
      await prepareNavigation();
  
      assertHasRegionTarget('M { // ref', 'M {}');
    }
  
    Future<void> test_extension_on() async {
  