Skip to content

Commit

Permalink
Value classes: Use 'value' keyword instead of 'inline' in stub dumps
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmirus committed Nov 27, 2020
1 parent 9b9c43b commit 05c4dfe
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ open value class D1(val x: Int)
abstract value class D2(val x: Int)
sealed value class D3(val x: Int)

<!INCOMPATIBLE_MODIFIERS!>value<!> <!INCOMPATIBLE_MODIFIERS!>data<!> class D4(val x: String)
value data class D4(val x: String)
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private class ClassClsStubBuilder(
relevantFlags.add(INNER)
relevantFlags.add(DATA)
relevantFlags.add(MODALITY)
relevantFlags.add(INLINE_CLASS)
relevantFlags.add(VALUE_CLASS)
}
if (isInterface()) {
relevantFlags.add(FUN_INTERFACE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ val EXTERNAL_FUN = createBooleanFlagToModifier(Flags.IS_EXTERNAL_FUNCTION, KtTok
val EXTERNAL_PROPERTY = createBooleanFlagToModifier(Flags.IS_EXTERNAL_PROPERTY, KtTokens.EXTERNAL_KEYWORD)
val EXTERNAL_CLASS = createBooleanFlagToModifier(Flags.IS_EXTERNAL_CLASS, KtTokens.EXTERNAL_KEYWORD)
val INLINE = createBooleanFlagToModifier(Flags.IS_INLINE, KtTokens.INLINE_KEYWORD)
val INLINE_CLASS = createBooleanFlagToModifier(Flags.IS_INLINE_CLASS, KtTokens.INLINE_KEYWORD)
val VALUE_CLASS = createBooleanFlagToModifier(Flags.IS_INLINE_CLASS, KtTokens.VALUE_KEYWORD)
val FUN_INTERFACE = createBooleanFlagToModifier(Flags.IS_FUN_INTERFACE, KtTokens.FUN_KEYWORD)
val TAILREC = createBooleanFlagToModifier(Flags.IS_TAILREC, KtTokens.TAILREC_KEYWORD)
val SUSPEND = createBooleanFlagToModifier(Flags.IS_SUSPEND, KtTokens.SUSPEND_KEYWORD)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class MouseMovedEventArgs
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/AfterClasses.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class AfterClasses {
// EXIST: sealed class
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class B {
// EXIST: data class
// EXIST: { "lookupString":"data class", "itemText":"data class", "tailText":" AfterClasses_LangLevel10(...)", "attributes":"bold" }
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class B {
// EXIST: data class
// EXIST: { "lookupString":"data class", "itemText":"data class", "tailText":" AfterClasses_LangLevel11(...)", "attributes":"bold" }
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/AfterFuns.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class A {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var a : Int
// EXIST: data class
// EXIST: { "lookupString":"data class", "itemText":"data class", "tailText":" GlobalPropertyAccessors(...)", "attributes":"bold" }
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ annotation class Test {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/InClassBeforeFun.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Test {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/InClassScope.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class TestClass {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/InEnumScope2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ enum class Test {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/InInterfaceScope.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface Test {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/InObjectScope.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ object Test {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ package Test
// EXIST: data class
// EXIST: { "lookupString":"data class", "itemText":"data class", "tailText":" InTopScopeAfterPackage(...)", "attributes":"bold" }
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Some {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Some {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/PropertySetter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Some {
// EXIST: lateinit var
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/TopScope.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// EXIST: data class
// EXIST: { "lookupString":"data class", "itemText":"data class", "tailText":" TopScope(...)", "attributes":"bold" }
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/TopScope3-.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// EXIST: sealed class
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down
1 change: 1 addition & 0 deletions idea/idea-completion/testData/keywords/topScope2.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
// EXIST: sealed class
// EXIST: data class
// EXIST: inline
// EXIST: value
// EXIST: tailrec
// EXIST: external
// EXIST: annotation class
Expand Down

0 comments on commit 05c4dfe

Please sign in to comment.