From dd13e91883de5010ed39f575fb3c0d314526316b Mon Sep 17 00:00:00 2001 From: Alexey Tsvetkov Date: Fri, 27 Mar 2015 20:53:19 +0300 Subject: [PATCH] JS: converted JsEmpty to kotlin --- .../dart/compiler/backend/js/ast/JsEmpty.kt | 26 +++++++------------ 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsEmpty.kt b/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsEmpty.kt index 699bc06f7d4..781c2a0f634 100644 --- a/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsEmpty.kt +++ b/js/js.dart-ast/src/com/google/dart/compiler/backend/js/ast/JsEmpty.kt @@ -2,28 +2,20 @@ // 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. -package com.google.dart.compiler.backend.js.ast; +package com.google.dart.compiler.backend.js.ast -import org.jetbrains.annotations.NotNull; +public class JsEmpty : SourceInfoAwareJsNode(), JsStatement { -public class JsEmpty extends SourceInfoAwareJsNode implements JsStatement { - JsEmpty() { + override fun accept(v: JsVisitor) { + v.visitEmpty(this) } - @Override - public void accept(JsVisitor v) { - v.visitEmpty(this); + override fun traverse(v: JsVisitorWithContext, ctx: JsContext) { + v.visit(this, ctx) + v.endVisit(this, ctx) } - @Override - public void traverse(JsVisitorWithContext v, JsContext ctx) { - v.visit(this, ctx); - v.endVisit(this, ctx); - } - - @NotNull - @Override - public JsEmpty deepCopy() { - return this; + override fun deepCopy(): JsEmpty { + return this } }