Skip to content

Commit 552ce4f

Browse files
committed
fix format exception
1 parent 54de60d commit 552ce4f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

src/main/kotlin/com/emberjs/gts/GtsSupport.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ class SimpleAstNode: ASTNode {
934934
}
935935

936936
override fun getPsi(): PsiElement? {
937-
TODO("Not yet implemented")
937+
return null
938938
}
939939

940940
override fun <T : PsiElement?> getPsi(p0: Class<T?>): T? {

src/test/kotlin/com/emberjs/gts/GtsFormatIdentTest.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ class GtsFormatIdentTest : BasePlatformTestCase() {
141141
</template>;
142142
143143
class Foo {
144+
get value() {
145+
return this.args.values
146+
.filter(value => typeof value === 'string') // ignore non-string values
147+
.find(value => value.startsWith(this.args.name));
148+
}
144149
<template>
145150
Hi
146151
</template>
@@ -219,6 +224,12 @@ class GtsFormatIdentTest : BasePlatformTestCase() {
219224
</template>;
220225
221226
class Foo {
227+
get value() {
228+
return this.args.values
229+
.filter(value => typeof value === 'string') // ignore non-string values
230+
.find(value => value.startsWith(this.args.name));
231+
}
232+
222233
<template>
223234
Hi
224235
</template>

0 commit comments

Comments
 (0)