-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
85 additions
and
13 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
6 changes: 6 additions & 0 deletions
6
...in/kotlin/ris58h/webcalm/javascript/psi/JavaScriptComputedPropertyExpressionAssignment.kt
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,6 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
|
||
class JavaScriptComputedPropertyExpressionAssignment(node: ASTNode) : ASTWrapperPsiElement(node), JavaScriptPropertyAssignment |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/ris58h/webcalm/javascript/psi/JavaScriptFunctionProperty.kt
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,6 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
|
||
class JavaScriptFunctionProperty(node: ASTNode) : ASTWrapperPsiElement(node), JavaScriptPropertyAssignment |
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
9 changes: 2 additions & 7 deletions
9
src/main/kotlin/ris58h/webcalm/javascript/psi/JavaScriptPropertyAssignment.kt
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,10 +1,5 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
import com.intellij.psi.PsiElement | ||
|
||
class JavaScriptPropertyAssignment(node: ASTNode) : ASTWrapperPsiElement(node) { | ||
//TODO: support other types of assignment | ||
val propertyShorthand: JavaScriptIdentifierExpression? | ||
get() = this.findChildByClass(JavaScriptIdentifierExpression::class.java) | ||
} | ||
sealed interface JavaScriptPropertyAssignment : PsiElement |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/ris58h/webcalm/javascript/psi/JavaScriptPropertyExpressionAssignment.kt
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,6 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
|
||
class JavaScriptPropertyExpressionAssignment(node: ASTNode) : ASTWrapperPsiElement(node), JavaScriptPropertyAssignment |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/ris58h/webcalm/javascript/psi/JavaScriptPropertyGetter.kt
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,6 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
|
||
class JavaScriptPropertyGetter(node: ASTNode) : ASTWrapperPsiElement(node), JavaScriptPropertyAssignment |
6 changes: 6 additions & 0 deletions
6
src/main/kotlin/ris58h/webcalm/javascript/psi/JavaScriptPropertySetter.kt
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,6 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
|
||
class JavaScriptPropertySetter(node: ASTNode) : ASTWrapperPsiElement(node), JavaScriptPropertyAssignment |
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/ris58h/webcalm/javascript/psi/JavaScriptPropertyShorthand.kt
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,9 @@ | ||
package ris58h.webcalm.javascript.psi | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
|
||
class JavaScriptPropertyShorthand(node: ASTNode) : ASTWrapperPsiElement(node), JavaScriptPropertyAssignment { | ||
val expression: JavaScriptExpression? | ||
get() = this.findChildByClass(JavaScriptExpression::class.java) | ||
} |
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