Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/kotlin/com/emberjs/gts/GtsSupport.kt
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ class SimpleAstNode: ASTNode {
}

override fun getPsi(): PsiElement? {
TODO("Not yet implemented")
return null
}

override fun <T : PsiElement?> getPsi(p0: Class<T?>): T? {
Expand Down
11 changes: 11 additions & 0 deletions src/test/kotlin/com/emberjs/gts/GtsFormatIdentTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ class GtsFormatIdentTest : BasePlatformTestCase() {
</template>;

class Foo {
get value() {
return this.args.values
.filter(value => typeof value === 'string') // ignore non-string values
.find(value => value.startsWith(this.args.name));
}
<template>
Hi
</template>
Expand Down Expand Up @@ -219,6 +224,12 @@ class GtsFormatIdentTest : BasePlatformTestCase() {
</template>;

class Foo {
get value() {
return this.args.values
.filter(value => typeof value === 'string') // ignore non-string values
.find(value => value.startsWith(this.args.name));
}

<template>
Hi
</template>
Expand Down
Loading