forked from angelolloqui/SwiftKotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/develop' into develop
* upstream/develop: (41 commits) Version update Minor changes Added other members to enums Added other members to enum body Added extra tests for missing properties and functions Moved code into utils and added extra inheritance tokens Changed enum code to allow simple value types, and a rawValue constructor angelolloqui#68 Fixed list/map initialization Updated contributions angelolloqui#91 Fixed force cast conversion PR changes added Assets/Tests/KotlinTokenizer/overrideargs.swift added funtion and code to remove default arguments from override function in class. With tests. add colors to token for dark mode cases Updated travis file and cleanup Updated readme file Removed autogenerated project file Removed local references Version update Updated swift transform to v0.18.10 ... # Conflicts: # Sources/SwiftKotlinApp/ViewController.swift # Sources/SwiftKotlinCommandLine/main.swift # Sources/SwiftKotlinFramework/KotlinTokenizer.swift # SwiftKotlin.xcodeproj/project.pbxproj
- Loading branch information
Showing
84 changed files
with
1,603 additions
and
863 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
language: objective-c | ||
osx_image: xcode9 | ||
osx_image: xcode10 | ||
install: | ||
- swift package resolve | ||
- swift package update | ||
- swift package generate-xcodeproj --enable-code-coverage | ||
script: | ||
- xcodebuild test -scheme SwiftKotlin-Package | ||
- xcodebuild test -workspace SwiftKotlin.xcworkspace -scheme SwiftKotlinFramework-Package |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
class Test { | ||
|
||
override fun dostuff(x: Int) {} | ||
|
||
fun otherMethod(x: Int = 5) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Test { | ||
override func dostuff(x: Int = 5) { | ||
} | ||
|
||
func otherMethod(x: Int = 5) { | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// Header comments | ||
// Multiple lines together | ||
// | ||
// Created by Angel Garcia on 14/10/2017. | ||
// | ||
class MyClass { | ||
//Public properties | ||
var a: Int? = null | ||
var b: String? = null | ||
|
||
//Public method | ||
fun aMethod() { | ||
// A comment inside aMethod | ||
b = "method run" | ||
b = b + "more" | ||
} | ||
|
||
/* | ||
Multiline comments | ||
are also supported | ||
*/ | ||
fun anotherMethod() { | ||
val a = this.a | ||
if (a != null) { | ||
// Inside if | ||
this.a = a + 1 | ||
} else { | ||
// Inside else | ||
this.a = 1 | ||
} | ||
} | ||
} | ||
|
||
// Other comments before structs | ||
data class MyStruct {} | ||
|
38 changes: 38 additions & 0 deletions
38
Assets/Tests/plugins/CommentsAdditionTransformPlugin.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// Header comments | ||
// Multiple lines together | ||
// | ||
// Created by Angel Garcia on 14/10/2017. | ||
// | ||
|
||
class MyClass { | ||
|
||
//Public properties | ||
var a: Int? | ||
var b: String? | ||
|
||
//Public method | ||
func aMethod() { | ||
// A comment inside aMethod | ||
b = "method run" | ||
b = b + "more" | ||
} | ||
|
||
/* | ||
Multiline comments | ||
are also supported | ||
*/ | ||
func anotherMethod() { | ||
if let a = self.a { | ||
// Inside if | ||
self.a = a + 1 | ||
} else { | ||
// Inside else | ||
self.a = 1 | ||
} | ||
} | ||
} | ||
|
||
// Other comments before structs | ||
struct MyStruct {} | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// AST.swift | ||
// Dummy | ||
// | ||
// Created by Tomohiro Matsuzawa on 9/14/18. | ||
// | ||
|
||
import Foundation | ||
|
||
// AST.framework build fails because it doesn't import Foundation, so import it here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// | ||
// Sema.swift | ||
// Dummy | ||
// | ||
// Created by Tomohiro Matsuzawa on 9/14/18. | ||
// | ||
|
||
import Foundation | ||
|
||
// Sema.framework build fails because it doesn't import Foundation, so import it here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.