changed @author tag
This commit is contained in:
@@ -34,7 +34,7 @@ import static org.jetbrains.k2js.translate.utils.DescriptorUtils.nameForNamespac
|
||||
import static org.jetbrains.k2js.utils.JetTestUtils.analyzeNamespace;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class K2JSTranslator {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.applet.Applet;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class K2JSTranslatorApplet extends Applet {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import static org.jetbrains.k2js.translate.utils.DescriptorUtils.getOwnDeclarati
|
||||
import static org.jetbrains.k2js.translate.utils.DescriptorUtils.nameForNamespace;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class DeclarationVisitor extends DeclarationDescriptorVisitor<Void, DeclarationContext> {
|
||||
|
||||
|
||||
@@ -11,11 +11,10 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class Declarations {
|
||||
|
||||
|
||||
@NotNull
|
||||
public static Declarations newInstance(@NotNull NamingScope rootScope) {
|
||||
return new Declarations(rootScope);
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.google.dart.compiler.util.AstUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
|
||||
public final class Namer {
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class NamingScope {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import static org.jetbrains.jet.lang.resolve.DescriptorUtils.getFQName;
|
||||
import static org.jetbrains.k2js.translate.utils.DescriptorUtils.*;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class StandardClasses {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.google.dart.compiler.util.AstUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class TemporaryVariable {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import org.jetbrains.k2js.translate.utils.BindingUtils;
|
||||
import static org.jetbrains.jet.lang.resolve.DescriptorUtils.getFQName;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class TranslationContext {
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ClassDeclarationTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ import static org.jetbrains.k2js.translate.utils.BindingUtils.getPropertyDescrip
|
||||
import static org.jetbrains.k2js.translate.utils.DescriptorUtils.findAncestorClass;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ClassTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class DeclarationBodyVisitor extends TranslatorVisitor<List<JsPropertyInitializer>> {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import java.util.List;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.*;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PropertyTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ import static org.jetbrains.k2js.translate.utils.TranslationUtils.notNullCheck;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.translateInitializerForProperty;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ExpressionVisitor extends TranslatorVisitor<JsNode> {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import static org.jetbrains.k2js.translate.utils.PsiUtils.getLoopBody;
|
||||
import static org.jetbrains.k2js.translate.utils.PsiUtils.getLoopParameter;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ForTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ import static org.jetbrains.k2js.translate.utils.TranslationUtils.functionWithSc
|
||||
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class FunctionTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.jetbrains.k2js.translate.utils.BindingUtils;
|
||||
import org.jetbrains.k2js.translate.utils.TranslationUtils;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PatternTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.jetbrains.k2js.translate.general.Translation;
|
||||
import static com.google.dart.compiler.util.AstUtil.sum;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
//TODO: add toString call for non-primitive object
|
||||
public final class StringTemplateTranslator extends AbstractTranslator {
|
||||
|
||||
@@ -17,7 +17,7 @@ import java.util.List;
|
||||
import static com.google.dart.compiler.util.AstUtil.convertToBlock;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class TryTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import static com.google.dart.compiler.util.AstUtil.convertToStatement;
|
||||
import static org.jetbrains.k2js.translate.utils.BindingUtils.isStatement;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
//TODO: look into using temporary variable for counter
|
||||
public class WhenTranslator extends AbstractTranslator {
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
//TODO: provide helper methods for different parts of context
|
||||
public abstract class AbstractTranslator {
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.jetbrains.k2js.translate.initializer.NamespaceInitializerTranslator;
|
||||
import org.jetbrains.k2js.translate.utils.BindingUtils;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
* <p/>
|
||||
* This class provides a interface which all translators use to interact with each other.
|
||||
* Goal is to simlify interaction between translators.
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.jetbrains.jet.lang.psi.JetVisitor;
|
||||
import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
* <p/>
|
||||
* This class is a base class for all visitors. It contains code that is shared among them.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import org.jetbrains.k2js.translate.general.AbstractTranslator;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class AbstractInitializerTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import static org.jetbrains.k2js.translate.utils.BindingUtils.*;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.functionWithScope;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ClassInitializerTranslator extends AbstractInitializerTranslator {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class InitializerVisitor extends TranslatorVisitor<List<JsStatement>> {
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.functionWithScope;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class NamespaceInitializerTranslator extends AbstractInitializerTranslator {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.jetbrains.jet.lang.types.expressions.OperatorConventions;
|
||||
import org.jetbrains.jet.lexer.JetToken;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class CompareToIntrinsic implements Intrinsic {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.translate.intrinsic;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class EqualsIntrinsic implements Intrinsic {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.k2js.translate.intrinsic;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public interface FunctionIntrinsic extends Intrinsic {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public interface Intrinsic {
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import static org.jetbrains.jet.lang.types.expressions.OperatorConventions.*;
|
||||
import static org.jetbrains.k2js.translate.utils.DescriptorUtils.getFunctionByName;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class Intrinsics {
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import org.jetbrains.k2js.translate.intrinsic.FunctionIntrinsic;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public enum ArrayGetIntrinsic implements FunctionIntrinsic {
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.jetbrains.k2js.translate.intrinsic.FunctionIntrinsic;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public enum ArrayNullConstructorIntrinsic implements FunctionIntrinsic {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import org.jetbrains.k2js.translate.intrinsic.FunctionIntrinsic;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public enum ArraySetIntrinsic implements FunctionIntrinsic {
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.zeroLiteral;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class IntrinsicArrayUtils {
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.jetbrains.k2js.translate.operation.OperatorTable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PrimitiveBinaryOperationIntrinsic implements FunctionIntrinsic {
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ import org.jetbrains.k2js.translate.operation.OperatorTable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PrimitiveCompareToIntrinsic extends CompareToIntrinsic {
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ import org.jetbrains.k2js.translate.intrinsic.EqualsIntrinsic;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PrimitiveEqualsIntrinsic extends EqualsIntrinsic {
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PrimitiveRangeToIntrinsic implements FunctionIntrinsic {
|
||||
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.jetbrains.k2js.translate.operation.OperatorTable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PrimitiveUnaryOperationIntrinsic implements FunctionIntrinsic {
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import static org.jetbrains.k2js.translate.utils.TranslationUtils.isIntrinsicOpe
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.translateRightExpression;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class AssignmentTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import static org.jetbrains.k2js.translate.utils.TranslationUtils.translateRight
|
||||
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class BinaryOperationTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ import static org.jetbrains.k2js.translate.utils.PsiUtils.getOperationToken;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.*;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class CompareToTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import static org.jetbrains.k2js.translate.utils.PsiUtils.*;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.isIntrinsicOperation;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class IncrementTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ import static org.jetbrains.k2js.translate.utils.PsiUtils.getOperationToken;
|
||||
import static org.jetbrains.k2js.translate.utils.PsiUtils.isAssignment;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class IntrinsicAssignmentTranslator extends AssignmentTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import static org.jetbrains.k2js.translate.utils.PsiUtils.isPrefix;
|
||||
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class IntrinsicIncrementTranslator extends IncrementTranslator {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class OperatorTable {
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.getMethodReferenceForOverloadedOperation;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class OverloadedAssignmentTranslator extends AssignmentTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.getMethodReferenceForOverloadedOperation;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
// TODO: provide better increment translator logic
|
||||
public final class OverloadedIncrementTranslator extends IncrementTranslator {
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import org.jetbrains.k2js.translate.reference.CallTranslator;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
|
||||
public final class UnaryOperationTranslator {
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
import org.jetbrains.k2js.translate.general.AbstractTranslator;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class AccessTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ import java.util.List;
|
||||
import static org.jetbrains.k2js.translate.utils.BindingUtils.getDescriptorForReferenceExpression;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ArrayAccessTranslator extends AccessTranslator {
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import static org.jetbrains.k2js.translate.utils.PsiUtils.isNotInOperation;
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.*;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
//TODO: move translate() static methods into builder (consider!)
|
||||
//TODO: write tests on calling backing fields as functions
|
||||
|
||||
@@ -25,7 +25,7 @@ import static org.jetbrains.k2js.translate.utils.TranslationUtils.backingFieldRe
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.getImplicitReceiver;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PropertyAccessTranslator extends AccessTranslator {
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ import org.jetbrains.jet.lang.psi.JetSimpleNameExpression;
|
||||
import org.jetbrains.k2js.translate.context.TranslationContext;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ReferenceAccessTranslator extends AccessTranslator {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import static org.jetbrains.k2js.translate.utils.BindingUtils.getDescriptorForRe
|
||||
import static org.jetbrains.k2js.translate.utils.TranslationUtils.getImplicitReceiver;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class ReferenceTranslator extends AbstractTranslator {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import static org.jetbrains.k2js.translate.utils.DescriptorUtils.getVariableDesc
|
||||
import static org.jetbrains.k2js.translate.utils.DescriptorUtils.isVariableDescriptor;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
* <p/>
|
||||
* This class contains some code related to BindingContext use. Intention is not to pollute other classes.
|
||||
*/
|
||||
|
||||
@@ -15,7 +15,7 @@ import static org.jetbrains.k2js.translate.utils.BindingUtils.getSuperclassDescr
|
||||
//TODO: can optimise using less dumb implementation
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ClassSorter {
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class DescriptorUtils {
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ import org.jetbrains.jet.lexer.JetToken;
|
||||
import org.jetbrains.jet.lexer.JetTokens;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PsiUtils {
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ import static org.jetbrains.k2js.translate.utils.BindingUtils.*;
|
||||
import static org.jetbrains.k2js.translate.utils.DescriptorUtils.isExtensionFunction;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class TranslationUtils {
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class GenerationUtils {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.k2js.test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class AbstractExpressionTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.jetbrains.k2js.K2JSTranslatorApplet;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class AppletTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.junit.Test;
|
||||
import org.mozilla.javascript.JavaScriptException;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ArrayListTest extends JavaClassesTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class BasicClassTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ClassInheritanceTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class ConditionalTest extends AbstractExpressionTest {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.k2js.test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ExampleTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ExtensionFunctionTest extends TranslationTest {
|
||||
final private static String MAIN = "extensionFunction/";
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class ForTest extends AbstractExpressionTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class FunctionTest extends AbstractExpressionTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class IntrinsicTest extends AbstractExpressionTest {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.k2js.test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class JavaClassesTest extends TranslationTest {
|
||||
private final String SUITE = "java/";
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.k2js.test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class JavascriptTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class KotlinLibTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
* <p/>
|
||||
* This class contains tests that do not fall in any particular category
|
||||
* most probably because that functionality has very little support
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class OperationTest extends AbstractExpressionTest {
|
||||
final private static String MAIN = "operation/";
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class OperatorOverloadingTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PatternMatchingTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class PropertyAccessTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class RTTITest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class RangeTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.mozilla.javascript.Scriptable;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class RhinoFunctionResultChecker implements RhinoResultChecker {
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import java.util.Map;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class RhinoPropertyTypesChecker implements RhinoResultChecker {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.mozilla.javascript.Context;
|
||||
import org.mozilla.javascript.Scriptable;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public interface RhinoResultChecker {
|
||||
public void runChecks(Context context, Scriptable scope) throws Exception;
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class RhinoSystemOutputChecker implements RhinoResultChecker {
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import org.mozilla.javascript.Scriptable;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class RhinoUtils {
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import org.junit.Test;
|
||||
import org.mozilla.javascript.JavaScriptException;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class StandardClassesTest extends TranslationTest {
|
||||
final private static String MAIN = "standardClasses/";
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class StringTest extends AbstractExpressionTest {
|
||||
|
||||
|
||||
@@ -3,9 +3,8 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
//TODO: move most of the cases to other suites
|
||||
public final class SystemTest extends JavaClassesTest {
|
||||
|
||||
final private static String MAIN = "system/";
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class TraitTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public abstract class TranslationTest {
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.jetbrains.k2js.test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public class TupleTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class WebDemoExamplesTest extends TranslationTest {
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.jetbrains.k2js.test;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* @author Talanov Pavel
|
||||
* @author Pavel Talanov
|
||||
*/
|
||||
public final class WhileTest extends AbstractExpressionTest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user