- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for expectSingleOfKind (0.45 sec)
-
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt
val childrenOfWrappingClass = tree.children(toplevelNode(tree, CLASS)) val wrappingClassBody = childrenOfWrappingClass.expectSingleOfKind(CLASS_BODY) val childrenOfWrappingClassBody = tree.children(wrappingClassBody) val wrappingClassInitializer = childrenOfWrappingClassBody.expectSingleOfKind(CLASS_INITIALIZER) val childrenOfWrappingClassInitializer = tree.children(wrappingClassInitializer)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 22:06:18 UTC 2024 - 31.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/LightTreeUtil.kt
internal fun LighterASTNode.expectKind(expected: IElementType) { check(isKind(expected)) } internal fun List<LighterASTNode>.expectSingleOfKind(expected: IElementType): LighterASTNode = this.single { it.isKind(expected) } internal fun LighterASTNode.isKind(expected: IElementType) = this.tokenType == expected internal
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 13:47:09 UTC 2024 - 7.3K bytes - Viewed (0)