From 0ea425e41b7d4bdd17fc466f6b13338eca45069f Mon Sep 17 00:00:00 2001 From: Pavel Talanov Date: Fri, 25 Nov 2011 21:38:35 +0400 Subject: [PATCH] Supported single file without namespace. --- .idea/workspace.xml | 470 ++++++++---------- .../k2js/declarations/ExtractionVisitor.java | 15 +- .../translate/general/TranslationContext.java | 2 +- .../reference/ReferenceTranslator.java | 1 + .../jetbrains/k2js/test/BasicClassTest.java | 5 + .../class/cases/classWithoutNamespace.kt | 7 + 6 files changed, 223 insertions(+), 277 deletions(-) create mode 100644 translator/testFiles/class/cases/classWithoutNamespace.kt diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 651a1236dc1..d009ae5a921 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -8,15 +8,12 @@ + - - - - + - - + @@ -48,7 +45,7 @@ - + - + - + - + - - + + - + - - + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -211,46 +235,30 @@ - - - - - - - - - - + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - + @@ -259,23 +267,12 @@ - + - - - - - - - - - - - @@ -312,7 +309,7 @@ - + @@ -400,22 +397,22 @@ @@ -565,7 +562,7 @@ - - - - - - - - - - - - - - @@ -1245,6 +1130,40 @@ + + + + + + + + + + + + + + + + - - - - - + + + + + localhost @@ -1401,7 +1320,7 @@ - + @@ -1418,8 +1337,8 @@ - - + + @@ -1463,7 +1382,7 @@ @@ -1510,57 +1429,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1575,36 +1443,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1614,20 +1452,102 @@ - + - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/translator/src/org/jetbrains/k2js/declarations/ExtractionVisitor.java b/translator/src/org/jetbrains/k2js/declarations/ExtractionVisitor.java index a1c017fe80b..320c921aecc 100644 --- a/translator/src/org/jetbrains/k2js/declarations/ExtractionVisitor.java +++ b/translator/src/org/jetbrains/k2js/declarations/ExtractionVisitor.java @@ -100,13 +100,26 @@ public final class ExtractionVisitor extends DeclarationDescriptorVisitor