");
- return stringBuilder.toString();
- }
-}
diff --git a/confluence/src/main/java/org/jetbrains/jet/lexer/FlexLexer.java b/confluence/src/main/java/org/jetbrains/jet/lexer/FlexLexer.java
deleted file mode 100644
index eb004632a02..00000000000
--- a/confluence/src/main/java/org/jetbrains/jet/lexer/FlexLexer.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Copyright 2010-2012 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains.jet.lexer;
-
-/**
- * @author abreslav
- */
-public interface FlexLexer {
-}
diff --git a/confluence/src/main/java/org/jetbrains/jet/lexer/JetHTMLMacro.java b/confluence/src/main/java/org/jetbrains/jet/lexer/JetHTMLMacro.java
deleted file mode 100644
index ab4f6110494..00000000000
--- a/confluence/src/main/java/org/jetbrains/jet/lexer/JetHTMLMacro.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright 2010-2012 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains.jet.lexer;
-
-import com.atlassian.renderer.RenderContext;
-import com.atlassian.renderer.v2.RenderMode;
-import com.atlassian.renderer.v2.macro.BaseMacro;
-import com.atlassian.renderer.v2.macro.MacroException;
-
-import java.util.Map;
-
-/**
- * @author abreslav
- */
-public class JetHTMLMacro extends BaseMacro {
-
- @Override
- public boolean hasBody() {
- return true;
- }
-
- @Override
- public RenderMode getBodyRenderMode() {
- return RenderMode.allow(0);
- }
-
- @Override
- public String execute(Map map, String code, RenderContext renderContext) throws MacroException {
- return code;
- }
-}
diff --git a/confluence/src/main/java/org/jetbrains/jet/lexer/JetKeywordToken.java b/confluence/src/main/java/org/jetbrains/jet/lexer/JetKeywordToken.java
deleted file mode 100644
index f27d78b3351..00000000000
--- a/confluence/src/main/java/org/jetbrains/jet/lexer/JetKeywordToken.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Copyright 2010-2012 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/*
- * @author max
- */
-package org.jetbrains.jet.lexer;
-
-
-public class JetKeywordToken extends JetToken {
-
- public static JetKeywordToken keyword(String value) {
- return new JetKeywordToken(value, false);
- }
-
- public static JetKeywordToken softKeyword(String value) {
- return new JetKeywordToken(value, true);
- }
-
- private final String myValue;
- private final boolean myIsSoft;
-
- private JetKeywordToken(String value, boolean isSoft) {
- super(value);
- myValue = value;
- myIsSoft = isSoft;
- }
-
- public String getValue() {
- return myValue;
- }
-
- public boolean isSoft() {
- return myIsSoft;
- }
-}
diff --git a/confluence/src/main/java/org/jetbrains/jet/lexer/JetMacro.java b/confluence/src/main/java/org/jetbrains/jet/lexer/JetMacro.java
deleted file mode 100644
index 09bfa123fb2..00000000000
--- a/confluence/src/main/java/org/jetbrains/jet/lexer/JetMacro.java
+++ /dev/null
@@ -1,357 +0,0 @@
-/*
- * Copyright 2010-2012 JetBrains s.r.o.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.jetbrains.jet.lexer;
-
-import com.atlassian.confluence.renderer.radeox.macros.MacroUtils;
-import com.atlassian.confluence.util.velocity.VelocityUtils;
-import com.atlassian.renderer.RenderContext;
-import com.atlassian.renderer.v2.RenderMode;
-import com.atlassian.renderer.v2.macro.BaseMacro;
-import com.atlassian.renderer.v2.macro.MacroException;
-import com.intellij.psi.TokenType;
-import com.intellij.psi.tree.IElementType;
-import org.apache.velocity.VelocityContext;
-import org.jetbrains.jet.ConfluenceUtils;
-import org.jetbrains.jet.tags.StyledDivTagType;
-import org.jetbrains.jet.tags.TagData;
-import org.jetbrains.jet.tags.TagType;
-
-import java.io.StringReader;
-import java.util.*;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-/**
- * @author abreslav
- */
-public class JetMacro extends BaseMacro {
-
- public static final StringReader DUMMY_READER = new StringReader("");
-
- private static final TagType[] knownExtraTagTypes = {
- new StyledDivTagType("error"),
- new StyledDivTagType("warning"),
- new StyledDivTagType("unresolved"),
- new TagType("ref") {
- @Override
- public void appendOpenTag(StringBuilder builder, TagData tagData) {
- builder.append("");
- }
-
- @Override
- public void appendCloseTag(StringBuilder builder, TagData tagData) {
- builder.append("");
- }
- },
- new TagType("label") {
- @Override
- public void appendOpenTag(StringBuilder builder, TagData tagData) {
- builder.append("");
- }
-
- @Override
- public void appendCloseTag(StringBuilder builder, TagData tagData) {
- builder.append("");
- }
- },
- new TagType("a") {
- @Override
- public void appendOpenTag(StringBuilder builder, TagData tagData) {
- builder.append("");
- }
-
- @Override
- public void appendCloseTag(StringBuilder builder, TagData tagData) {
- builder.append("");
- }
- },
- new TagType("style") {
- @Override
- public void appendOpenTag(StringBuilder builder, TagData tagData) {
- builder.append("
\ No newline at end of file
diff --git a/confluence/testData/rendering/elements/variable.kt b/confluence/testData/rendering/elements/variable.kt
deleted file mode 100644
index 7364e4d32c7..00000000000
--- a/confluence/testData/rendering/elements/variable.kt
+++ /dev/null
@@ -1,5 +0,0 @@
-val a : Int = 1
-val b = 1
-val c : Int
-c = 1
-var a : String = "sss"
\ No newline at end of file
diff --git a/confluence/testData/rendering/elements/variable.txt b/confluence/testData/rendering/elements/variable.txt
deleted file mode 100644
index bdfa9adad8b..00000000000
--- a/confluence/testData/rendering/elements/variable.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
vala:Int=1
-
valb=1
-
valc:Int
-
c=1
-
vara:String="sss"
\ No newline at end of file
diff --git a/confluence/testData/rendering/elements/when.kt b/confluence/testData/rendering/elements/when.kt
deleted file mode 100644
index 6faddf20ae9..00000000000
--- a/confluence/testData/rendering/elements/when.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-val language = if (args.size == 0) "EN" else args[0]
-when (language) {
- "EN" -> "Hello!"
- "ES" -> "¡Hola!"
- "RU" -> "Привет!"
- else -> "Sorry, I can't greet you in $language yet"
-}
\ No newline at end of file
diff --git a/confluence/testData/rendering/elements/when.txt b/confluence/testData/rendering/elements/when.txt
deleted file mode 100644
index b316772466b..00000000000
--- a/confluence/testData/rendering/elements/when.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
vallanguage=if(args.size==0)"EN"elseargs[0]
-
when(language){
-
"EN"->"Hello!"
-
"ES"->"¡Hola!"
-
"RU"->"Привет!"
-
else->"Sorry, I can't greet you in $language yet"
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/adress_book.kt b/confluence/testData/rendering/examples/adress_book.kt
deleted file mode 100644
index 9cb0446a0e9..00000000000
--- a/confluence/testData/rendering/examples/adress_book.kt
+++ /dev/null
@@ -1,47 +0,0 @@
-namespace addressbook
-
-class Contact(
- val name : String,
- val emails : List,
- val addresses : List,
- val phonenums : List
-)
-
-class EmailAddress(
- val user : String,
- val host : String
-)
-
-class PostalAddress(
- val streetAddress : String,
- val city : String,
- val zip : String,
- val state : USState?,
- val country : Country
-) {
- assert {(state == null) xor (country == Countries["US"]) }
-}
-
-class PhoneNumber(
- val country : Country,
- val areaCode : Int,
- val number : Long
-)
-
-object Countries {
- fun get(id : CountryID) : Country = countryTable[id]
-
- private var table : Map? = null
- private val countryTable : Map
- get() {
- if (table == null) {
- table = HashMap()
- for (line in TextFile("countries.txt").lines(stripWhiteSpace = true)) {
- table[line] = Country(line)
- }
- }
- return table
- }
-}
-
-class Country(val name : String)
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/adress_book.txt b/confluence/testData/rendering/examples/adress_book.txt
deleted file mode 100644
index a650d815f59..00000000000
--- a/confluence/testData/rendering/examples/adress_book.txt
+++ /dev/null
@@ -1,48 +0,0 @@
-
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_define_a_function.kt b/confluence/testData/rendering/examples/basic_syntax_define_a_function.kt
deleted file mode 100644
index 3c0054a9da7..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_define_a_function.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-// Return type mandatory
-fun sum(a : Int, b : Int) : Int {
- return a + b
-}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_define_a_function.txt b/confluence/testData/rendering/examples/basic_syntax_define_a_function.txt
deleted file mode 100644
index 5f330cc898d..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_define_a_function.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
// Return type mandatory
-
funsum(a:Int,b:Int):Int{
-
returna+b
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_define_a_variable.kt b/confluence/testData/rendering/examples/basic_syntax_define_a_variable.kt
deleted file mode 100644
index 84edfdb2aed..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_define_a_variable.kt
+++ /dev/null
@@ -1,4 +0,0 @@
-val a : Int = 1
-val b = 1 // Type is inferred
-val c : Int // Type required when no initializer provided
-c = 1 // definite assignment
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_define_a_variable.txt b/confluence/testData/rendering/examples/basic_syntax_define_a_variable.txt
deleted file mode 100644
index 51ee4531913..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_define_a_variable.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
vala:Int=1
-
valb=1// Type is inferred
-
valc:Int// Type required when no initializer provided
-
c=1// definite assignment
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_null_checks.kt b/confluence/testData/rendering/examples/basic_syntax_null_checks.kt
deleted file mode 100644
index b33f0088667..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_null_checks.kt
+++ /dev/null
@@ -1,32 +0,0 @@
-package multiplier
-
-// Return null if str does not hold a number
-fun parseInt(str : String) : Int? {
- // ...
-}
-
-fun main(args : Array) {
- if (args.size < 2) {
- print("No number supplied");
- }
- val x = parseInt(args[0])
- val y = parseInt(args[1])
-
- // We cannot say 'x * y' now because they may hold nulls
-
- if (x != null && y != null) {
- print(x * y) // Now we can
- }
-
- // ...
- if (x == null) {
- print("Wrong number format in '${args[0]}'")
- return
- }
- if (y == null) {
- print("Wrong number format in '${args[1]}'")
- return
- }
- print(x * y) // Now we know that x and y are not nulls
-}
-
diff --git a/confluence/testData/rendering/examples/basic_syntax_null_checks.txt b/confluence/testData/rendering/examples/basic_syntax_null_checks.txt
deleted file mode 100644
index d35c9839f0b..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_null_checks.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
packagemultiplier
-
-
// Return null if str does not hold a number
-
funparseInt(str:String):Int?{
-
// ...
-
}
-
-
funmain(args:Array<String>){
-
if(args.size<2){
-
print("No number supplied");
-
}
-
valx=parseInt(args[0])
-
valy=parseInt(args[1])
-
-
// We cannot say 'x * y' now because they may hold nulls
-
-
if(x!=null&&y!=null){
-
print(x*y)// Now we can
-
}
-
-
// ...
-
if(x==null){
-
print("Wrong number format in '${args[0]}'")
-
return
-
}
-
if(y==null){
-
print("Wrong number format in '${args[1]}'")
-
return
-
}
-
print(x*y)// Now we know that x and y are not nulls
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_use_a_conditional_expression.kt b/confluence/testData/rendering/examples/basic_syntax_use_a_conditional_expression.kt
deleted file mode 100644
index 68c5739a540..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_use_a_conditional_expression.kt
+++ /dev/null
@@ -1,6 +0,0 @@
-fun max(a : Int, b : Int) : Int {
- if (a > b)
- return a
- else
- return b
-}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/basic_syntax_use_a_conditional_expression.txt b/confluence/testData/rendering/examples/basic_syntax_use_a_conditional_expression.txt
deleted file mode 100644
index 648c9af2ce2..00000000000
--- a/confluence/testData/rendering/examples/basic_syntax_use_a_conditional_expression.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
funmax(a:Int,b:Int):Int{
-
if(a>b)
-
returna
-
else
-
returnb
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/hello_world_a_multi_language_hello.kt b/confluence/testData/rendering/examples/hello_world_a_multi_language_hello.kt
deleted file mode 100644
index 2d44afdbca6..00000000000
--- a/confluence/testData/rendering/examples/hello_world_a_multi_language_hello.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-fun main(args : Array) {
- val language = if (args.size == 0) "EN" else args[0]
- println(when (language) {
- "EN" -> "Hello!"
- "ES" -> "¡Hola!"
- "RU" -> "Привет!"
- else -> "Sorry, I can't greet you in $language yet"
- })
-}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/hello_world_a_multi_language_hello.txt b/confluence/testData/rendering/examples/hello_world_a_multi_language_hello.txt
deleted file mode 100644
index 48b9d279c0a..00000000000
--- a/confluence/testData/rendering/examples/hello_world_a_multi_language_hello.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
funmain(args:Array<String>){
-
vallanguage=if(args.size==0)"EN"elseargs[0]
-
println(when(language){
-
"EN"->"Hello!"
-
"ES"->"¡Hola!"
-
"RU"->"Привет!"
-
else->"Sorry, I can't greet you in $language yet"
-
})
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/hello_world_an_object_oriented_hello.kt b/confluence/testData/rendering/examples/hello_world_an_object_oriented_hello.kt
deleted file mode 100644
index 03499b9e807..00000000000
--- a/confluence/testData/rendering/examples/hello_world_an_object_oriented_hello.kt
+++ /dev/null
@@ -1,9 +0,0 @@
-class Greeter(val name : String) {
- fun greet() {
- println("Hello, ${name}");
- }
-}
-
-fun main(args : Array) {
- Greeter(args[0]).greet()
-}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/hello_world_an_object_oriented_hello.txt b/confluence/testData/rendering/examples/hello_world_an_object_oriented_hello.txt
deleted file mode 100644
index d85c333e4cd..00000000000
--- a/confluence/testData/rendering/examples/hello_world_an_object_oriented_hello.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
classGreeter(valname:String){
-
fungreet(){
-
println("Hello, ${name}");
-
}
-
}
-
-
funmain(args:Array<String>){
-
Greeter(args[0]).greet()
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/hello_world_reading_a_name_from_command_line.kt b/confluence/testData/rendering/examples/hello_world_reading_a_name_from_command_line.kt
deleted file mode 100644
index c1db6631119..00000000000
--- a/confluence/testData/rendering/examples/hello_world_reading_a_name_from_command_line.kt
+++ /dev/null
@@ -1,7 +0,0 @@
-fun main(args : Array) {
- if (args.size == 0) {
- println("Please provide a name as a command-line argument")
- return
- }
- println("Hello, ${args[0]}!")
-}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/hello_world_reading_a_name_from_command_line.txt b/confluence/testData/rendering/examples/hello_world_reading_a_name_from_command_line.txt
deleted file mode 100644
index 272661aa570..00000000000
--- a/confluence/testData/rendering/examples/hello_world_reading_a_name_from_command_line.txt
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
funmain(args:Array<String>){
-
if(args.size==0){
-
println("Please provide a name as a command-line argument")
-
return
-
}
-
println("Hello, ${args[0]}!")
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/html_builder.kt b/confluence/testData/rendering/examples/html_builder.kt
deleted file mode 100644
index 00bee9aa529..00000000000
--- a/confluence/testData/rendering/examples/html_builder.kt
+++ /dev/null
@@ -1,31 +0,0 @@
-import html.*
-
-fun result(args : Array) =
- html {
- head {
- title {+"XML encoding with Kotlin"}
- }
- body {
- h1 {+"XML encoding with Kotlin"}
- p {+"this format can be used as an alternative markup to XML"}
-
- // an element with attributes and text content
- a(href = "http://jetbrains.com/kotlin") {+"Kotlin"}
-
- // mixed content
- p {
- +"This is some"
- b {+"mixed"}
- +"text. For more see the"
- a(href = "http://jetbrains.com/kotlin") {+"Kotlin"}
- +"project"
- }
- p {+"some text"}
-
- // content generated by
- p {
- for (arg in args)
- +arg
- }
- }
- }
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/html_builder.txt b/confluence/testData/rendering/examples/html_builder.txt
deleted file mode 100644
index a4e0257d8fd..00000000000
--- a/confluence/testData/rendering/examples/html_builder.txt
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
importhtml.*
-
-
funresult(args:Array<String>)=
-
html{
-
head{
-
title{+"XML encoding with Kotlin"}
-
}
-
body{
-
h1{+"XML encoding with Kotlin"}
-
p{+"this format can be used as an alternative markup to XML"}
-
-
// an element with attributes and text content
-
a(href="http://jetbrains.com/kotlin"){+"Kotlin"}
-
-
// mixed content
-
p{
-
+"This is some"
-
b{+"mixed"}
-
+"text. For more see the"
-
a(href="http://jetbrains.com/kotlin"){+"Kotlin"}
-
+"project"
-
}
-
p{+"some text"}
-
-
// content generated by
-
p{
-
for(arginargs)
-
+arg
-
}
-
}
-
}
\ No newline at end of file
diff --git a/confluence/testData/rendering/examples/html_builder_with_refs.kt b/confluence/testData/rendering/examples/html_builder_with_refs.kt
deleted file mode 100644
index 70ce56a58d5..00000000000
--- a/confluence/testData/rendering/examples/html_builder_with_refs.kt
+++ /dev/null
@@ -1,114 +0,0 @@
-import html.*
-
-fun result(args : Array) =
- html {
- head {
- title {+"XML encoding with Kotlin"}
- }
- body {
- h1 {+"XML encoding with Kotlin"}
- p {+"this format can be used as an alternative markup to XML"}
-
- // an element with attributes and text content
- a(href = "http://jetbrains.com/kotlin") {+"Kotlin"}
-
- // mixed content
- p {
- +"This is some"
- b {+"mixed"}
- +"text. For more see the"
- a(href = "http://jetbrains.com/kotlin") {+"Kotlin"}
- +"project"
- }
- p {+"some text"}
-
- // content generated by
- p {
- for (arg in args)
- +arg
- }
- }
- }
-
-