Add copyright and auto-generation notice to built-in sources

This commit is contained in:
Alexander Udalov
2014-01-28 15:59:57 +04:00
parent 877d9f2220
commit 1c9d614137
23 changed files with 298 additions and 23 deletions
+16
View File
@@ -1,3 +1,19 @@
/*
* Copyright 2010-2014 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 jet
public annotation class atomic
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+16
View File
@@ -1,3 +1,19 @@
/*
* Copyright 2010-2014 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 jet
public annotation class noinline
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.iterators.GenerateIterators
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.progressionIterators.GenerateProgressionIterators
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.progressions.GenerateProgressions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+16
View File
@@ -1,3 +1,19 @@
/*
* Copyright 2010-2014 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 jet
public trait PropertyMetadata {
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.ranges.GenerateRanges
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
+17 -1
View File
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
@@ -1,4 +1,20 @@
// Generated by org.jetbrains.jet.generators.runtime.functions.GenerateFunctions
/*
* Copyright 2010-2014 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.
*/
// Auto-generated file. DO NOT EDIT!
package jet
@@ -73,11 +73,14 @@ fun generateBuiltInFile(name: String, generate: (PrintWriter) -> Unit) {
}
fun generateRuntimeJvmFile(name: String, generate: (PrintWriter) -> Unit) {
generateFile(BUILT_INS_DIR, name, generate)
generateFile(RUNTIME_JVM_DIR, name, generate)
}
fun generatedBy(out: PrintWriter, generator: String) {
out.println("// Generated by $generator")
fun generatedBy(out: PrintWriter) {
out.println(File("injector-generator/copyright.txt").readText())
// Don't include generator class name in the message: these are built-in sources,
// and we don't want to scare users with any internal information about our project
out.println("// Auto-generated file. DO NOT EDIT!")
out.println()
out.println("package jet")
out.println()
@@ -42,7 +42,7 @@ enum class FunctionKind(
class GenerateFunctions(val out: PrintWriter, val kind: FunctionKind) {
fun generateFunctionClasses() {
generatedBy(out, javaClass.getName())
generatedBy(out)
for (i in 0..MAX_PARAM_COUNT) {
out.print("public trait " + kind.getClassName(i))
generateTypeParameters(i, true)
@@ -52,7 +52,7 @@ class GenerateFunctions(val out: PrintWriter, val kind: FunctionKind) {
}
fun generateFunctionImplClasses() {
generatedBy(out, javaClass.getName())
generatedBy(out)
for (i in 0..MAX_PARAM_COUNT) {
out.print("public abstract class " + kind.getImplClassName(i))
generateTypeParameters(i, true)
@@ -34,7 +34,7 @@ enum class IteratorKind {
class GenerateIterators(val out: PrintWriter) {
fun generate() {
generatedBy(out, javaClass.getName())
generatedBy(out)
for (kind in IteratorKind.values()) {
val s = kind.capitalized
out.println("public abstract class ${s}Iterator : Iterator<$s> {")
@@ -68,7 +68,7 @@ fun floatingPointProgressionIterator(kind: ProgressionKind): String {
class GenerateProgressionIterators(val out: PrintWriter) {
fun generate() {
generatedBy(out, javaClass.getName())
generatedBy(out)
out.println("import jet.runtime.ProgressionUtil")
out.println()
for (kind in ProgressionKind.values()) {
@@ -22,7 +22,7 @@ import java.io.PrintWriter
class GenerateProgressions(val out: PrintWriter) {
fun generate() {
generatedBy(out, javaClass.getName())
generatedBy(out)
for (kind in ProgressionKind.values()) {
val t = kind.capitalized
val progression = "${t}Progression"
@@ -22,7 +22,7 @@ import java.io.PrintWriter
class GenerateRanges(val out: PrintWriter) {
fun generate() {
generatedBy(out, javaClass.getName())
generatedBy(out)
for (kind in ProgressionKind.values()) {
val t = kind.capitalized
val range = "${t}Range"