anchor.diff:    final bar = Bar();
   }
   
  +@Component(
  +  selector: 'test',
  +  template: r'<button (click)="bar.doCapture()"></button>',
  +)
  +class TestChainedMethodsDirect {
  +  final bar = Bar();
  +}
  +
   class Bar {
     void Function() overrideDoCapture = () {};
     void doCapture() {
  
positive.code:       fixture.rootElement.querySelector('button').click();
      });
    }, skip: 'https://github.com/dart-lang/angular/issues/1670');
  }
  
  void Function() overrideTopLevelDoCapture = () {};
  
negative.code: 
  @Component(
    selector: 'test',
    exports: [topLevelDoCapture],
    template: r'<button (click)="topLevelDoCapture()"></button>',
  )
  class TestTopLevelMethodsDirect {}
  
  @Component(
    selector: 'test',
    exports: [],
    template: r'<button (click)="TestStaticMethods.doCapture"></button>',
  )
  class TestStaticMethods {
    static void Function() overrideDoCapture = () {};
    static void doCapture() {
      overrideDoCapture();
    }
  }
  
  @Component(
    selector: 'test',
    exports: [],
    template: r'<button (click)="TestStaticMethodsDirect.doCapture()"></button>',
  )
  class TestStaticMethodsDirect {
    static void Function() overrideDoCapture = () {};
    static void doCapture() {
      overrideDoCapture();
  