diff --git a/lib/declaration.ts b/lib/declaration.ts index 241f0f2..95191d7 100644 --- a/lib/declaration.ts +++ b/lib/declaration.ts @@ -124,24 +124,6 @@ export default class DeclarationTranspiler extends base.TranspilerBase { this.emit(')'); } - /** - * Emit fake constructors to placate the Dart Analyzer for JS Interop classes. - */ - maybeEmitFakeConstructors(decl: ts.Node) { - if (ts.isClassDeclaration(decl)) { - // Required to avoid spurious dart errors involving base classes without - // default constructors. - this.emit('// @Ignore\n'); - this.fc.visitTypeName(decl.name); - this.emit('.fakeConstructor$()'); - if (this.extendsClass) { - // Required to keep the Dart Analyzer happy when a class has subclasses. - this.emit(': super.fakeConstructor$()'); - } - this.emit(';\n'); - } - } - private visitName(name: ts.PropertyName|ts.BindingName) { if (base.getEnclosingClass(name) != null) { this.visit(name);