Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for KotlinLexer (0.19 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/KotlinGrammarTest.kt

    }
    
    
    private
    fun <T> Parser<T>.consumeFrom(input: String): String {
        val kotlinLexer = KotlinLexer()
        val result = kotlinLexer.let { lexer ->
            lexer.start(input)
            this(lexer)
        }
        if (result is ParserResult.Failure) {
            throw Exception(result.reason)
        }
        return input.substring(0, kotlinLexer.currentPosition.offset)
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/PrecompiledScriptPlugin.kt

        }
    
        return null
    }
    
    
    private
    fun KotlinLexer.hasFurtherTokens() = tokenType != null
    
    
    private
    fun KotlinLexer.packageDefinitionFound() = tokenType == KtTokens.PACKAGE_KEYWORD
    
    
    private
    val packageParsingAbortIdentifiers = setOf("import", "buildscript", "plugins", "pluginManagement", "initscript")
    
    
    private
    fun KotlinLexer.tooLateForPackageStatement(): Boolean {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

            }
            if (seenSeparator) unitSuccess
            else failure("Expecting STATEMENT SEPARATOR, but not found")
        }
    
        private
        fun KotlinLexer.skipWhitespace() {
            skipWhitespace(ignoresNewline)
        }
    
        private
        fun KotlinLexer.skipWhitespace(ignoreNewLine: Boolean) {
            while (tokenType != null) {
                when {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/Parser.kt

    import org.intellij.lang.annotations.Language
    import org.jetbrains.kotlin.com.intellij.lang.impl.PsiBuilderFactoryImpl
    import org.jetbrains.kotlin.lexer.KotlinLexer
    import org.jetbrains.kotlin.parsing.KotlinLightParser
    import org.jetbrains.kotlin.parsing.KotlinParserDefinition
    
    
    private
    val lexer by lazy {
        KotlinLexer()
    }
    
    
    private
    val parserDefinition by lazy {
        KotlinParserDefinition()
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Lexer.kt

        SearchingBlockStart,
        SearchingBlockEnd
    }
    
    
    private
    fun KotlinLexer.parseQualifiedName(): String =
        StringBuilder().run {
            while (tokenType == IDENTIFIER || tokenType == KtTokens.DOT) {
                append(tokenText)
                advance()
            }
            toString()
        }
    
    
    private
    fun KotlinLexer.skipWhiteSpaceAndComments() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/CodeGenerator.kt

     */
    
    package org.gradle.kotlin.dsl.accessors
    
    import org.gradle.api.plugins.ExtensionAware
    
    import org.gradle.kotlin.dsl.support.unsafeLazy
    
    import org.jetbrains.kotlin.lexer.KotlinLexer
    import org.jetbrains.kotlin.lexer.KtTokens
    
    
    internal
    data class AccessorScope(
        private val targetTypesByName: HashMap<AccessorNameSpec, HashSet<TypeAccessibility.Accessible>> = hashMapOf()
    ) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 9.5K bytes
    - Viewed (0)
Back to top