Skip to content

Commit 5c9eee0

Browse files
authored
Merge pull request #83 from anboralabs/restyled/psi-impl
Restyle Annotators
2 parents fdc4610 + 81553fb commit 5c9eee0

13 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
package co.anbora.labs.firebase.ide.annotator
22

33
class HighlightingAnnotator {
4-
}
4+
}

src/main/kotlin/co/anbora/labs/firebase/ide/annotator/PathVariableHighlightAnnotator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ class PathVariableHighlightAnnotator : FirebaseAnnotator() {
3535
}
3636
}
3737
}
38-
}
38+
}

src/main/kotlin/co/anbora/labs/firebase/ide/editor/FirebaseQuoteHandler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ package co.anbora.labs.firebase.ide.editor
33
import co.anbora.labs.firebase.lang.core.psi.FirebaseRulesTypes.STRING
44
import com.intellij.codeInsight.editorActions.SimpleTokenSetQuoteHandler
55

6-
class FirebaseQuoteHandler: SimpleTokenSetQuoteHandler(STRING)
6+
class FirebaseQuoteHandler: SimpleTokenSetQuoteHandler(STRING)

src/main/kotlin/co/anbora/labs/firebase/ide/inspections/DuplicateFunctionsInspection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ private fun checkPathVariable(element: FirebaseRulesFullPathStatement, holder: P
4646

4747
private fun markDuplicate(element: FirebaseElement, holder: ProblemsHolder) {
4848
holder.registerProblem(element, "Duplicate definitions with name `${element.text}`", ProblemHighlightType.ERROR)
49-
}
49+
}

src/main/kotlin/co/anbora/labs/firebase/ide/inspections/WeakRulesInspection.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ private fun checkWeakRule(element: FirebaseRulesConditionalBlock, holder: Proble
3030
if (booleanStm?.text == FIREBASE_TRUE) {
3131
holder.registerProblem(booleanStm, "Weak rule, this is not recommended for production environments.", ProblemHighlightType.WEAK_WARNING)
3232
}
33-
}
33+
}

src/main/kotlin/co/anbora/labs/firebase/lang/core/psi/FirebaseNameIdentifierOwner.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ package co.anbora.labs.firebase.lang.core.psi
33
import com.intellij.psi.PsiNameIdentifierOwner
44

55
interface FirebaseNameIdentifierOwner : FirebaseNamedElement,
6-
PsiNameIdentifierOwner
6+
PsiNameIdentifierOwner

src/main/kotlin/co/anbora/labs/firebase/lang/core/psi/FirebaseNamedElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ interface FirebaseNamedElement : FirebaseElement,
1212

1313
val nameElement: PsiElement?
1414
get() = findLastChildByType(IDENTIFIER)
15-
}
15+
}

src/main/kotlin/co/anbora/labs/firebase/lang/core/psi/ext/PsiElement.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fun PsiElement.childrenByType(type: IElementType): Sequence<PsiElement> =
1414
childrenWithLeaves.filter { it.elementType == type }
1515

1616
fun PsiElement.findLastChildByType(type: IElementType): PsiElement? =
17-
childrenByType(type).lastOrNull()
17+
childrenByType(type).lastOrNull()

src/main/kotlin/co/anbora/labs/firebase/lang/core/psi/impl/FirebaseNameIdentifierOwnerImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ abstract class FirebaseNameIdentifierOwnerImpl(
88
node: ASTNode
99
) : FirebaseNamedElementImpl(node), FirebaseNameIdentifierOwner {
1010
override fun getNameIdentifier(): PsiElement? = nameElement
11-
}
11+
}

src/main/kotlin/co/anbora/labs/firebase/lang/core/psi/impl/FirebaseNamedElementImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ abstract class FirebaseNamedElementImpl(
1818
override fun getNavigationElement(): PsiElement = nameElement ?: this
1919

2020
override fun getTextOffset(): Int = nameElement?.textOffset ?: super.getTextOffset()
21-
}
21+
}

src/main/kotlin/co/anbora/labs/firebase/lang/core/psi/mixings/IdentifierMixing.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ import co.anbora.labs.firebase.lang.core.psi.impl.FirebaseNameIdentifierOwnerImp
55
import com.intellij.lang.ASTNode
66

77
abstract class IdentifierMixing(node: ASTNode): FirebaseNameIdentifierOwnerImpl(node), FirebaseRulesIdentifierExpr {
8-
}
8+
}

src/main/resources/inspectionDescriptions/DuplicateFunctionsDeclaration.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
<body>
33
Multiple functions has the same name and arguments.
44
</body>
5-
</html>
5+
</html>

src/main/resources/inspectionDescriptions/FirebaseWeakRules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
See https://firebase.google.com/docs/rules/rules-behavior.
66
</body>
7-
</html>
7+
</html>

0 commit comments

Comments
 (0)