-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 parent
bd33263
commit daf1900
Showing
11 changed files
with
227 additions
and
61 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
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
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
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
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/org/ton/intellij/tact/psi/impl/TactCatchParameterMixin.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,22 @@ | ||
package org.ton.intellij.tact.psi.impl | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
import com.intellij.psi.PsiElement | ||
import org.ton.intellij.tact.TactIcons | ||
import org.ton.intellij.tact.psi.TactCatchParameter | ||
import org.ton.intellij.tact.psi.TactPsiFactory | ||
import javax.swing.Icon | ||
|
||
abstract class TactCatchParameterMixin(node: ASTNode) : ASTWrapperPsiElement(node), TactCatchParameter { | ||
override fun getName(): String = identifier.text | ||
|
||
override fun setName(name: String): PsiElement { | ||
(identifier).replace(TactPsiFactory(project).createIdentifier(name)) | ||
return this | ||
} | ||
|
||
override fun getTextOffset(): Int = identifier.textOffset | ||
|
||
override fun getIcon(flags: Int): Icon = TactIcons.VARIABLE | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/org/ton/intellij/tact/psi/impl/TactForEachKeyMixin.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,22 @@ | ||
package org.ton.intellij.tact.psi.impl | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
import com.intellij.psi.PsiElement | ||
import org.ton.intellij.tact.TactIcons | ||
import org.ton.intellij.tact.psi.TactForEachKey | ||
import org.ton.intellij.tact.psi.TactPsiFactory | ||
import javax.swing.Icon | ||
|
||
abstract class TactForEachKeyMixin(node: ASTNode) : ASTWrapperPsiElement(node), TactForEachKey { | ||
override fun getName(): String? = identifier.text | ||
|
||
override fun setName(name: String): PsiElement { | ||
identifier.replace(TactPsiFactory(project).createIdentifier(name)) | ||
return this | ||
} | ||
|
||
override fun getTextOffset(): Int = identifier.textOffset | ||
|
||
override fun getIcon(flags: Int): Icon = TactIcons.VARIABLE | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/kotlin/org/ton/intellij/tact/psi/impl/TactForEachValueMixin.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,22 @@ | ||
package org.ton.intellij.tact.psi.impl | ||
|
||
import com.intellij.extapi.psi.ASTWrapperPsiElement | ||
import com.intellij.lang.ASTNode | ||
import com.intellij.psi.PsiElement | ||
import org.ton.intellij.tact.TactIcons | ||
import org.ton.intellij.tact.psi.TactForEachValue | ||
import org.ton.intellij.tact.psi.TactPsiFactory | ||
import javax.swing.Icon | ||
|
||
abstract class TactForEachValueMixin(node: ASTNode) : ASTWrapperPsiElement(node), TactForEachValue { | ||
override fun getName(): String? = identifier.text | ||
|
||
override fun setName(name: String): PsiElement { | ||
identifier.replace(TactPsiFactory(project).createIdentifier(name)) | ||
return this | ||
} | ||
|
||
override fun getTextOffset(): Int = identifier.textOffset | ||
|
||
override fun getIcon(flags: Int): Icon = TactIcons.VARIABLE | ||
} |
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
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
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
Oops, something went wrong.