This file contains hidden or 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
| package com.squareup.anvil.compiler | |
| import org.jetbrains.kotlin.backend.common.IrElementTransformerVoidWithContext | |
| import org.jetbrains.kotlin.backend.common.extensions.IrGenerationExtension | |
| import org.jetbrains.kotlin.backend.common.extensions.IrPluginContext | |
| import org.jetbrains.kotlin.backend.common.ir.addChild | |
| import org.jetbrains.kotlin.backend.common.ir.addSimpleDelegatingConstructor | |
| import org.jetbrains.kotlin.backend.common.ir.createImplicitParameterDeclarationWithWrappedDescriptor | |
| import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.WARNING | |
| import org.jetbrains.kotlin.cli.common.messages.MessageCollector |
This file contains hidden or 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
| /** | |
| * Used to process events returned by the UI layer in the scope that runs our presenters, which | |
| * usually is `PresenterCoroutineScope`. Without this wrapper events would be processed on the | |
| * main thread and could potentially block the UI or cause lag. | |
| * | |
| * Furthermore, the returned lambda is remembered as state within the composable, which allows | |
| * to make [BaseModel] implementations data classes. Without remembering every [BaseModel] instance | |
| * would not equal another instance, since different lambda instances are never equal to each | |
| * other. | |
| * |
This file contains hidden or 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
| /* | |
| * Copyright 2025 Ralf Wondratschek | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
This file contains hidden or 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
| #!/bin/bash | |
| set -euo pipefail | |
| KTFMT_VERSION="0.60" | |
| show_help() { | |
| cat << EOF | |
| Usage: scripts/ktfmt.sh [OPTIONS] [DIRECTORY|FILE...] | |
| Format Kotlin files in the codebase using ktfmt with the Google style --google-style |
OlderNewer