Add platform/impl soft keywords, add isPlatform/isImpl to MemberDescriptor

This commit is contained in:
Alexander Udalov
2016-10-26 12:24:16 +03:00
parent 0dc31af73d
commit 6e2ef9b1d2
40 changed files with 198 additions and 11 deletions
@@ -42,4 +42,6 @@ class MouseMovedEventArgs
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -36,4 +36,6 @@ class B {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
+2
View File
@@ -41,4 +41,6 @@ class A {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -40,4 +40,6 @@ var a : Int
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -27,4 +27,6 @@ annotation class Test {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -39,4 +39,6 @@ public class Test {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -33,4 +33,6 @@ class TestClass {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -28,6 +28,8 @@ enum class Test {
// EXIST: suspend
// EXIST: fun
// EXIST: typealias
// EXIST: platform
// EXIST: impl
/* TODO: items below are not valid here */
// EXIST: class
@@ -29,4 +29,6 @@ interface Test {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -3,5 +3,5 @@ open class Foo {
p<caret> val foo = 1
}
// EXIST: private, public, protected
// EXIST: private, public, protected, platform
// NOTHING_ELSE
@@ -30,4 +30,6 @@ object Test {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -15,6 +15,7 @@ class TestSample(<caret>)
// EXIST: protected
// EXIST: internal
// EXIST: coroutine
// EXIST: impl
/* TODO: keywords below should not be here*/
// EXIST: abstract
// EXIST: const
@@ -27,4 +27,6 @@ package Test
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -5,4 +5,5 @@ p<caret>
// EXIST: package
// EXIST: private
// EXIST: public
// EXIST: platform
// NOTHING_ELSE
@@ -41,4 +41,6 @@ class Some {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -41,4 +41,6 @@ class Some {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
@@ -39,4 +39,6 @@ class Some {
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE
+2
View File
@@ -26,4 +26,6 @@
// EXIST: const
// EXIST: suspend
// EXIST: typealias
// EXIST: platform
// EXIST: impl
// NOTHING_ELSE