Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for statementSeparator (1.25 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreter.kt

                }
            }
    
            val pluginSpec by debug {
                pluginIdSpec + kotlinDslSpec
            }
    
            val firstLines by debug {
                zeroOrMore(pluginSpec * statementSeparator())
            }
    
            val lastLine by debug {
                optional(pluginSpec * wsOrNewLine())
            }
    
            token(LBRACE) * wsOrNewLine() *
                firstLines *
                lastLine *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

                else -> {
                    // no advancing, we don't want to consume whatever is there
                    unitSuccess
                }
            }
        }
    
    
        internal
        fun statementSeparator(): Parser<Unit> = {
            var seenSeparator = false
            while (tokenType != null) {
                when (tokenType) {
                    WHITE_SPACE -> {
                        if (hasNewLine()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
Back to top