compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/dumpKotlinLike.kt (81 lines): - line 61: // TODO support - line 63: // TODO support - line 86: TODO add more options: - line 118: // TODO: omit local visibility? - line 165: // TODO support -- for unsupported nodes - line 166: // TODO no test -- for the cases with no test(s) - line 169: /* TODO: - line 266: // TODO move text to the message? - line 267: // TODO better process expressions and statements - line 300: // TODO omit super class for enums, annotations? - line 301: // TODO omit Companion name for companion objects? - line 302: // TODO do we need to print info about `thisReceiver`? - line 303: // TODO special support for objects? - line 330: // TODO no test - line 387: p(isExpect, "expect") // TODO actual? - line 422: // TODO don't print visibility if it's not changed in override? - line 505: // TODO no test with more than one generic parameter with more supertypes - line 529: // TODO don't print `Any?` as upper bound? - line 533: // TODO abbreviation - line 593: // TODO better rendering for enum entries - line 615: // TODO no tests, looks like IrAnonymousInitializer has annotations accidentally. - line 619: // TODO no tests, looks like there are no irText tests for isStatic flag - line 650: // TODO name? - line 651: // TODO is it worth to merge code for IrConstructor and IrSimpleFunction? - line 652: // TODO dispatchReceiverParameter -- outer `this` for inner classes - line 653: // TODO return type? - line 807: // TODO no test - line 809: // TODO no test - line 816: // TODO print it.type too for varargs? - line 832: // TODO index? - line 842: // TODO better rendering for modifiers on property and accessors - line 864: // TODO don't print borrowed flags and assert that they are same with a setter or don't borrow? - line 865: // TODO we can omit type for set parameter - line 872: // TODO assert that typeparameters and receiver are ~same for getter ans setter - line 892: /* TODO better rendering for - line 908: // TODO share code with visitField? - line 925: // TODO generate better name for set parameter ``? - line 987: // TODO correspondingPropertySymbol - line 1012: // TODO think about better rendering - line 1069: // TODO should we print something here? - line 1086: // TODO special blocks using `origin` - line 1087: // TODO inlinedFunctionSymbol for IrReturnableBlock - line 1088: // TODO no tests for IrReturnableBlock? - line 1108: // TODO type for IrContainerExpression - line 1130: // TODO process specially builtin symbols - line 1160: // TODO origin - line 1164: // TODO which super? smart mode? - line 1171: // TODO where from to get type arguments for a class? - line 1172: // TODO render it also for static members (from java) - line 1202: // TODO flag to print type param name? - line 1217: // TODO should we print something for omitted arguments (== null)? - line 1260: // TODO skip call to Any? - line 1265: // TODO skip call to Enum? - line 1272: // TODO flag to omit comment block? - line 1298: // TODO assert that `expression.classSymbol.owner == data.parentAsClass - line 1299: // TODO better rendering - line 1304: // TODO omit the name when it's possible - line 1305: // TODO Is there a difference between `` and ``? - line 1306: // TODO Is name of function used somewhere? How it's important? - line 1307: // TODO Use lambda syntax when possible - line 1308: // TODO don't print visibility? - line 1380: // TODO which supper? smart mode? - line 1405: // TODO what if symbol is unbound? - line 1416: // TODO support - line 1417: // TODO no test - line 1424: // TODO label - line 1425: // TODO optionally don't print Unit when return type of returnTargetSymbol is Unit - line 1436: // TODO use triple quotes when possible? - line 1437: // TODO optionally each argument at a separate line, another option add a wrapping - line 1464: // TODO no tests for escaping quotes (',") - line 1474: // TODO better rendering? - line 1475: // TODO varargElementType - line 1513: // TODO print if when possible? - line 1585: // TODO render loop reference - line 1629: // TODO reflectionTarget - line 1634: // TODO do we need additional fields (field, getter, setter)? - line 1640: // TODO do we need additional fields (delegate, getter, setter)? - line 1660: // TODO marker to show that it's dynamic call - line 1701: // TODO description - line 1706: // TODO description - line 1707: // TODO better rendering native/objcexport-header-generator/impl/k1/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportTranslator.kt (15 lines): - line 168: // TODO: stop inheriting KotlinBase. - line 252: // TODO: consider adding exception-throwing impls for these. - line 267: // TODO: consider adding exception-throwing impls for these. - line 486: // TODO: add some marks about modality. - line 529: // TODO: add some marks about modality. - line 574: // TODO: consider checking that signatures for bases with same selector/name are equal. - line 713: if (method is ConstructorDescriptor && !method.constructedClass.isArray) { // TODO: check methodBridge instead. - line 939: // TODO: the same warning for such classes. - line 960: // TODO: translate `where T : BaseClass, T : SomeInterface` to `BaseClass* ` - line 962: // TODO: expose custom inline class boxes properly. - line 982: ObjCIdType // TODO: use Kotlin upper bound. - line 995: // TODO: more precise types can be used. - line 1102: // TODO: consider other namings. - line 1197: // TODO: consider avoiding code generation for unavailable. - line 1227: // TODO: handle more special cases. kotlin-native/runtime/src/objc/cpp/ObjCExportNumbers.mm (15 lines): - line 190: value_ = value; // TODO: check fits. - line 245: value_ = value; // TODO: check fits. - line 252: value_ = value; // TODO: check fits. - line 273: // TODO: consider generating it by compiler. - line 342: value_ = value; // TODO: check fits. - line 386: value_ = value; // TODO: check fits. - line 430: value_ = value; // TODO: check fits. - line 474: value_ = value; // TODO: check fits. - line 518: value_ = value; // TODO: check fits. - line 562: value_ = value; // TODO: check fits. - line 606: value_ = value; // TODO: check fits. - line 650: value_ = value; // TODO: check fits. - line 694: value_ = value; // TODO: check fits. - line 701: value_ = value; // TODO: check fits. - line 745: value_ = value; // TODO: check fits. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IrToBitcode.kt (13 lines): - line 80: // TODO: Is this correct? - line 231: // TODO: consider eliminating mutable state - line 896: // TODO: add some smartness here. Maybe if package of the field is in never accessed - line 973: // TODO: find the better solution. - line 1113: * TODO: why does `clang++` check `typeid` even if there is only one catch clause? - line 1178: // TODO: does basic block order influence machine code order? - line 1748: // TODO: probably can be removed, as they are inlined. - line 2154: if (!functionGenerationContext.isAfterTerminator()) { // TODO should we solve this problem once and for all - line 2299: // TODO: May be tie up inline lambdas to their outer function? - line 2523: return lifetimes.getOrElse(callee) { /* TODO: make IRRELEVANT */ Lifetime.GLOBAL } - line 2558: // TODO: Intrinsify? - line 2824: // TODO: Try to not use moduleId. - line 2891: // TODO: shall we put that into the try block? libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/consumption/UklibConsumptionSetupAction.kt (12 lines): - line 113: * FIXME: Changing the requested Usage in jvm configurations will influence existing compatibility/disambiguation rules. Maybe - line 117: * FIXME: This set of configurations is not correct. At the least: - line 168: * FIXME: Unit test that Java base plugin resolvable configurations can consume Uklibs. Right now this is only covered by crude IT - line 412: * FIXME: Do we have to reproduce other Java-specific compatibility rules here? In runtime as well? - line 437: * FIXME: This compatibility rule is wrong: KT-81349 - line 447: * FIXME: Remove this case in KT-81350 - line 477: * FIXME: No, disambiguation is supposed to work through [SelectBestMatchingVariantForKmpResolutionUsage] - line 480: * FIXME: There is a quirk in KotlinPlatformType.CompatibilityRule where "common" can select any other platform type. We - line 492: * FIXME: Fix and test host-specific resolvable configurations, right now they will not resolve? - line 498: * FIXME: Remove this case in KT-81350 - line 521: * FIXME: Right now this disambiguation rule gets registered after [JavaEcosystemSupport.UsageDisambiguationRules] and - line 532: * FIXME: Is this also a compatibility for dom-api-compat compiler/daemon/src/org/jetbrains/kotlin/daemon/CompileServiceImpl.kt (12 lines): - line 186: // TODO: encapsulate operations on state here - line 272: // TODO: and some goes here - line 319: // TODO: Report `IrGeneration` (FIR2IR) time - line 576: // TODO: consider possibilities to handle OutOfMemory - line 594: // TODO: consider matching compilerId coming from outside with actual one - line 676: @Suppress("DEPRECATION") // TODO: get rid of that parsing KT-62759 - line 722: @Suppress("DEPRECATION") // TODO: get rid of that parsing KT-62759 - line 842: // TODO: consider tying a session to a client and use this info to cleanup - line 938: // TODO: add more checks (e.g. is it a repl session) - line 1083: // TODO: handover should include mechanism for client to switch to a new daemon then previous "handed over responsibilities" and shot down - line 1118: // TODO: seems that the second part of condition is incorrect, reconsider: - line 1147: // TODO: implement some behaviour here, e.g.: kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objcexport/ObjCExportCodeGenerator.kt (12 lines): - line 207: // TODO: pass referenced functions explicitly - line 316: ObjCValueType.BOOL -> zext(value, llvm.int8Type) // TODO: zext behaviour may be strange on bit types. - line 524: // TODO: consider including this into ObjCExportCodeSpec. - line 666: // TODO: find out what to use instead here and in the dependent code - line 843: // TODO: call [NSObject init] if it is a constructor? - line 844: // TODO: check for abstract class if it is a constructor. - line 887: // TODO: consider merging this handler with function cleanup. - line 1033: // TODO: cache bridges. - line 1070: is BlockPointerBridge -> kotlinFunctionToRetainedObjCBlockPointer(typeBridge, kotlinValue) // TODO: use stack-allocated block here. - line 1111: // TODO: consider placing interception into the converter to reduce code size. - line 1118: // TODO: use stack-allocated block here instead. - line 1247: // TODO: in some cases the return sequence will have redundant retain-release pair: compiler/backend/src/org/jetbrains/kotlin/codegen/inline/MethodInliner.kt (11 lines): - line 152: // TODO: investigate LocalVariablesSorter removing (see also same code in RemappingClassBuilder.java) - line 182: //TODO: need poping of type but what to do with local funs??? - line 244: if (/*INLINE_RUNTIME.equals(owner) &&*/ isInvokeOnLambda(owner, name)) { //TODO add method - line 275: nop() // add something for a line number to bind onto (TODO what line number?) - line 346: //TODO add skipped this and receiver - line 373: } else if (isAnonymousConstructorCall(owner, name)) { //TODO add method - line 374: //TODO add proper message - line 399: //TODO: add new inner class also for other contexts - line 628: //TODO deep index calc could be more precise - line 634: //TODO check closure - line 809: // TODO extract isLocalReturn / isNonLocalReturn, see processReturns kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/RTTIGenerator.kt (10 lines): - line 39: // TODO: extend logic here by taking into account final acyclic classes. - line 60: // TODO: maybe perform deeper analysis to find surely acyclic types. - line 109: // TODO: it used to be a single int32 ABI version, - line 152: // TODO: use LLVMAddAlias. - line 285: // TODO: compile-time resolution limits binary compatibility. - line 419: // TODO: shall we actually do that? - line 488: // TODO: Try to generate it here instead of importing from the runtime. - line 492: // TODO: specialize for "small" objects - line 498: // TODO: extract more code common with generate(). - line 532: // TODO: interfaces (e.g. FunctionN and Function) should have different colors. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/CodeGenerator.kt (10 lines): - line 117: // TODO: Alternative approach: lowering that changes origin of such functions to C_TO_KOTLIN_BRIDGE? - line 173: // TODO: Consider using different abstraction than `FunctionGenerationContext` for `generateFunctionNoRuntime`. - line 461: // TODO: find better place? - line 616: // TODO: remove if exactly unused. - line 643: // TODO: Should forbid all calls into runtime except for explicitly allowed. Also should impose the same restriction - line 645: // TODO: Consider using a different abstraction than `FunctionGenerationContext`. - line 1147: // TODO: properly handle C++ exceptions: currently C++ exception can be thrown out from try-finally - line 1269: // TODO: Get rid of the bitcast here by supplying the type in the GEP above. - line 1293: // TODO: get rid of exceptionHandler argument by ensuring that all called functions are non-throwing. - line 1651: // TODO: enable error throwing. kotlin-native/runtime/src/main/cpp/ObjCExport.mm (10 lines): - line 135: // TODO: consider making NSString subclass to avoid copying here. - line 203: // TODO: construct the protocol in compiler instead, because this case can't be handled easily. - line 417: // TODO: optimize: - line 470: // TODO: propagate [retainAutorelease] to the code below. - line 504: // TODO: consider removing this function. - line 924: // TODO: consider forbidding the class being abstract. - line 931: // TODO: it will probably never be requested, since such a class can't be instantiated in Kotlin. - line 998: // TODO: optimize by adding virtual adapters only for overridden methods. - line 1031: // TODO: it will probably never be requested, since such a class can't be instantiated in Objective-C. - line 1049: // TODO: KT-76128 – With swift export, this method should return the best fitting swift class, while class creation facilities should be moved elsewhere kotlin-native/performance/ring/src/main/kotlin/org/jetbrains/ring/CallsBenchmark.kt (10 lines): - line 166: // TODO: optimize fields accesses - line 175: // TODO: optimize fields accesses - line 184: // TODO: optimize fields accesses - line 194: // TODO: optimize fields accesses - line 209: // TODO: optimize fields accesses - line 218: // TODO: optimize fields accesses - line 228: // TODO: optimize fields accesses - line 243: // TODO: optimize fields accesses - line 274: // TODO: optimize fields accesses - line 295: // TODO: optimize fields accesses kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/EscapeAnalysis.kt (9 lines): - line 591: // TODO: suboptimal. May be it is possible somehow handle the entire component at once? - line 707: // TODO: Is it possible to do it in a more fine-grained fashion? - line 1136: // TODO: Remove redundant edges. - line 1166: // TODO: This is actually conservative. If a field is being read of some node, - line 1207: // TODO: This looks very similar to the system of disjoint sets algorithm. - line 1648: // TODO: To a setting? - line 1658: // TODO: Support other lifetimes - requires arenas. - line 1707: ptgNode.forcedLifetime = Lifetime.GLOBAL // TODO: Change to LOCAL when supported. - line 1802: // TODO somehow tag these object, so that GC could handle them properly. compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/ExpressionCodegen.kt (9 lines): - line 299: // TODO: refine this condition to not generate nullability assertions on parameters - line 302: // TODO: Implement this as a lowering, so that we can more easily exclude generated methods. - line 739: // some other reason, and thus `Result` is actually `Any?`. TODO: do this stuff at IR level? - line 761: // TODO: if results of `needsResultArgumentUnboxing` for `overriddenSymbols` are inconsistent, the boxedness - line 963: // TODO: should be owner != irFunction - line 976: mv.nop()/*TODO check RESTORE_STACK_IN_TRY_CATCH processor*/ - line 1127: // TODO consider adding special intrinsics for loop body markers instead of generating them manually. - line 1336: // TODO: generate a common `finally` for try & catch blocks here? Right now this breaks the inliner. - line 1475: // TODO transform one sort of access into the other? kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Indexer.kt (8 lines): - line 317: // TODO: clang_Cursor_getOffsetOfField is OK for anonymous, but only for the 1st level of such nesting - line 612: // FIXME: implement better solution - line 862: // TODO: Remove this limitation when functional types with long signatures are supported. - line 888: // TODO: also use nullability attributes of parameters and return value. - line 907: // TODO: this must be implemented with hasAttribute(), but hasAttribute() - line 928: // TODO: implement with clang_getToken after updating libclang. - line 1142: return null // TODO: make a more universal fix. - line 1165: // TODO: unavailable declarations should be imported as deprecated. compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalFirJvmCompilerRunner.kt (8 lines): - line 98: val targetId = TargetId(moduleName, "java-production") // TODO: get rid of magic constant - line 102: // TODO: probably shoudl be passed along with sourcesToCompile - line 103: // TODO: file path normalization - line 148: // TODO: add scripting support when ready in FIR - line 188: val allPlatformSourceFiles = linkedSetOf() // TODO: get from caller - line 238: // TODO: consider what to do if many compilations find a main class - line 243: // TODO: switch the whole IC to KtSourceFile instead of FIle - line 348: // TODO: modularJdkRoot (now seems only processed from the build file compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirCallCompletionResultsWriterTransformer.kt (8 lines): - line 85: // TODO: this is a temporary solution. - line 231: // TODO: Be aware of exponent - line 257: * TODO: In future, it would be nice to get rid of it and there's actually a way to do it – not using substitution overrides (see KT-61618) - line 289: // TODO: Add assertion that this function returns not-null only for BI and delegation inference - line 483: * TODO: Get rid of this function once [LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible] is removed - line 970: * TODO: Get rid of this function once [LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible] is removed - line 1073: // TODO: Avoid recursive transformation of statements again (KT-76677) - line 1384: // TODO: report warning with a checker and return true here only in case of errors, KT-59676 kotlin-native/runtime/src/main/cpp/std_support/Span.hpp (8 lines): - line 50: // TODO: Instead of U* it should just be a `contiguos_iterator` with a deduction guide. - line 56: // TODO: Instead of U* it should just be a `contiguos_iterator` with a deduction guide. - line 71: // TODO: Constructor from a range with a deduction guide. - line 176: // TODO: Instead of U* it should just be a `contiguos_iterator` with a deduction guide. - line 180: // TODO: Instead of U* it should just be a `contiguos_iterator` with a deduction guide. - line 193: // TODO: Constructor from a range with a deduction guide. - line 286: // TODO: as_bytes, as_writable_bytes - line 288: // TODO: Tags for ranges. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DevirtualizationAnalysis.kt (8 lines): - line 87: // TODO: Are globals initializers always called whether they are actually reachable from roots or not? - line 88: // TODO: With the changed semantics of global initializers this is no longer the case - rework. - line 573: // TODO: this is pessimistic handling of [DataFlowIR.Type.Virtual], think how to do it better. - line 922: // TODO: This is conservative. - line 1007: constraintGraph.virtualNode // TODO: OBJC-INTEROP-GENERATED-CLASSES - line 1121: // TODO: Unconservative way - when we can use it? - line 1122: // TODO: OBJC-INTEROP-GENERATED-CLASSES - line 1481: // TODO: Think how to evaluate different unfold factors (in terms of both execution speed and code size). compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrFileSerializer.kt (8 lines): - line 285: if (symbol.descriptor is ReceiverParameterDescriptor) // TODO: we use descriptor here. - line 317: symbol is IrFileSymbol -> IdSignature.FileSignature(symbol) // TODO: special signature for files? - line 539: // TODO: Consider generalization of this condition to the same module once the per-module deduplication (KT-75668) is implemented - line 588: // TODO: how do we assert that without descriptor? - line 1062: // TODO: make me a visitor. - line 1360: // TODO: consider not writing type if the property is public, similarly to metadata - line 1602: // TODO: is it Konan specific? - line 1681: // TODO: keep order similar kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/DebugUtils.kt (8 lines): - line 27: const val debugInfoVersion = 3 /* TODO: configurable? */ - line 88: /* TODO: figure out what here 2 means: - line 109: /* TODO: from LLVM sources is unclear what runtimeVersion corresponds to term in terms of dwarf specification. */ - line 119: // TODO: here should be DIFile as scope. - line 216: //TODO: need more investigations. - line 261: //TODO: not recursive. - line 325: // TODO: can we share the scope among all bridges? - line 331: type = debugInfo.subroutineType(generationState.runtime.targetData, emptyList()), // TODO: use proper type. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/TopLevelPhases.kt (8 lines): - line 86: llvmModuleName = "out", // TODO: Currently, all llvm modules are named as "out" which might lead to collisions. - line 203: // TODO: Make this work if we first compile all the fragments and only after that run the link phases. - line 442: // TODO: KonanLibraryResolver.TopologicalLibraryOrder actually returns libraries in the reverse topological order. - line 443: // TODO: Does the order of files really matter with the new MM? (and with lazy top-levels initialization?) - line 455: // TODO: KonanLibraryResolver.TopologicalLibraryOrder actually returns libraries in the reverse topological order. - line 456: // TODO: Does the order of files really matter with the new MM? (and with lazy top-levels initialization?) - line 479: // TODO: Consider extracting llvmModule and friends from nativeGenerationState and pass them explicitly. - line 482: // TODO: Consider dropping these in favor of proper phases dumping and validation. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/indy/LambdaMetafactoryArguments.kt (8 lines): - line 52: // TODO might use Kotlin-specific metafactory if there would be one. - line 56: // TODO might use Kotlin-specific metafactory if there would be one. - line 60: // TODO make sure indy and Kotlin bytecode inliner work well together - line 73: // TODO change after KT-78719 - line 106: // TODO special mode that would generate indy everywhere? - line 311: // TODO accept Example 3 if IFooMix is compiled with default interface methods - line 539: // TODO what if adapteeType and/or expectedType are type parameters with JVM primitive type upper bounds? - line 563: // TODO consider adding a special type annotation to force boxing on an inline class type regardless of its underlying type. kotlin-native/runtime/src/main/cpp/Porting.cpp (8 lines): - line 52: // FIXME: should set original CP back during the deinit of the program. - line 60: // TODO: use sizeBytes! - line 73: // TODO: use sizeBytes! - line 150: if (rv < 0) return; // TODO: this may be too much exotic, but should i try to print itoa(error) and terminate? - line 151: if (static_cast(rv) >= sizeof(buffer)) rv = sizeof(buffer) - 1; // TODO: Consider realloc or report truncating. - line 156: // TODO: Avoid code duplication. - line 162: if (rv < 0) return; // TODO: this may be too much exotic, but should i try to print itoa(error) and terminate? - line 163: if (static_cast(rv) >= sizeof(buffer)) rv = sizeof(buffer) - 1; // TODO: Consider realloc or report truncating. kotlin-native/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/Types.kt (8 lines): - line 16: * TODO: the behavior of [equals], [hashCode] and [toString] differs on Native and JVM backends. - line 91: // TODO: optimize - line 138: * TODO: consider providing an adapter instead of subtyping [CValues]. - line 149: // TODO: replace by [value]. - line 210: public abstract class COpaque(rawPtr: NativePtr) : CPointed(rawPtr) // TODO: should it correspond to COpaquePointer? - line 223: public typealias COpaquePointer = CPointer // FIXME (the comment is about the typealias, not its opt-in annotation) - line 430: // TODO remove these boolean <-> byte declarations - line 488: // TODO: ensure native floats have the appropriate binary representation compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/BodyGenerator.kt (8 lines): - line 84: // TODO Ideally, we should generate unreachable only for specific cases and preferable on declaration site. - line 259: ;; TODO KT-78898 K/Wasm: investigate if we can get additional info in catch_all blocks by going through JS - line 821: // TODO: Verify - line 824: //TODO: check why it could be needed - line 1144: // TODO: Investigate why? - line 1340: //TODO: This method needed because of IR has type inconsistency. We need to discover why is it and fix - line 1391: // TODO Shouldn't we keep nullability for subtype check? - line 1402: // TODO Shouldn't we throw ICE instead? plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/resolve/LazyScriptDescriptor.kt (7 lines): - line 99: // TODO: implement robust REPL/script selection - line 134: // TODO: use platform-specific configuration by default instead - line 146: ScriptDefinition::class, // Assuming that the ScriptDefinition class is loaded in the proper classloader, TODO: consider more reliable way to load or cache classes - line 194: // TODO: check if this is the behavior we want to have - see #KT-28916 - line 227: // TODO: we may want to treat getScriptingClass call here the same way as in scriptProvidedProperties - line 254: // TODO: use PositioningStrategies to highlight some specific place in case of error, instead of treating the whole file as invalid - line 396: // TODO: consider more precise annotation filtering kotlin-native/runtime/src/libbacktrace/c/dwarf.c (7 lines): - line 2450: /* Read through the .debug_info section. FIXME: Should we use the - line 2786: /* FIXME: If we are on a DOS-based file system, and the - line 2880: /* FIXME: If we are on a DOS-based file system, and the - line 3108: /* FIXME: Should we mark the high PC here? It seems - line 3159: /* FIXME: If we are on a DOS-based file system, - line 4184: /* FIXME: Should use backslash if DOS file system. */ - line 4291: /* FIXME: See if any libraries have been dlopen'ed. */ kotlin-native/runtime/src/gc/common/cpp/MarkAndSweepUtils.hpp (7 lines): - line 74: // TODO: Consider making it noinline to keep loop in `Mark` small. - line 106: // TODO: Consider moving it before processInMark to make the latter something of a tail call. - line 116: // TODO: Remove useless mm::ThreadRootSet abstraction. - line 134: // TODO: Remove useless mm::GlobalRootSet abstraction. - line 149: // TODO: This needs some tests now. - line 165: for (auto object : registry.lockForIter()) { // FIXME rename - line 173: // TODO: Let's not put permanent objects in here at all? kotlin-native/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/Utils.kt (7 lines): - line 58: // TODO: it is possible to implement chaining without recursion, - line 319: // TODO: find better name. - line 329: // TODO: optimize - line 372: // TODO: optimize other [cValuesOf] methods: - line 512: // TODO: fix, after KT-29627 is fixed. - line 572: // TODO: optimize - line 703: // TODO: consider renaming `memScoped` because it now supports `defer`. kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/NativeMem.kt (7 lines): - line 22: // TODO: do not use singleton because it leads to init-check on any access. - line 49: // TODO: optimize - line 59: // TODO: optimize - line 69: // TODO: optimize - line 79: // TODO: optimize - line 89: // TODO: optimize - line 99: // TODO: optimize compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/BodyResolveContext.kt (7 lines): - line 58: // TODO: Rename to postponed - line 92: // TODO: Remove it once LanguageFeature.EqualityConstraintForOperatorsUnderAssignments is gone KT-81144 - line 218: // TODO: the [skipCleanup] hack should be reverted on fixing KT-79107 - line 688: // TODO: temporary solution for avoiding problem described in KT-62712, flatten back after fix - line 745: // TODO: robuster matching and error reporting on no extension (KT-72969) - line 947: // TODO: the [skipCleanup] hack should be reverted on fixing KT-79107 - line 1042: // TODO: the [skipCleanup] hack should be reverted on fixing KT-79107 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/SetupConfiguration.kt (7 lines): - line 56: // TODO: allow overriding the prefix directly. - line 65: // TODO: Collect all the explicit file names into an object - line 87: // TODO: remove after 1.4 release. - line 142: // TODO: revise priority and/or report conflicting values. - line 261: // TODO: revise priority and/or report conflicting values. - line 269: // TODO: revise priority and/or report conflicting values. - line 483: // TODO: Support short names for current module in ObjC export and lift this limitation. compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaClass.kt (7 lines): - line 114: // TODO: the lazy superTypeRefs is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 143: // TODO: the lazy annotations is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 146: // TODO: the lazy declarations is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 150: // TODO: the lazy deprecationsProvider is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 155: // TODO: KT-68587 - line 163: * TODO: the lazy deprecationsProvider is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 177: // TODO: the lazy deprecationsProvider is a workaround for KT-55387, some non-lazy solution should probably be used instead compiler/frontend/src/org/jetbrains/kotlin/types/expressions/BasicExpressionTypingVisitor.java (6 lines): - line 177: // TODO : other members - line 178: // TODO : type substitutions??? - line 186: return components.dataFlowAnalyzer.checkType(typeInfo, expression, context); // TODO : Extensions to this - line 850: // TODO: something must be done for not to lose safe call chain information here - line 1273: // TODO: This gets computed twice: here and in extractDataFlowInfoFromCondition() for the whole condition - line 1465: // TODO : Relax? plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/resolve/refineCompilationConfiguration.kt (6 lines): - line 128: // TODO: consider dropping after complete migration - line 156: // TODO consider dropping and using disambiguation of the sources collection (KT-83502) - line 176: // TODO: add location information on refinement errors - line 230: // TODO: support knownFileBasedSources here as well - line 296: jvmGetScriptingClass(ann, contextClassLoader, hostConfiguration) as? KClass // TODO errors - line 327: // TODO: consider advanced matching using semantic similar to actual resolving compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/LocalDeclarationsLowering.kt (6 lines): - line 245: // TODO: this used to be a hack for the JVM bytecode inliner (which misbehaved when inline lambdas had no fields), - line 512: expression.type, // TODO functional type for transformed descriptor - line 732: // TODO: remap default type! - line 788: // TODO: consider using fields to access the closure of enclosing class. - line 1123: // TODO: For now IrFunctionExpression can only be encountered here if this was called from the inliner, - line 1175: // TODO: this should ideally run after initializers are added to constructors, but that'd place compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/EnumClassLowering.kt (6 lines): - line 126: // TODO except for `fixReferencesToConstructorParameters` this code seems to be obsolete - line 173: // TODO Don't apply to everything - line 368: // TODO Why not move to upper level? - line 369: // TODO Also doesn't fit the transformFlat-ish API - line 427: // TODO prettify - line 431: return listOf(declaration) // TODO not null? kotlin-native/runtime/src/alloc/legacy/cpp/ObjectFactory.hpp (6 lines): - line 33: // TODO: Consider merging with `MultiSourceQueue` somehow. - line 107: // TODO: This should throw OutOfMemoryError in the future if we add hard memory limits instead - line 179: // This call is performed without heap allocations. TODO: Test that no allocations are happening. - line 539: // TODO: Consider supporting TF_IMMUTABLE: mark instance as frozen upon creation. - line 550: // TODO: Consider supporting TF_IMMUTABLE: mark instance as frozen upon creation. - line 625: // TODO: Consider running it in the destructor instead. build.gradle.kts (6 lines): - line 108: // TODO: use "by extra()" syntax where possible - line 195: ":compiler:frontend.java", // TODO this is fe10 module but some utils used in fir ide now - line 239: ":compiler:fir:entrypoint", // TODO should not be in core modules but FIR IDE uses DependencyListForCliModule from this module - line 240: ":compiler:fir:fir2ir:jvm-backend", // TODO should not be in core modules but FIR IDE uses Fir2IrSignatureComposer from this module - line 241: ":compiler:fir:fir2ir" // TODO should not be in core modules but FIR IDE uses Fir2IrSignatureComposer from this module - line 848: // KTI-2670: TODO: don't invoke this obsolete task in KTI kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/bitcode/CompileToBitcodePlugin.kt (6 lines): - line 302: // TODO: Consider putting each module in a gradle project of its own. Current project should be used for grouping (i.e. reexporting all - line 353: // TODO: Must generally depend on googletest module headers which must itself depend on sources being present. - line 379: // TODO: Must generally depend on googletest module headers which must itself depend on sources being present. - line 436: // TODO: This is actually API dependency. Make it so. - line 531: // TODO: Make the default always null when tests compilation stops consuming so much memory. - line 625: // TODO: Check if this is still required. compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/scopes/jvm/SignatureUtils.kt (6 lines): - line 31: // TODO: `typeConversion` is only used for converting Java types into cone types, but shouldn't it be trivial - line 121: // TODO: what about primitive arrays? - line 141: is ConeErrorType -> Unit // TODO: just skipping it seems wrong - line 146: // TODO: 1. unannotated bounds are probably flexible, so this isn't right; - line 154: // TODO: pretty sure Java type conversion does not produce either of these - line 165: else -> Unit // TODO: throw an error? should check that Java type conversion/enhancement can only produce these cone types compiler/resolution/src/org/jetbrains/kotlin/resolve/multiplatform/ExpectedActualResolver.kt (6 lines): - line 26: // TODO: use some other way to determine that the declaration is from Kotlin. - line 28: // TODO: support non-source definitions (e.g. from Java) - line 99: // TODO: replace with 'singleOrNull' as soon as multi-module diagnostic tests are refactored - line 130: // TODO: optimize by caching this per actual-expected class pair, do not create a new substitutor for each actual member - line 138: // TODO: this might not work for members of inner generic classes - line 249: // TODO: Klibs still need to better handle source in deserialized descriptors. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/SymbolTable.kt (6 lines): - line 20: val signaturer: IdSignatureComposer?, // TODO: This is `null` only in FIR2IR. Consider to update API in the scope of KT-68475 - line 379: // TODO: probably this function should be completely removed, since it doesn't cache anything. KT-60375 - line 407: // TODO: move to extensions, KT-60376 - line 413: // TODO: move to extensions, KT-60376 - line 419: // TODO: move to extensions, KT-60376 - line 425: // TODO: move to extensions, KT-60376 compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirDeclarationsResolveTransformer.kt (6 lines): - line 208: // TODO: the [skipCleanup] hack should be reverted on fixing KT-79107 - line 395: // TODO: the [skipCleanup] hack should be reverted on fixing KT-79107 - line 532: // TODO: this generates some nodes in the control flow graph which we don't want if we - line 597: * TODO: reconsider the place where the function belong and it necessity after PCLA is implemented (KT-61740 for tracking) - line 623: // TODO: reconsider the approach here (KT-61781 for tracking) - line 930: // TODO Must be done within 'withFile' as the context - any the analyzer - is cleared as the first step. compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/ir/IrInlineReferenceLocator.kt (6 lines): - line 47: // TODO remove after KT-78719 - line 103: // TODO remove after KT-78719 - line 194: // TODO: this has some weird effects for inline functions in local classes, e.g. they - line 217: // TODO: if this class is an object local to an inline function, it could be regenerated, - line 248: // TODO remove after KT-78719 - line 287: // TODO remove after KT-78719 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/Autoboxing.kt (5 lines): - line 62: // TODO: should we handle the cases when expression type - line 184: || (expectedClass.isCompanion && expectedClass.parentAsClass.isObjCClass()) // TODO: a workaround for CMP-9000. - line 238: // TODO: check types has the same binary representation. - line 320: // TODO: it is better to get rid of it. - line 350: // TODO: fix DFG building and nullify the body instead. compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrBodyDeserializer.kt (5 lines): - line 244: /** TODO: [createClassifierSymbolForClassReference] is internal function */ - line 257: * TODO: Probably a bit more abstraction possible here up to [IrMemberAccessExpression] but at this point further complexization - line 298: // TODO: use real coordinates - line 533: // TODO: origin! - line 730: // TODO: provide some origin! compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/CoroutineTransformerMethodVisitor.kt (5 lines): - line 518: // TODO: Support crossinline suspend lambdas - line 823: // TODO: Can we use slot number for it? - line 1260: // TODO: Traverse CFG only once forward instead of traversing it backwards for each suspension point - line 1932: // TODO: HACK - line 1933: // TODO: Find correct label, which is OK to be used as end label. kotlin-native/Interop/Runtime/src/jvm/kotlin/kotlinx/cinterop/JvmCallbacks.kt (5 lines): - line 55: // TODO: floats, enums. - line 68: // TODO: No concurrent bag or something in Java? - line 192: // TODO: floats - line 230: // TODO: revise - line 237: isAccessible = true // TODO: undo kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/CBridgeGen.kt (5 lines): - line 137: // TODO: consider computing all arguments before converting. - line 316: // TODO: KT-82011 a global with Objective-C reference type may have a non-strong ownership, - line 340: // TODO: KT-82011 a global with Objective-C reference type may have a non-strong ownership, - line 524: this.arguments[0] = irGet(superClass) // TODO: check superClass statically. - line 1221: // TODO: optimize by using specialized Kotlin-to-ObjC converter. kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIrElementBuilders.kt (5 lines): - line 101: // TODO: @CLength should probably be used on types instead of properties. - line 111: // TODO: Should receiver be added? - line 295: .sortedBy { it.value } // TODO: Is it stable enough? - line 418: // TODO: if this enum defines e.g. a type of struct field, then it should be generated inside the struct class - line 829: // TODO: KT-79757 add @LimitedCompatibility(directAccess.reason) kotlin-native/runtime/src/main/cpp/Worker.cpp (5 lines): - line 284: // TODO: maybe use message from exception? - line 326: // TODO: some sanity check here? - line 746: // TODO: what do we do here? Shall we execute them? - line 752: // TODO: any more processing here? - line 958: case WorkerExceptionHandling::kDefault: // TODO: Pass exception object into the future and do nothing in the default case. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/AutoboxingTransformer.kt (5 lines): - line 44: // TODO workaround for callable references - line 52: // TODO: Track & insert parents for temporary variables - line 154: // // TODO: Default parameters are passed as nulls and they need not to be unboxed. Fix this - line 173: // TODO: Revisit - line 209: // TODO: Set parent of local variables compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/FirLocalVariableAssignmentAnalyzer.kt (5 lines): - line 164: // TODO: this incorrectly affects separate branches that are visited after this one: - line 278: // TODO: this has the same problem as above: - line 290: // TODO: this should never return null. Also somehow throwing an exception here leads to weird effects: - line 561: // TODO: liveness analysis - return/throw/break/continue terminate the flow. - line 571: // TODO: this is not entirely correct (the lambda might be nested deep inside an expression), but also this kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cexport/CAdapterApiExporter.kt (5 lines): - line 86: // TODO: handle properties. - line 98: // TODO: handle properties. - line 113: // TODO: handle properties. - line 163: // TODO: Pass temp and output files explicitly and untie from `NativeGenerationState`. - line 173: // TODO: use namespace for C++ case? compiler/multiplatform-parsing/common/src/org/jetbrains/kotlin/kmp/parser/utils/KotlinExpressionParsing.kt (5 lines): - line 133: KtTokens.LTEQ, // TODO GTEQ, foo=x - line 412: * : memberAccessOperation postfixUnaryExpression // TODO: Review - line 638: // TODO: better recovery if FIRST(element) did not match - line 808: * // TODO : consider empty after -> - line 1406: * TODO: empty loop body (at the end of the block)? js/typescript-export-standalone/src/org/jetbrains/kotlin/js/tsexport/ExportModelGenerator.kt (5 lines): - line 37: // TODO: Collect implicitly exported declarations, see ImplicitlyExportedDeclarationsMarkingLowering - line 108: isStatic = false, // TODO: isEs6ConstructorReplacement || isStaticMethodOfClass - line 153: val isObjectGetter = false // TODO: Should be true for getInstance functions of objects - line 170: else -> // TODO: add correct default implementations processing - line 244: // TODO: Use [] syntax instead of prohibiting compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/jsAstUtils.kt (5 lines): - line 375: // TODO: Do not create IIFE at all? (Currently there is no reliable way to create temporary variable in current scope) - line 629: // TODO maybe it's better to fix in JsExpressionStatement - line 640: // TODO: This doesn't produce good results if the node originates from an expression body - line 658: // FIXME: fileIdentity is used to distinguish between different files with the same paths. - line 668: // TODO: If the source file is not available at path (e. g. it's an stdlib file), use heuristics to find it. build-common/src/org/jetbrains/kotlin/incremental/ChangesCollector.kt (5 lines): - line 33: //TODO for test only: ProtoData or ProtoBuf - line 37: //TODO change to immutable map - line 102: //TODO fqName is not unique. It's package and can be present in both java and kotlin - line 113: //TODO fqName is not unique. It's package and can be present in both java and kotlin - line 163: //TODO remember all sealed parent classes kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/ObjCStubs.kt (5 lines): - line 78: val names = getKotlinParameterNames(forConstructorOrFactory) // TODO: consider refactoring. - line 238: // TODO: Should we deprecate it as well? - line 320: this // TODO: exclude methods that are marked as unavailable in [container]. - line 475: // TODO: handle the case when protocol getter stub can't be compiled. - line 520: // TODO: map Protocol type to ObjCProtocol instead. compiler/backend/src/org/jetbrains/kotlin/codegen/inline/InternalFinallyBlockInliner.java (5 lines): - line 62: // TODO seems incorrect and maybe useless: exclusive ends shall not be checked, misses "marker" instruction checks - line 241: nextTempNonLocalVarIndex += nonLocalReturnType.getSize(); //TODO: do more wise indexing - line 297: //TODO: note that on return expression we have no variables - line 449: //TODO rewrite to clusters - line 474: //TODO add assert compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FunctionReferenceLowering.kt (5 lines): - line 53: // TODO: Currently, origin of callable references explicitly written in source code is null. Do we need to create one? - line 106: // TODO MetafactoryArgumentsResult.Failure.FunctionHazard? - line 170: // TODO MetafactoryArgumentsResult.Failure.FunctionHazard? - line 339: 0 // TODO generic function reference? - line 811: // TODO fix testSuspendUnitConversion compiler/fir/checkers/checkers-component-generator/src/org/jetbrains/kotlin/fir/checkers/generator/diagnostics/FirDiagnosticsList.kt (5 lines): - line 331: // TODO: change it to KtSuperTypeEntry when possible (after re-targeter implementation) - line 350: // TODO: Consider creating a parameter list position strategy and report on the parameter list instead - line 771: // TODO: reset to KtExpression after fixing lambda argument sources - line 1555: // TODO: val ACCESSOR_FOR_DELEGATED_PROPERTY by error1() - line 1642: // TODO: need to cover `by` as well as delegate expression kotlin-native/runtime/src/main/cpp/ObjCInterop.mm (5 lines): - line 70: // TODO: suboptimal; consider specializing methods for each class. - line 81: auto* classData = GetKotlinClassData(self); // TODO: suboptimal; consider specializing. - line 118: objc_msgSendSuper2(&s, @selector(release)); // FIXME is this correct? - line 128: objc_msgSendSuper2(&s, @selector(dealloc)); // FIXME is this correct? - line 193: // TODO: something of the above can be cached. compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ir/Ir.kt (5 lines): - line 31: // TODO: KT-77494 - move this class ids into more appropriate places. - line 127: // TODO: KT-77494 - move this callable ids into more appropriate places. - line 257: // TODO KT-77388 rename to `BackendNativeSymbolsImpl` - line 405: // TODO: Do it lazily. - line 481: // TODO: this is strange. It should be a map from IrClassSymbol core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/typeEnhancement/signatureEnhancement.kt (5 lines): - line 72: // TODO type parameters - line 73: // TODO use new type parameters while enhancing other types - line 74: // TODO Propagation into generic type arguments - line 171: // TODO: would not enhancing raw type arguments be sufficient? - line 197: // TODO: investigate if it's really can be a null (check properties' with extension overrides in Java) kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/jvm/main.kt (5 lines): - line 178: // TODO: handle missing properties? - line 186: val relativeToRoot = mutableMapOf() // TODO: handle clashes - line 229: // TODO: don't scan the entire tree, skip subdirectories according to globs. - line 386: // TODO: if a library has partially included headers, then it shouldn't be used as a dependency. - line 526: // TODO (KT-81433): Reconsider how exactly the export in P.V. feature should work in further versions (ex: 2.4.0) libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/publication/locateOrRegisterArchiveUklibTask.kt (5 lines): - line 78: * FIXME: We can still enter the transforms for interproject dependencies with missing files. - line 164: * FIXME: Rewrite this. KotlinJvmTarget creates it's usages (variants) in AbstractKotlinTarget.kotlinComponents and we want to get these - line 169: // FIXME: Test that stubJvmVariant inherits dependencies from relevant configurations - line 227: * FIXME: Remove this extendsFrom after OSIP-667 - line 245: * FIXME: Remove this extendsFrom after OSIP-667 compiler/psi/parser/src/org/jetbrains/kotlin/parsing/KotlinExpressionParsing.java (5 lines): - line 69: // TODO GTEQ, foo=x - line 345: * : memberAccessOperation postfixUnaryExpression // TODO: Review - line 641: // TODO: better recovery if FIRST(element) did not match - line 814: * // TODO : consider empty after -> - line 1413: * TODO: empty loop body (at the end of the block)? compiler/backend/src/org/jetbrains/kotlin/codegen/inline/AnonymousObjectTransformer.kt (5 lines): - line 374: //TODO for inline method make public class - line 495: // TODO: this is only really necessary if there will be a name *and* type clash. - line 524: // TODO: check if this is enough to support lambdas that have no field equivalent because they are only used - line 526: // TODO: these lambdas' captures should have no fields either. - line 532: //TODO: some of such parameters could be skipped - we should perform additional analysis compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/TopDownAnalyzerFacadeForJVM.kt (5 lines): - line 222: // TODO: get rid of duplicate invocation of CodeAnalyzerInitializer#initialize, or refactor CliLightClassGenerationSupport - line 248: // TODO: consider putting extension package fragment providers into the dependency module - line 255: // TODO: remove dependencyModule from friends - line 280: // TODO: limit this scope to the Java source roots, which the module has in its CONTENT_ROOTS - line 344: packageAccessHandler = null, // TODO: This is a speed optimization used by Native. Don't bother for now. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ScriptGenerator.kt (5 lines): - line 90: // TODO: probably unnecessary filtering - line 135: // TODO: initializer - line 136: // TODO: do not keep direct links - line 217: // TODO: check if this is a correct place to do it - line 232: // TODO: consider code deduplication libraries/tools/kotlin-gradle-plugin/build.gradle.kts (5 lines): - line 111: // TODO: remove in KT-70247 - line 185: commonImplementation(project(":native:kotlin-klib-commonizer-api")) // TODO: consider removing in KT-70247 - line 188: commonImplementation(project(":kotlin-util-klib-metadata")) // TODO: consider removing in KT-70247 - line 192: commonRuntimeOnly(project(":kotlin-compiler-runner")) { // TODO: consider removing in KT-70247 - line 673: // FIXME: Entry org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt is a duplicate compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/inference/BuilderInferenceSession.kt (5 lines): - line 271: return commonSystem.fixedTypeVariables as Map // TODO: SUB - line 299: // TODO: exclude injected variables - line 497: .associate { it.key to nonFixedTypesToResultSubstitutor.safeSubstitute(it.value as UnwrappedType) } // TODO: SUB - line 501: NewTypeSubstitutorByConstructorMap((resultingCallSubstitutor + nonFixedTypesToResult) as Map) // TODO: SUB - line 578: * TODO: remove it after moving `+=` resolve into OR mechanism compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/tsexport/ExportModelGenerator.kt (4 lines): - line 627: // TODO: rework it to stricter types instead of `any` for type parameters - line 950: // TODO: Cover these in frontend - line 956: nonNullType.isAny() -> ExportedType.Primitive.Any // TODO: Should we wrap Any in a Nullable type? - line 1123: // TODO: think about per class memoization libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/dependencyResolutionTests/ResolvableMetadataConfigurationTest.kt (4 lines): - line 117: @Ignore("TODO: KT-66375") - line 133: @Ignore("TODO: KT-66375") - line 146: @Ignore("TODO: KT-66375") - line 172: @Ignore("TODO: KT-66375") kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/MacroConstants.kt (4 lines): - line 35: // TODO: apply user-defined filters. - line 73: // Note: will be slow for a library with a lot of macros having unbalanced '{'. TODO: Optimize this case too. - line 170: // TODO: consider using CXUnsavedFile instead of writing the modified file to OS file system. - line 317: // TODO: check number of tokens and filter out empty definitions; compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/DaemonParams.kt (4 lines): - line 212: // TODO: implement "use default" value without specifying default, so if client and server uses different defaults, it should not lead to many params in the cmd line; use 0 for it and used different val for infinite - line 221: // TODO: consider implementing generic approach to it or may be replace getters with ones returning default if necessary - line 278: // TODO: expose sources for testability and test properly - line 320: // TODO: compare and override compiler/multiplatform-parsing/common/src/org/jetbrains/kotlin/kmp/lexer/Kotlin.flex (4 lines): - line 76: // TODO: prohibit '$' in identifiers? - line 80: // TODO: this one MUST allow everything accepted by the runtime - line 81: // TODO: Replace backticks with one backslash at the beginning - line 100: // TODO: introduce symbols (e.g. 'foo) as another way to write string literals libraries/scripting/jvm/src/kotlin/script/experimental/jvm/util/jvmClasspathUtil.kt (4 lines): - line 24: // TODO: consider moving all these utilites to the build-common or some other shared compiler API module - line 51: // TODO: consider removing - line 152: // TODO: investigate whether getting resources with empty name works in all situations - line 236: // TODO: PluginClassLoader uses filtering (mustBeLoadedByPlatform), consider using the same logic, if possible plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/services/FirReplSnippetConfiguratorExtensionImpl.kt (4 lines): - line 73: // TODO: add error or log, if necessary (see implementation for scripts) (KT-74742) - line 93: // TODO: add error or log, if necessary (see implementation for scripts) (KT-74742) - line 155: // TODO: deduplicate with the very similar code in the script configurator (KT-74741) - line 160: // TODO: check/support generics and other cases (KT-72638) compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/OptimisedWhenGenerator.kt (4 lines): - line 57: // TODO: consider supporting other cases - line 73: //TODO: Support all primitive types - line 102: // TODO test - line 288: // TODO test compiler/psi/parser/src/org/jetbrains/kotlin/lexer/Kotlin.flex (4 lines): - line 95: // TODO: prohibit '$' in identifiers? - line 99: // TODO: this one MUST allow everything accepted by the runtime - line 100: // TODO: Replace backticks with one backslash at the beginning - line 119: // TODO: introduce symbols (e.g. 'foo) as another way to write string literals kotlin-native/runtime/src/gc/cms/cpp/Barriers.cpp (4 lines): - line 129: // TODO decide whether it's really beneficial to NO_INLINE the slow path - line 141: // TODO Redundant if the destination object is black. - line 144: // TODO perhaps it would be better to pass the thread data from outside - line 220: // TODO reread the referee here under the barrier guard compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/PostponedArgumentsAnalyzer.kt (4 lines): - line 126: // TODO: Consider moving this part to FirCallResolver::resolveCallableReference (KT-74021) - line 276: // TODO: replace with `require(!lambda.analyzed)` when KT-54767 will be fixed - line 377: // TODO (KT-55837) questionable moment inherited from FE1.0 (the `haveSubsystem` case): - line 455: // TODO: Consider replacement with ArgumentTypeMismatch once KT-67961 is fixed kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIrDriver.kt (4 lines): - line 52: // TODO: Used only for JVM. - line 88: // TODO: don't mangle struct names because it wouldn't work if the struct - line 112: // TODO: should we add meta classes? - line 128: // TODO: consider exporting Objective-C class and protocol forward refs. compiler/testData/codegen/box/multiplatform/k2/annotationsViaActualTypeAliasFromBinary2.kt (4 lines): - line 35: // TODO: A a() default @A("1"); - line 39: // TODO: A[] aa() default {@A("2"), @A("3")}; - line 75: // TODO: val a: A = A("1"), - line 80: // TODO: val aa: Array = [A("2"), A("3")] compiler/resolution.common/src/org/jetbrains/kotlin/types/AbstractTypeApproximator.kt (4 lines): - line 205: // TODO: Restore check - line 206: // TODO: currently we can lose information about enhancement, should be fixed later - line 543: * TODO remove workaround when we can create captured types with external identity KT-65228. - line 551: // TODO: consider replacing content of the captured types together with KT-65228 compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/callUtil/callUtil.kt (4 lines): - line 40: // TODO: find what IDEA's used it - line 53: // TODO: find what IDEA's used it - line 59: // TODO: find what IDEA's used it - line 65: // TODO: find what IDEA's used it compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirPCLAInferenceSession.kt (4 lines): - line 250: * TODO: Currently, making it always returning "false" leads to few test failures - line 251: * TODO: due to some corner cases like annotations calls (KT-65465) - line 345: // TODO: Investigate why using `notFixedTypeVariables` instead of `allTypeVariables` leads to failure of the test (KT-64861) - line 388: * contained in partiallyResolvedCalls and candidate stores not receiver values, which are updated, (TODO: remove this comment after removal of updating values) kotlin-native/runtime/src/main/kotlin/kotlin/text/CharNative.kt (4 lines): - line 41: // TODO: Consider removing from public API - line 52: // TODO: Consider removing from public API - line 60: // TODO: Consider removing from public API - line 73: // TODO: Consider removing from public API compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/coroutines/StateMachineBuilder.kt (4 lines): - line 132: // TODO: exception table - line 445: // TODO: make sure elseBlock is added iff it really needs - line 628: // TODO: should it be lowered before? - line 687: // TODO: refact it with exception table, see coroutinesInternal.kt compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/KotlinIrLinker.kt (4 lines): - line 49: * TODO: provide a more clear API for enqueueing IR modules, KT-73819 - line 167: // TODO: we do have serializations for those, but let's just create a stub for now. - line 229: // TODO: fix IrPluginContext to make it not produce additional external reference - line 290: // TODO: consider skip deserializing explicitly exported declarations for libraries. kotlin-native/runtime/src/main/cpp/ReferenceOps.hpp (4 lines): - line 28: // TODO: Make sure these operations work with any kind of thread stopping: safepoints and signals. - line 30: // TODO: Consider adding some kind of an `Object` type (that wraps `ObjHeader*`) which - line 190: // FIXME probably most of the uses should instead use accessor - line 195: // TODO consider adding other operations compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/CallInterceptor.kt (4 lines): - line 68: // TODO try to save fields in Primitive -> then it is possible to move up next branch - line 69: // TODO try to create backing field if it is missing - line 138: val result = this.invokeWithArguments(argsForMethodInvocation) // TODO if null return Unit - line 164: // TODO check "result is Unit" kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/NativeIndex.kt (4 lines): - line 107: * TODO: Compilation hierarchy seems to require some refactoring. - line 115: val excludeSystemLibs: Boolean, // TODO: drop? - line 414: // TODO: floating type is not actually defined entirely by its size. - line 428: // TODO: refactor type representation and support type modifiers more generally. compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/deserialization/JvmBinaryAnnotationDeserializer.kt (4 lines): - line 449: // TODO: Rename this once property constants are recorded as well - line 455: // TODO: better to be in KotlinDeserializedJvmSymbolsProvider? - line 473: // TODO: load constant - line 474: // TODO: Given there is FirConstDeserializer, maybe this comment is obsolete? compiler/tests-common/testFixtures/org/jetbrains/kotlin/checkers/AbstractDiagnosticsTest.kt (4 lines): - line 131: // TODO: dirty hack, refactor this test so that it doesn't create ModuleDescriptor instances - line 352: // TODO: always use separate module mode, once analyzeFilesWithJavaIntegration can create multiple modules - line 382: // TODO: analyze with the correct platform, not always JVM - line 428: // TODO: diagnostics on common code reported during the platform module analysis should be distinguished somehow compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/FunctionalTypeUtils.kt (4 lines): - line 309: // TODO: add requirement - line 314: // TODO: add requirement - line 324: // TODO: add requirement - line 333: // ----------------- TODO fir utils compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/kotlinSignature/SignaturesPropagationData.java (4 lines): - line 84: //TODO: what to do? - line 154: // TODO: report a warning somewhere if there's more than one stable name in super functions - line 188: // TODO: Add propagation for other kotlin descriptors (KT-3621) - line 205: // TODO: remove this continue when KT-15747 is fixed kotlin-native/runtime/src/objc/cpp/ObjCExportClasses.mm (4 lines): - line 128: if (!permanent) { // TODO: permanent objects should probably be supported as custom types. - line 178: // TODO: write documentation. - line 247: // TODO: Make it okay to get/replace associated objects w/o runnable state. - line 372: // TODO: the code below makes some assumption on char, short, int and long sizes. compiler/frontend/src/org/jetbrains/kotlin/types/expressions/DoubleColonExpressionResolver.kt (4 lines): - line 203: return lhs.canBeConsideredProperExpression() && !expression.hasQuestionMarks /* TODO: test this */ - line 442: // TODO: do not lose data flow info maybe - line 478: /* isDebuggerContext = */ expression.suppressDiagnosticsInDebugMode() /* TODO: test this */ - line 822: // TODO: Maybe it makes sense to report all results when all of them are unsuccessful (NONE_APPLICABLE or something like this) compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/IrValidationPhase.kt (4 lines): - line 45: //.withTypeChecks() // TODO: Re-enable checking types (KT-68663) - line 46: //.withCheckers(IrTypeParameterScopeChecker) // TODO: Re-enable checking out-of-scope type parameter usages (KT-69305) - line 89: //.withTypeChecks() // TODO: Re-enable checking types (KT-68663) - line 103: //.withTypeChecks() // TODO: Re-enable checking types (KT-68663) compiler/fir/semantics/src/org/jetbrains/kotlin/fir/FirLookupTrackerComponent.kt (4 lines): - line 90: if (typeRef !is FirResolvedTypeRef) return // TODO: check if this is the correct behavior - line 103: // TODO: review all places that record resolved type as lookup and consider minimize the number of them; see #KT-66366 - line 106: if (source == null && fileSource == null) return // TODO: investigate all cases - line 107: if (type is ConeErrorType) return // TODO: investigate whether some cases should be recorded, e.g. unresolved compiler/frontend/cfg/src/org/jetbrains/kotlin/cfg/ControlFlowProcessor.kt (4 lines): - line 774: // TODO : primitive cases - line 975: // TODO : a context check - line 1372: // TODO : Support Type Arguments. Companion object may be initialized at this point"); - line 1433: // TODO: consider extracting last expression type logic to a common place compiler/fir/raw-fir/psi2fir/src/org/jetbrains/kotlin/fir/builder/PsiRawFirBuilder.kt (4 lines): - line 1128: // TODO: in case we have no primary constructor, - line 1703: // TODO: looks like we may loose the implicit imports here, find out whether and how the file could be configured too (KT-73847) - line 2446: // TODO: KT-75301: consider setting some special visibility for isFromReplSnippet == true case - line 2725: // TODO: probably implicit type should not be here compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/VariableReadinessCalculator.kt (4 lines): - line 40: // TODO: it would be probably better to use READY_FOR_FIXATION_UPPER here and to have - line 56: // TODO: consider deprioritizing Nothing in relation systems like `Nothing <: T <: SomeType` (see KT-76443) - line 65: // TODO: KT-82574 (consider preferring EQUALS constraints) - line 139: // TODO: KT-82574 (it's strange that lower constraint is stronger than equals constraint here) compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrVisitor.kt (4 lines): - line 845: error("No script receiver found") // TODO: check if any valid situations possible here - line 886: // TODO: the following change should be reverted, along with the one in [parentAccessorOfPropertyFromStack] on fixing KT-79107 - line 1380: * TODO this shouldn't be required anymore once KT-65997 is fixed. - line 1397: * TODO this shouldn't be required anymore once KT-65997 is fixed. kotlin-native/runtime/src/gc/common/cpp/TracingGCTest.hpp (4 lines): - line 46: // TODO: Clean GlobalObjectHolder after it's gone. - line 67: // TODO: Clean GlobalPermanentObjectHolder after it's gone. - line 86: // TODO: Clean GlobalObjectArrayHolder after it's gone. - line 105: // TODO: Clean GlobalCharArrayHolder after it's gone. libraries/tools/abi-validation/abi-tools/src/main/kotlin/org/jetbrains/kotlin/abi/tools/impl/klib/KlibAbiDumpFileMerger.kt (4 lines): - line 151: // TODO: wrap the line and cache the depth inside that wrapper? - line 637: // TODO: optimize - line 727: // TODO: can we avoid shifting the whole trailing part of the list? - line 733: // TODO: optimize the algorithm kotlin-native/runtime/src/main/cpp/std_support/Atomic.hpp (4 lines): - line 18: // TODO current implementation supports only pointer or integral T - line 30: // TODO: Consider using alternative ways of ordering memory operations - line 48: static_assert(sizeof(T) <= 16); // TODO support larger types if needed - line 109: // TODO implement fetch_*** functions for appropriate types native/commonizer/src/org/jetbrains/kotlin/commonizer/metadata/CirSerializers.kt (4 lines): - line 135: // TODO: nowhere to write constructor type parameters - line 160: // TODO unclear where to write backing/delegate field annotations, see KT-44625 - line 164: // TODO nowhere to write receiver annotations, see KT-42490 - line 191: // TODO nowhere to write receiver annotations, see KT-42490 native/commonizer/src/org/jetbrains/kotlin/commonizer/metadata/CirDeserializers.kt (4 lines): - line 84: annotations = emptyList(), // TODO nowhere to read receiver annotations from, see KT-42490 - line 112: backingFieldAnnotations = emptyList(), // TODO unclear where to read backing/delegate field annotations from, see KT-44625 - line 113: delegateFieldAnnotations = emptyList(), // TODO unclear where to read backing/delegate field annotations from, see KT-44625 - line 296: typeParameters = emptyList(), // TODO: nowhere to read constructor type parameters from compiler/testData/loadJava/compiledJava/annotations/PrimitiveValueInParam.java (4 lines): - line 6: // TODO: remove comments when fix in idea will be accepted - line 11: // TODO short s(); - line 12: // TODO byte b(); - line 17: // TODO char c(); kotlin-native/runtime/src/main/cpp/Memory.h (4 lines): - line 104: // TODO: RuntimeAssert on type_info()->IsArray()? - line 187: // TODO: When global initialization becomes lazy, this signature won't do. - line 283: // TODO adopt ref accessors - line 335: // TODO: Replace with direct access to ThreadRegistry. core/compiler.common.jvm/src/org/jetbrains/kotlin/load/java/typeEnhancement/AbstractSignatureParts.kt (4 lines): - line 20: // TODO: some of this might be better off as parameters - line 139: // TODO: clean up the representation of those cases in JavaTypeQualifiers - line 197: // TODO: what if e.g. one bound is nullable and another is not null for warnings? - line 249: // TODO: Let's reconsider this behavior at some point (KT-83384) compiler/ir/ir.tree/tree-generator/src/org/jetbrains/kotlin/ir/generator/IrTree.kt (4 lines): - line 270: TODO: consider dropping [$name] if it isn't used by any known plugin. - line 344: +descriptor("ClassDescriptor") // TODO special descriptor for anonymous initializer blocks - line 515: //TODO: make IrScript as IrPackageFragment, because script is used as a file, not as a class - line 527: // TODO: consider removing from here and handle appropriately in the lowering compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CandidateResolver.kt (4 lines): - line 172: // TODO: use constraint system to check if candidateKCallableType can be a subtype of expectedType - line 671: // TODO refactor TypeResolver - line 685: // TODO refactor TypeResolver - line 688: // TODO do not perform substitution for type arguments multiple times analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KaFe10Resolver.kt (4 lines): - line 236: // TODO: Handle ++ or -- operator for KtUnaryExpression - line 242: // TODO: Handle compound assignment - line 331: // TODO: We should prefer to compare symbols instead of descriptors, but we can't do so while symbols are not cached. - line 486: // TODO: consider demoting extension receiver to the first argument to align with FIR behavior. See test case compiler/testData/codegen/box/multiplatform/k1/annotationsViaActualTypeAliasFromBinary.kt (4 lines): - line 34: // TODO: A a() default @A("1"); - line 38: // TODO: A[] aa() default {@A("2"), @A("3")}; - line 74: // TODO: val a: A = A("1"), - line 78: // TODO: val aa: Array = [A("2"), A("3")] compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/IrElementToJsStatementTransformer.kt (4 lines): - line 141: // TODO assert that value is Unit? - line 213: // TODO: implement - line 237: //TODO what if body null? - line 247: //TODO what if body null? compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/LegacyVariableReadinessCalculator.kt (4 lines): - line 51: // TODO: it would be probably better to use READY_FOR_FIXATION_UPPER here and to have - line 58: // TODO: consider deprioritizing Nothing in relation systems like Nothing <: T <: SomeType (see KT-76443) - line 94: // TODO: Consider removing this kind of readiness, see KT-63032 - line 102: // TODO: try to reconsider (see KT-76518) kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cexport/CAdapterGenerator.kt (4 lines): - line 70: // TODO: is it correct? - line 72: // Do not export inline classes for now. TODO: add proper support. - line 311: // TODO: do we really need that in every function? - line 432: // TODO: fix me! compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/LightTreeRawFirDeclarationBuilder.kt (4 lines): - line 76: //TODO throw error - line 187: //TODO separate logic for both expression types - line 2190: //TODO make wrapper for result? - line 2477: //TODO specify error plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/services/FirScriptConfigurationExtensionImpl.kt (4 lines): - line 59: // TODO: left here because it seems it will be needed soon, remove suppression if used or remove the param if it is not the case - line 66: // TODO: find out some way to differentiate detection form REPL snippets, to allow reporting conflicts on FIR building - line 121: // TODO: copy type parameters? - line 232: // TODO: check/support generics and other cases (KT-72638) kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/Mappings.kt (4 lines): - line 53: // TODO: C primitive types should probably be generated as type aliases for Kotlin types. - line 191: clazz.nested("Var").type // TODO: improve - line 349: // TODO: this method must not exist. - line 451: // TODO: array type doesn't exactly correspond neither to pointer nor to value. compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinCoreEnvironment.kt (4 lines): - line 316: if (sourceCollectionIterations++ > 10) { // TODO: consider using some appropriate global constant - line 395: // TODO: add new Java modules to CliJavaModuleResolver - line 688: // TODO: consider some asserts to check important extension points - line 901: // TODO: refactor this to avoid registering unneeded extensions in the first place, and avoid using deprecated API. (KT-64296) compiler/cli/src/org/jetbrains/kotlin/cli/common/GroupedKtSources.kt (4 lines): - line 67: // TODO: the scripts checking should be part of the scripting plugin functionality, as it is implemented now in ScriptingProcessSourcesBeforeCompilingExtension - line 68: // TODO: implement in the next round of K2 scripting support (https://youtrack.jetbrains.com/issue/KT-55728) - line 89: // temporarily assume it is a script, see the TODO above - line 96: // TODO: remove then Scripts are supported in LT (probably different K2 extension should be written for handling the case properly) libraries/tools/kotlin-stdlib-gen/src/templates/Arrays.kt (4 lines): - line 56: // TODO: Make inlineOnly after KT-30015 is fixed. - line 75: // TODO: Make inlineOnly after KT-30015 is fixed. - line 403: // TODO: Use different implementations for JS - line 654: // TODO: inline arrayPlusCollection when @PublishedAPI is available analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt (4 lines): - line 61: // TODO Consider handling other non-ConeLookupTagBasedType types here (see KT-66418) - line 95: // TODO: check callee owner directly? - line 309: // TODO: This seems a little indirect. Is there a better way to do this? For FE1.0 there is - line 658: // TODO: handle local classes after KT-47135 is fixed compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/InlineClassDeclarationLowering.kt (4 lines): - line 59: // TODO: Support fake-overridden methods without boxing - line 161: if (irConstructor.isPrimary) return // TODO error() maybe? - line 236: // TODO: Support fake-overridden methods without boxing - line 237: if (function.isStaticMethodOfClass || !function.isReal) return // TODO error() compiler/testData/codegen/box/multiplatform/k2/annotations/annotationsViaActualTypeAliasFromBinary.kt (4 lines): - line 39: // TODO: val a: A = A("1"), - line 44: // TODO: val aa: Array = [A("2"), A("3")] - line 76: // TODO: A a() default @A("1"); - line 80: // TODO: A[] aa() default {@A("2"), @A("3")}; compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/scopes/JavaClassUseSiteMemberScope.kt (4 lines): - line 247: // TODO: Decide something for the case when property type is not computed yet - line 335: // TODO: add magic overrides from LazyJavaClassMemberScope.isVisibleAsFunctionInCurrentClass - line 478: // TODO: consider some more transparent approach - line 655: * TODO (KT-72771): generally this check is not needed, but there is a case with boxed vs unboxed primitives, for which plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/k2ScriptAnnotationResolution.kt (3 lines): - line 52: jvmGetScriptingClass(ann, contextClassLoader, hostConfiguration) as? KClass // TODO errors - line 136: // TODO: add support for class refs (KT-83500) - line 200: // TODO: implement. Probably need to change SourceCode.Position to accept offsets and then remap them later on reporting compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/InnerClassesLowering.kt (3 lines): - line 143: // TODO: is this the correct way to get the class? - line 280: // TODO remove after KT-78719 - line 310: // TODO callable references? libraries/stdlib/js/runtime/jsIntrinsics.kt (3 lines): - line 216: @Suppress("REIFIED_TYPE_PARAMETER_NO_INLINE") // TODO: mark `inline` and skip in inliner - line 239: // TODO: after the next bootstrap drop the body of this function, and uncomment the @JsIntrinsic annotation; - line 252: * TODO: after the next bootstrap drop the body of this function, @OptIn annotation and uncomment the @JsIntrinsic annotation; kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIr.kt (3 lines): - line 9: // TODO: Replace all usages of these strings with constants. - line 329: // TODO: Consider unifying these classes. - line 523: // TODO: should we support non-trivial constructors? compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsCallTransformer.kt (3 lines): - line 35: // TODO: use transparent block (e.g. JsCompositeBlock) - line 41: if (statements.isEmpty()) return JsPrefixOperation(JsUnaryOperator.VOID, JsIntLiteral(3)) // TODO: report warning or even error - line 61: // TODO: report warning or even error compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/PerfUtils.kt (3 lines): - line 102: perfCounters.addMeasurement(time = System.nanoTime() - startTime) // TODO: add support for time wrapping - line 116: // TODO: add support for time wrapping - line 134: // TODO: add support for time wrapping compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/SpecialBackendChecksTraversal.kt (3 lines): - line 46: * TODO: Should be moved to compiler frontend after K2. - line 751: // TODO: consider reporting a warning for C functions. - line 861: // TODO: report errors in frontend instead. compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/ConeResolutionAtoms.kt (3 lines): - line 199: // TODO: Handle somehow that kind of lack of information once KT-67961 is fixed - line 344: // TODO: Consider changing `!isPostponedBecauseOfAmbiguity` to `state == State.NOT_RESOLVED_YET` (KT-74021) - line 351: // TODO: Consider simplifying this (KT-74021) compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrModuleDeserializer.kt (3 lines): - line 33: // TODO: drop CompatibilityMode, KT-72100 - line 126: // TODO: figure out how it should work for K/N - line 261: override fun contains(idSig: IdSignature): Boolean = false // TODO: libraries/stdlib/build.gradle.kts (3 lines): - line 222: "-Xallow-kotlin-package", // TODO: maybe rename test packages - line 602: // TODO: progressiveMode = use build property 'test.progressive.mode' - line 808: // TODO: fix all warnings, enable -Werror compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/state/reflection/KFunctionState.kt (3 lines): - line 94: // TODO: probably needs adjustment to support context parameters. - line 112: // TODO do we need new class here? if yes, do we need different names for temp classes? - line 173: IrParameterKind.Context -> KParameter.Kind.VALUE // TODO: context parameter libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinSoftwareComponent.kt (3 lines): - line 84: // FIXME: Remove this, for now we definitely want to continue publishing existing KMP publication together with Uklib variants - line 204: // TODO Gradle Java plugin does that in a different way; check whether we can improve this - line 210: /** TODO Using attributes of a detached configuration is a small and 'conservative' fix for KT-29758, [HierarchyAttributeContainer] compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/descriptors/LazyClassMemberScope.kt (3 lines): - line 279: // TODO: this should be handled by lazy function descriptors - line 408: // TODO: this should be handled by lazy property descriptors - line 455: // TODO: can't test because we get types from cache for this case analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirJavaInteroperabilityComponent.kt (3 lines): - line 162: //TODO Check thread safety - line 448: // TODO: See if the given [useSitePosition] is an `inline` method - line 466: // TODO: can we approximate local types in type arguments *selectively* ? compiler/frontend/src/org/jetbrains/kotlin/resolve/constants/evaluate/ConstantExpressionEvaluator.kt (3 lines): - line 178: // TODO: Consider removing this check, because we already checked inner expression - line 829: // TODO: FIXME: see KT-10425 - line 870: // TODO: Should be replaced with descriptor.isConst compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/coroutines/JsSuspendFunctionsLowering.kt (3 lines): - line 290: // TODO: optimize by using the same property for different locals. - line 307: // TODO find out why some parents are incorrect - line 413: // TODO: use collectTailSuspendCalls. compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/KlibMetadataIncrementalSerializer.kt (3 lines): - line 33: // TODO: need a refactoring between IncrementalSerializer and MonolithicSerializer. - line 110: // TODO: For now, in the incremental serializer, we assume - line 118: // TODO: For now, in the incremental serializer, we assume core/descriptors/src/org/jetbrains/kotlin/descriptors/impl/FunctionDescriptorImpl.java (3 lines): - line 98: // TODO fill me - line 155: // TODO: uncomment and fix tests - line 849: // TODO : Lazy? kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/CastsOptimization.kt (3 lines): - line 162: // TODO: Support never succeeding casts (KT-77671). - line 232: // TODO: Support type hierarchy here (KT-77671). - line 288: // TODO: Support type hierarchy here (KT-77671). compiler/frontend/src/org/jetbrains/kotlin/resolve/BodyResolver.java (3 lines): - line 263: // TODO : Make sure the same thing is not initialized twice - line 295: ExpressionTypingServices typeInferrer = expressionTypingServices; // TODO : flow - line 518: // TODO: improve diagnostic when top level sealed inheritance is disabled libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/publication/UklibFromKGPModel.kt (3 lines): - line 50: * FIXME: Tie this implementation to the publication implementations that exists in KotlinTargets to make the dependency - line 186: * FIXME: Write FT with necessary KGP source set structures - line 188: * FIXME: Don't do anything if there are no metadata compilations? Isn't this against the idea that everyone must execute and bundle compiler/testData/klib/partial-linkage/inlineFunctions-noInliningInKlibs/main/m.kt (3 lines): - line 187: expectSuccess( // TODO: this should be fixed in JS, KT-56762 - line 331: expectSuccess( // TODO: this should be fixed in JS, KT-56762 - line 345: expectSuccess( // TODO: this should be fixed in JS, KT-56762 compiler/frontend.java/src/org/jetbrains/kotlin/synthetic/SamAdapterFunctionsScope.kt (3 lines): - line 101: if (!function.hasJavaOriginInHierarchy()) return null //TODO: should we go into base at all? - line 142: // TODO: replace this logic with a proper conversion in SamTypeConversions - line 203: // TODO: We should also record SAM lookups even when the interface is not SAM compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/BlockDecomposerLowering.kt (3 lines): - line 425: // TODO: consider decomposing only when it is really required - line 550: // TODO: do not wrap if value is pure (const, variable, etc) - line 602: // TODO: remove this when vararg is lowered kotlin-native/runtime/src/main/cpp/Runtime.cpp (3 lines): - line 124: // TODO: This may in fact reallocate TLS without guarantees that it'll be deallocated again. - line 170: // TODO: use RuntimeState. - line 191: // TODO: Consider exporting it to interop API. compiler/testData/klib/partial-linkage/inlineFunctions-withInliningInKlibs/main/m.kt (3 lines): - line 186: expectSuccess( // TODO: this should be fixed in JS, KT-56762 - line 370: expectSuccess( // TODO: this should be fixed in JS, KT-56762 - line 384: expectSuccess( // TODO: this should be fixed in JS, KT-56762 compiler/backend/src/org/jetbrains/kotlin/codegen/serialization/JvmSerializerExtension.kt (3 lines): - line 76: //TODO: support local delegated properties in new defaults scheme - line 148: // TODO: don't store type annotations in our binary metadata on Java 8, use *TypeAnnotations attributes instead - line 300: // TODO: make JvmStringTable implement NameResolver and use JvmProtoBufUtil#getJvmMethodSignature instead plugins/kotlinx-serialization/kotlinx-serialization.k2/src/org/jetbrains/kotlinx/serialization/compiler/fir/SerializationFirResolveExtension.kt (3 lines): - line 104: // TODO: check classSymbol for already added functions - line 138: result += SerialEntityNames.SAVE_NAME // TODO how check parameters?! - line 143: result += SerialEntityNames.LOAD_NAME // TODO how check parameters?! kotlin-native/runtime/src/main/cpp/StackTrace.cpp (3 lines): - line 125: // TODO: this implementation is just a hack, e.g. the result is inexact; - line 164: // TODO: this implementation is just a hack, e.g. the result is inexact; - line 319: // TODO: This is intended for runtime use. Try to avoid memory allocations and signal unsafe functions. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objc/ObjCCodeGenerator.kt (3 lines): - line 78: // TODO: this doesn't support stret. - line 89: // TODO: clang emits it with `invariant.load` metadata. - line 90: // TODO: Propagate the type here without using the typed pointer. kotlin-native/runtime/src/alloc/common/cpp/Allocator.hpp (3 lines): - line 18: // TODO: Move allocator-specific data and API here. - line 39: // TODO: Move into AllocatorTestSupport.hpp - line 53: // TODO: Move into AllocatorTestSupport.hpp compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirElementSerializer.kt (3 lines): - line 541: // TODO: rewrite accordingly after fixing #KT-58233 - line 568: // TODO: rewrite accordingly after fixing #KT-58233 - line 994: return -1 // TODO: serializeErrorType? compiler/backend/src/org/jetbrains/kotlin/codegen/state/KotlinTypeMapper.kt (3 lines): - line 597: //TODO test nested trait fun inlining - line 617: // TODO: for multi-file class part, they can be different - line 804: // TODO: avoid writing java/lang/Object if interface list is not empty kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/ir/interop/IrProviderForCEnumAndCStructStubs.kt (3 lines): - line 42: * TODO: integrate this provider into [KonanIrLinker.KonanInteropModuleDeserializer] - line 69: // TODO: These `findOrGenerate` calls generate a whole subtree. - line 115: // TODO: better error message? core/reflection.jvm/src/kotlin/reflect/jvm/internal/util.kt (3 lines): - line 228: // TODO: consider throwing exceptions such as AnnotationFormatError/AnnotationTypeMismatchException if a value of unexpected type is found - line 243: // TODO: this doesn't work because of KT-30013 - line 284: // TODO: wrap other exceptions kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/common/AbstractValueUsageTransformer.kt (3 lines): - line 29: * TODO: the implementation is originally based on [org.jetbrains.kotlin.psi2ir.transformations.InsertImplicitCasts] - line 32: * TODO: consider making this visitor non-recursive to make it more general. - line 280: // TODO: IrStringConcatenation, IrEnumEntry? compiler/backend/src/org/jetbrains/kotlin/codegen/inline/ReifiedTypeInliner.kt (3 lines): - line 185: // TODO: if `process*` returns false, then the marked sequence is invalid - simply leaving the marker in place - line 253: // TODO: refine max stack calculation (it's not always as big as +4) - line 273: // TODO: refine max stack calculation (it's not always as big as +2) kotlin-native/runtime/build.gradle.kts (3 lines): - line 133: "-fno-aligned-allocation", // TODO: Remove when all targets support aligned allocation in C++ runtime. - line 143: // TODO: Split out out `base` module and merge it together with `main` into `runtime.bc` - line 620: // TODO: replace with a more convenient user-facing task that can build for a specific target. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CacheBuilder.kt (3 lines): - line 47: // TODO: deleteRecursively might throw an exception! - line 399: // TODO: Run monolithic cache builds in parallel. - line 436: compilationSpawner.spawn(konanConfig.additionalCacheFlags /* TODO: Some way to put them directly to CompilerConfiguration? */) { compiler/ir/serialization.common/src/KotlinIr.proto (3 lines): - line 452: // TODO: we need an extension mechanism to accomodate new - line 549: repeated int64 overridden = 2 [packed=true]; // TODO: supposed to be deleted - line 631: // TODO: we need an extension mechanism to accomodate new compiler/frontend/src/org/jetbrains/kotlin/resolve/sinceKotlinUtil.kt (3 lines): - line 61: // TODO: combine wasExperimentalMarkerClasses in case of several members with the same minimal API version - line 73: // TODO: use-site targeted annotations - line 78: // TODO: combine wasExperimentalMarkerClasses in case of several associated declarations with the same maximal API version native/objcexport-header-generator/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportBaseDeclarations.kt (3 lines): - line 57: // TODO: add comment to the header. - line 73: // TODO: only if appears - line 84: // TODO: only if appears plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/pluginRegisrar.kt (3 lines): - line 65: // TODO: add jdk path and other params if needed - line 100: // TODO: refactor components and migrate the plugin to the project-independent operation - line 106: // TODO: add jdk path and other params if needed compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/ConstantValueGenerator.kt (3 lines): - line 91: // TODO: in `spreadOperatorInAnnotationArguments`, `@A(*arrayOf("a"), *arrayOf("b"))` is incorrectly - line 109: // TODO: in `annotationWithKotlinProperty`, `@Foo(KotlinClass.FOO_INT)` is parsed as if `KotlinClass.FOO_INT` - line 127: // TODO this `null` may actually reach codegen if the annotation is on an interface member's default implementation, compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirCallCompleter.kt (3 lines): - line 183: // TODO: Turn it into `require(storage.notFixedTypeVariables.isEmpty())` (KT-66759) - line 226: // TODO: Consider using `addSubtypeConstraintIfCompatible` both for Unit and Unit! (KT-72396) - line 513: // TODO: Hopefully this can be removed once we get rid of adding EQUALITY for Unit expected type (KT-72396) kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/nativeDistribution/NativeDistribution.kt (3 lines): - line 26: // TODO: Make an inline class after groovy buildscripts are gone. - line 219: @Suppress("OVERRIDE_DEPRECATION", "DEPRECATION") // TODO Drop this when updating to Gradle 9.0 - line 246: // TODO: Having tasks depend on this distribution is both errorprone compiler/daemon/src/org/jetbrains/kotlin/daemon/KotlinCompileDaemon.kt (3 lines): - line 128: // TODO: find minimal set of permissions and restore security management - line 157: // TODO: implement more reliable scheme - line 169: // TODO consider exiting without throwing kotlin-native/tools/llvm_builder/package.py (3 lines): - line 193: # TODO: Consider -DCMAKE_INSTALL_UCRT_LIBRARIES=ON as an alternative - line 207: # TODO: Enable after LLVM distribution patching. - line 411: # TODO: We probably can download some of these binaries ourselves. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/UklibFragmentPlatformAttribute.kt (3 lines): - line 78: * FIXME: Android configurations currently do not resolve consistently with the targets below - line 79: * FIXME: Request jvm transform in Android? - line 104: // FIXME: This is a temporary (KT-81394) workaround before proper external target support (KT-77074) kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/ContextUtils.kt (3 lines): - line 149: * TODO: using [llvmTargetData] usually results in generating non-portable bitcode. - line 161: * TODO: maybe it'd be better to replace with [IrDeclaration::isEffectivelyExternal()], - line 509: // TODO: Consider implementing them directly in the code generator. plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/K2ReplCompiler.kt (3 lines): - line 266: // TODO: ensure that currentLineId passing is only used for single snippet compilation - line 345: // TODO: from script config - line 352: // TODO: implement LT support, similarly as for the scripting (KT-83498) compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/StandaloneDeclarationGenerator.kt (3 lines): - line 32: // TODO: use this generator in psi2ir too - line 103: // TODO: corresponging class? - line 146: // TODO: KtElements compiler/tests-common/testFixtures/org/jetbrains/kotlin/checkers/BaseDiagnosticsTest.kt (3 lines): - line 171: // TODO: check there are no syntax errors in .java sources - line 237: // TODO: check java files too - line 482: //TODO: merge with isJavacSkipTest compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/ClassCodegen.kt (3 lines): - line 129: // TODO: the names produced by generators in this map depend on the order in which methods are generated; see above. - line 142: // TODO: reject repeated generate() calls; currently, these can happen for objects in finally - line 426: // TODO: inline lambdas are not marked `isInline`, and are generally used once, but may be needed kotlin-native/runtime/src/mm/cpp/RootSet.hpp (3 lines): - line 21: // TODO: Extremely useless class. Remove. - line 82: // TODO: Extremely useless class. Remove. - line 140: // TODO: These use separate locks, which is inefficient, and slightly dangerous. In practice it's compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/TailRecursionCallsCollector.kt (3 lines): - line 115: // TODO: the frontend generates diagnostics on calls that are not optimized. This may or may not - line 120: // TODO: check type arguments - line 137: // TODO: KT-15341 - if the tailrec function is neither `override` nor `open`, this is fine actually? libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/FatFrameworkTask.kt (3 lines): - line 429: // TODO: Handle this in a better way. - line 434: // TODO: What should we do with bundle id? - line 471: // TODO: handle bundle id. compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/DeclarationGenerator.kt (3 lines): - line 145: // TODO: Support re-export of imported functions. - line 197: // TODO: Redesign construction scheme. - line 370: .find { it.signature == method.signature && it.function.modality != Modality.ABSTRACT } // TODO: Use map compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/optimizations/PropertyAccessorInlineLowering.kt (3 lines): - line 39: // TODO: implement general function inlining optimization and replace it with - line 52: // TODO: temporary workarounds - line 148: // TODO: support constant setters libraries/stdlib/native-wasm/src/kotlin/text/Char.kt (3 lines): - line 238: // TODO: Make public when supplementary codepoints are supported. - line 247: codePoint // TODO: Implement this transformation for supplementary codepoints. - line 256: codePoint // TODO: Implement this transformation for supplementary codepoints. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/NativeSuspendFunctionLowering.kt (3 lines): - line 193: // TODO: optimize - it has square complexity. - line 405: is IrCall -> false // TODO: skip builtin operators. - line 432: } // TODO: consider inlining getOrThrow function body here. core/descriptors/src/org/jetbrains/kotlin/resolve/OverridingUtil.java (3 lines): - line 312: // TODO: compare erasure - line 383: // TODO: check outside of this method - line 717: // FIXME doesn't work as expected for flexible types: should create a refined signature. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/publication/ArchiveUklibTask.kt (3 lines): - line 37: // FIXME: use streams instead tmp files KT-75395 - line 41: // FIXME: This check will most likely be removed in KT-77005, but for now we keep it for tests only - line 58: // FIXME: Fail if we are trying to publish an empty uklib kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/BuiltinOperatorLowering.kt (3 lines): - line 101: // TODO: optimize boxing? - line 155: // TODO: don't use binaryType.nullable. - line 192: // TODO: areEqualByValue and ieee754Equals intrinsics are specially treated by code generator compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirExpressionsResolveTransformer.kt (3 lines): - line 315: // TODO: consider calling [addSmartcastIfNeeded] unconditionally (KT-77487) - line 1116: if (type.typeArguments.isNotEmpty()) return this // TODO: Incorrect for local classes, KT-59686 - line 1117: // TODO: Check equality of size of arguments and parameters? libraries/scripting/jvm-host/src/kotlin/script/experimental/jvmhost/jsr223/KotlinJsr223ScriptEngineImpl.kt (3 lines): - line 23: // TODO: reimplement without legacy REPL infrastructure - line 47: // TODO: consider applying the logic for any REPL, alternatively - develop other naming scheme to avoid clashes - line 92: // TODO: find a way to pass context to evaluation directly and avoid this hack kotlin-native/runtime/src/objc/cpp/ObjCExportCollections.mm (3 lines): - line 344: // TODO: super class implementation appears to be good enough. - line 355: // TODO: what about - line 479: // TODO: what about plugins/parcelize/parcelize-compiler/parcelize.backend/src/org/jetbrains/kotlin/parcelize/IrParcelSerializerFactory.kt (3 lines): - line 26: // TODO: More java collections? - line 27: // TODO: Add tests for all of these types, not just some common ones... - line 422: // TODO The old backend uses the hidden "read/writeRawFileDescriptor" methods. libraries/scripting/common/src/kotlin/script/experimental/host/configurationFromTemplate.kt (3 lines): - line 110: // TODO: consider deprecating host configuration updating here, it is better to do it via dedicated annotation parameter - line 126: // TODO: consider deprecating host configuration updating here, it is better to do it via dedicated annotation parameter - line 159: // TODO: remove this exception when gradle switches to the new definitions and sets the property accordingly plugins/jvm-abi-gen/src/org/jetbrains/kotlin/jvm/abi/JvmAbiMetadataProcessor.kt (3 lines): - line 57: // TODO: maybe jvm-abi-gen should throw this exception by default, and not only in tests. - line 179: // TODO: do not serialize private type aliases once KT-17229 is fixed. - line 189: // TODO: do not serialize private type aliases once KT-17229 is fixed. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/serialization/uklibSerialization.kt (3 lines): - line 26: // FIXME: Remove rezipping and the temporary directory KT-75395 - line 59: * // FIXME: Test rezipping in IT. Maybe use Gradle tools to handle unzipping of input files? - line 60: * // FIXME: Use the proper compression algorithm plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/KJvmReplCompilerBase.kt (3 lines): - line 76: // TODO: get rid of messageCollector to avoid creation of additional entities - line 111: // TODO: support case then JvmDependencyFromClassLoader is registered in non-first line - line 126: // TODO: ensure that currentLineId passing is only used for single snippet compilation kotlin-native/runtime/src/main/cpp/Saturating.hpp (3 lines): - line 197: // TODO: What to do with rhs==0? - line 313: // TODO: Saturated modulo: how to handle -MIN % -1? To satisfy - line 317: // TODO: Saturated negation: for signed types -MIN overflows MAX; but what to do for unsigned types? plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/ComposableFunctionBodyTransformer.kt (3 lines): - line 2131: // FIXME: This should probably use `declaration.startOffset`, but the K2 implementation - line 3036: // TODO double check how this works with local lambdas since we add a slot for its instance - line 3569: // TODO: we could make some small optimization here if we have multiple values passed kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/CacheBuilding.kt (3 lines): - line 27: // TODO: Use explicit parameter - line 44: // TODO: Extract necessary parts of context into explicit input. - line 54: // TODO: Explicit parameter kotlin-native/runtime/src/main/cpp/SingleThreadExecutor.hpp (3 lines): - line 20: // TODO: Try to generalize enough, so that FinalizerProcessor is implementable in terms of it. - line 22: // TODO: Try to generalize so enough, that Worker.cpp can be written on top of this. - line 24: // TODO: Makes sense to specialize Context to void when context is unneeded. compiler/frontend/src/org/jetbrains/kotlin/types/expressions/PatternMatchingTypingVisitor.kt (3 lines): - line 187: // TODO change scope according to the bound value in the when header - line 424: // TODO: Read the comment above, wait for resolution in KT-27252 and get rid of "reversed" call here - line 703: // TODO : Take smart casts into account? kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objc/ObjCDataGenerator.kt (3 lines): - line 76: // TODO: refactor usages and use [Global] class. - line 131: // TODO: add NonFragileABI_Class_CompiledByARC flag? - line 136: // TODO: stop using hard-coded values. kotlin-native/runtime/src/mm/cpp/Memory.cpp (3 lines): - line 42: // TODO: Consider additional filtering based on types: - line 58: // TODO: Consider additional filtering outlined above. - line 433: // TODO: Try to generate it in the code generator. compiler/testData/codegen/box/lower/forLoopsLowering/nested.kt (3 lines): - line 18: // TODO: complex analysis of IrReturnableBlock is required to find out actual return type is IntRange. - line 22: // TODO: complex analysis of IrReturnableBlock is required to find out actual return type is IntRange. - line 29: // TODO: complex analysis of IrReturnableBlock is required to find out actual return type is IntRange. plugins/power-assert/power-assert.backend/src/org/jetbrains/kotlin/powerassert/PowerAssertCallTransformer.kt (3 lines): - line 67: // TODO better way to determine which delegate to actually use - line 169: .filter { !it.owner.isFakeOverride } // TODO best way to find single access method? - line 177: .filter { !it.owner.isFakeOverride } // TODO best way to find single access method? compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/ResolveUtils.kt (3 lines): - line 131: // TODO: Try to get rid of those vague condition once KT-67867 is resolved in some way - line 148: // TODO: Consider simplifying the code once we've got some resolution on KT-67869 - line 710: is FirDeclarationOrigin.Plugin -> null // TODO: figure out what to do with plugin generated functions native/utils/src/org/jetbrains/kotlin/konan/util/DependencyProcessor.kt (3 lines): - line 261: * TODO: It looks like DependencyProcessor have two split responsibilities: - line 285: // TODO: Rework dependencies downloading to avoid storing the lock in the system properties. - line 311: // TODO: consider using different caches for different remotes. libraries/stdlib/jvm/src/kotlin/io/encoding/Base64JVM.kt (3 lines): - line 30: // TODO: Move to kotlin-stdlib-jdk8 and use the commented-out implementation above when KT-54970 gets fixed. - line 50: // TODO: Move to kotlin-stdlib-jdk8 and use the commented-out implementation above when KT-54970 gets fixed. - line 67: // TODO: Move to kotlin-stdlib-jdk8 and use the commented-out implementation above when KT-54970 gets fixed. compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraphBuilder.kt (3 lines): - line 395: // TODO: verify & enable this assertion? - line 1326: // TODO: this check is imprecise and can add redundant edges: - line 1335: // TODO: if the input to finally with that label is dead, then so should be the exit probably. KT-59725 compiler/frontend/src/org/jetbrains/kotlin/resolve/DelegatedPropertyResolver.kt (3 lines): - line 64: //TODO: check for 'operator' modifier! - line 335: // TODO resolved 'provideDelegate' function, which is not an operator - warning? - line 481: //TODO: diagnostics rendering does not belong here libraries/stdlib/native-wasm/src/kotlin/text/Regex.kt (3 lines): - line 145: // TODO: Harmony has a default constructor for MatchResult. Do we need it? - line 146: // TODO: Reuse the matchResult. - line 165: // TODO: expand and simplify compiler/util/src/org/jetbrains/kotlin/utils/KotlinPaths.kt (3 lines): - line 28: // TODO: uncomment deprecation and fix usages in the whole project - line 54: // TODO KT-78650: Include Wasm/stdlib into dist and replace this hardcode to something similar to how jsStdLibKlibPath is specified - line 112: // TODO: Maybe we need separate classpaths for compilers with and without the daemon compiler/util-klib/src/KlibMetadataProtoBuf.proto (3 lines): - line 41: // TODO: Unused. - line 42: // TODO: We need to have backend specific extension for versionings. - line 124: // TODO repeated org.jetbrains.kotlin.metadata.Annotation type_alias_annotation = 130; compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/index/JvmDependenciesIndexImpl.kt (3 lines): - line 19: // TODO: KT-58327 needs to be adapted/removed if we want compiler to be multithreaded - line 49: @Suppress("DEPRECATION") // TODO: fix deprecation - line 89: // TODO: KT-58327 probably should be changed to thread local to fix fast-path compiler/cli/cli-common/src/org/jetbrains/kotlin/utils/parametersMap.kt (3 lines): - line 21: } catch (e: Exception) { // TODO: find the exact exception type thrown then callBy fails - line 91: // TODO: check the logic of named/unnamed/tail(vararg or lambda) arguments matching - line 238: // TODO: Idea! Maybe we should check if the values in the array are compatible with [arrayComponentType] compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/InteropCallableReferenceLowering.kt (3 lines): - line 48: // TODO: Consider merging this lowering with CallableReferenceLowering (KT-78283). - line 115: // TODO: Do we need to set proper offsets? - line 385: // TODO: remap type parameters??? compiler/testData/ir/interpreter/primitives/uInt.kt (3 lines): - line 103: // TODO support later; In the current version inc() and dec() are not supported in the interpreter map KT-51065 - line 107: // TODO support later; Because it the way unsigned are represented in the interpreter this test causes an issue with unsigned being wrapped - line 131: // const val b2 = hashCode(10u) TODO support later; in current version method hashCode is missing libraries/stdlib/jvm/src/kotlin/reflect/TypesJVM.kt (3 lines): - line 90: // TODO: JvmSuppressWildcards - line 93: // TODO: declaration-site variance - line 236: // TODO: use getTypeName instead of this, when this code is migrated to JDK 8. native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/impl/BridgeProvider/TypeBridging.kt (3 lines): - line 121: // TODO: Right now, we just assume everything nominal that we do not recognize is a class. We should make this decision looking at kotlin type? - line 688: // TODO: support Optional on Range(s) and other tuple-based types properly - line 706: // TODO: think about it, as types like ranges seems possible here making first() call illegal (?) core/compiler.common.jvm/src/org/jetbrains/kotlin/load/java/AbstractAnnotationTypeQualifierResolver.kt (3 lines): - line 24: protected abstract val TAnnotation.key: Any // TODO: figure out if keying `resolvedNicknames` by `fqName` is safe - line 134: // TODO: the result of `forceWarning` will be overwritten - expected? Probably not. - line 186: // TODO: since we override the warning status, whether we force it in `extractNullability` is irrelevant. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExport.kt (3 lines): - line 46: // TODO: emit RTTI to the same modules as classes belong to. - line 165: // TODO: No need for such class in dynamic driver. - line 185: if (!config.isFinalBinary) return // TODO: emit RTTI to the same modules as classes belong to. plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/compilationContext.kt (3 lines): - line 120: // TODO: consider placing into a shared jar - line 173: // TODO: rewrite to avoid double processing of the options - line 274: // TODO: check if this is redundant and/or incorrect since the default is now taken from the host configuration anyway (the one linked to the compilation config) kotlin-native/runtime/src/main/cpp/SingleLockList.hpp (3 lines): - line 21: // TODO: Consider different locking mechanisms. - line 32: // TODO: Maybe just hide `Node` altogether? - line 101: // TODO: Consider making `Emplace` append to `last_`. compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/ir/JvmIrUtils.kt (3 lines): - line 78: // TODO lower @JvmName and @JvmExposeBoxed? - line 141: // TODO: Interface Parameters - line 479: // TODO: there's `context.classNameOverride`; theoretically it's only relevant for top-level members, plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/irLowerings/ScriptLowering.kt (3 lines): - line 74: // TODO fix parents in script classes - line 220: // TODO: remove as soon as main generation become an explicit configuration option - line 402: // TODO: process situation with multiple constructors (should probably be an error) compiler/backend/src/org/jetbrains/kotlin/codegen/inline/inlineCodegenUtils.kt (3 lines): - line 108: //TODO: we cannot construct proper classId at this point, we need to read InnerClasses info from class file - line 195: // TODO: improve this heuristic - line 422: // TODO dump frame if needed compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/TypeOperatorLowering.kt (3 lines): - line 145: // TODO extract null check elimination on IR somewhere? - line 472: // TODO change after KT-78719 - line 680: // TODO: Don't generate these casts in the first place compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/AbstractValueUsageTransformer.kt (3 lines): - line 32: * TODO: the implementation is originally based on [org.jetbrains.kotlin.psi2ir.transformations.InsertImplicitCasts] - line 35: * TODO: consider making this visitor non-recursive to make it more general. - line 267: // TODO: IrEnumEntry? compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/state/ExceptionState.kt (3 lines): - line 50: setCause(null) // TODO check this fact - line 100: // TODO remainder of the stack trace with "..." - line 125: // TODO do we really need this?... It will point to JVM stdlib kotlin-native/runtime/src/main/cpp/KAssert.h (3 lines): - line 38: // TODO: Support format string when `RuntimeAssertFailed` supports it. - line 66: // TODO: Consider using `CURRENT_SOURCE_LOCATION` and stacktraces when `kotlin::compiler::runtimeAssertsMode()` is not `kIgnore`. - line 80: // TODO: Consider using `CURRENT_SOURCE_LOCATION` and stacktraces when `kotlin::compiler::runtimeAssertsMode()` is not `kIgnore`. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/NameTables.kt (3 lines): - line 136: // TODO should we skip type parameters and use upper bound of type parameter when print type of value parameters? - line 173: // TODO: Use better hashCode - line 184: // TODO: Handle reserved suffix in FE compiler/incremental-compilation-impl/testFixtures/org/jetbrains/kotlin/incremental/TestGeneratorForICTests.kt (3 lines): - line 59: // TODO: https://youtrack.jetbrains.com/issue/KT-61602/JS-K2-ICL-Fix-muted-tests - line 64: // TODO: 'fileWithConstantRemoved' should be fixed in https://youtrack.jetbrains.com/issue/KT-58824 - line 78: //TODO: write a proper k2 multiplatform test runner KT-63183 compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/intrinsics/IntrinsicImplementations.kt (3 lines): - line 34: withExceptionHandler(environment) { // Exception handling is used only for indent actions; TODO: drop later - line 185: // TODO "clone" -> throw exception - line 269: // TODO may be use wrap compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/FunctionCodegen.kt (3 lines): - line 186: // TODO: maybe best to generate private default in interface as private - line 216: // TODO transform interface modality on lowering to DefaultImpls - line 278: // TODO: any simpler way to get to the value expression? libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/UklibInterprojectResolutionTests.kt (3 lines): - line 115: /** FIXME: KT-81055 java classes will not be filtered by [org.jetbrains.kotlin.gradle.tasks.canKlibBePassedToCompiler] */ - line 746: // FIXME: KT-81139: Why is :producer:commonizeCInterop missing here? - line 1026: // FIXME: KT-81375 the "a-jvm.jar" is a duplicate of "a/classes" native/objcexport-header-generator/impl/k1/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportNamer.kt (3 lines): - line 823: // TODO: handle clashes with NSObject methods etc. - line 1081: // TODO: Prevent mangling when objCName or swiftName is provided - line 1189: return this.replace('$', '_') // TODO: handle more special characters. core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/TypeDeserializer.kt (3 lines): - line 60: // TODO: don't load identical types from TypeTable more than once - line 248: // TODO: names - line 280: // TODO: support deserialization of local type aliases (see KT-13692) compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/InlineClassAbi.kt (2 lines): - line 39: // TODO: Apply type substitutions - line 108: // TODO: Move suspend function view creation before JvmInlineClassLowering. compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaMethod.kt (2 lines): - line 82: // TODO: the lazy deprecationsProvider is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 99: // TODO: KT-68587 plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/definitions/ScriptConfigurationsProvider.kt (2 lines): - line 25: // TODO: deprecate/optin in favor of K2 infrastructure (ScriptRefinedCompilationConfigurationCache for this one) - line 47: // TODO: consider fixing implementations and removing default implementation compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirContractChecker.kt (2 lines): - line 55: // TODO: (KT-72772) Decide whether some errors should be emitted even for not allowed contracts. - line 187: // TODO: enable in the future (KT-77175) kotlin-native/Interop/Indexer/src/main/kotlin/org/jetbrains/kotlin/native/interop/indexer/Utils.kt (2 lines): - line 967: // TODO: this map doesn't get cleaned up but adds quite significant performance improvement. - line 1004: // TODO: shall we free the buffer in this case? generators/interpreter/GenerateInterpreterMap.kt (2 lines): - line 46: // TODO next operation can be dropped after serialization introduction - line 321: // TODO can be drop after serialization introduction compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/ModulesStructure.kt (2 lines): - line 129: // TODO: these are roughly equivalent to KlibResolvedModuleDescriptorsFactoryImpl. Refactor me. - line 146: packageAccessHandler = null, // TODO: This is a speed optimization used by Native. Don't bother for now. core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/lazy/descriptors/LazyJavaScope.kt (2 lines): - line 234: // TODO: fix Java parameter name loading logic somehow (don't always load "p0", "p1", etc.) - line 237: // TODO: parameter names may be drawn from attached sources, which is slow; it's better to make them lazy compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/Utils.kt (2 lines): - line 177: // TODO expectedType can be missing for functions called as proxy - line 198: // TODO if vararg isn't last parameter compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/SubpackagesImportingScope.kt (2 lines): - line 42: //TODO: kept old behavior, but it seems very strange (super call seems more applicable) - line 51: //TODO: kept old behavior, but it seems very strange (super call seems more applicable) compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/SwitchOptimizer.kt (2 lines): - line 20: // TODO: reimplement optimization on top of IR - line 179: // TODO: support inline-class based primitives (Char, UByte, UShort, UInt) kotlin-native/runtime/src/libbacktrace/c/macho.c (2 lines): - line 362: /* FIXME: Perhaps it would be better to try to use a single - line 839: /* FIXME: What about cpusubtype? */ compiler/testData/diagnostics/testsWithStdLib/java/checkEnhancedUpperBounds.fir.kt (2 lines): - line 35: val x = A3() // TODO: support reporting errors on typealias constructor calls - line 36: val x2 = A<Int?>() // TODO: support reporting errors on typealias constructor calls compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/IncrementalPassThroughLookupTrackerComponent.kt (2 lines): - line 36: // TODO: although there are valid use cases for missing fileSource, the ignore may hide some possible bugs; consider stricter implementation - line 40: // TODO: the lookup by non-file source mostly doesn't work for the LT, so we cannot afford null file sources here native/objcexport-header-generator/impl/analysis-api/src/org/jetbrains/kotlin/objcexport/getObjCDeprecationStatus.kt (2 lines): - line 33: // TODO: consider avoiding code generation for unavailable. - line 52: // TODO: handle more special cases. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/utilities/LlvmPassesUtilities.kt (2 lines): - line 71: // TODO: Phase name in message - line 80: // TODO: Not safe at all plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/repl/ReplCodeAnalyzer.kt (2 lines): - line 212: // TODO: merge with org.jetbrains.kotlin.resolve.repl.ReplState when switching to new REPL infrastructure everywhere - line 213: // TODO: review its place in the extracted state infrastructure (now the analyzer itself is a part of the state) libraries/tools/kotlin-gradle-plugin-tcs-android/src/main/kotlin/org/jetbrains/kotlin/gradle/android/AndroidTargetPrototype.kt (2 lines): - line 102: /* TODO w/ Google: Find a way to deprecate this attribute */ - line 116: /* TODO w/ Google: Find a way to deprecate this attribute */ compiler/ir/serialization.jvm/src/org/jetbrains/kotlin/ir/backend/jvm/serialization/JvmIrLinker.kt (2 lines): - line 58: // TODO: implement special Java deserializer - line 140: // TODO: implement proper check whether `idSig` belongs to this module compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/descriptors/IrDescriptorBasedFunctionFactory.kt (2 lines): - line 103: // TODO: Lazieness - line 365: // TODO: eventualy delegate it to fakeOverrideBuilder compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/mapping/MethodSignatureMapper.kt (2 lines): - line 368: // TODO get rid of 'caller' argument - line 400: // TODO: get rid of this (probably via some special lowering) kotlin-native/runtime/src/mm/cpp/ExternalRCRef.cpp (2 lines): - line 96: // TODO: When assertions are disabled, exchange may pollute the - line 155: // TODO: A write-into-root-set barrier might be required here for other concurrent mark strategies. libraries/tools/kotlin-maven-plugin/src/main/java/org/jetbrains/kotlin/maven/kapt/KaptJVMCompilerMojo.java (2 lines): - line 148: // TODO separate directories for the generated class files, and recreate the generated classfile dir also - line 176: // TODO it seems for me that the target directory should not be in the compile classpath compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/IrTypeUtils.kt (2 lines): - line 29: // TODO: should each IrErrorType have own string representation? - line 31: // TODO: should we prohibit user classes called dynamic? compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreter.kt (2 lines): - line 505: // TODO use wrap??? - line 597: // TODO report as error after fix KT-52480 compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/NetworkUtils.kt (2 lines): - line 49: // TODO switch to InetAddress.getLoopbackAddress on java 7+ - line 56: // TODO consider some other ways to detect default to IPv6 addresses in this case compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/FirJavaFacade.kt (2 lines): - line 526: // TODO: check if this works properly with annotations that take the enum class as an argument - line 676: // TODO get rid of dependency on PSI KT-63046 kotlin-native/Interop/Runtime/src/jvm/kotlin/kotlinx/cinterop/JvmUtils.kt (2 lines): - line 47: // TODO: the functions below should eventually be intrinsified - line 118: // TODO: File(..).deleteOnExit() does not work on Windows. May be use FILE_FLAG_DELETE_ON_CLOSE? kotlin-native/runtime/src/gc/common/cpp/MainGCThread.hpp (2 lines): - line 58: // TODO outline as mark_.isolateMarkedHeapAndFinishMark() - line 83: // TODO: Consider having an always on sleeping finalizer thread. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/BackendPhases.kt (2 lines): - line 99: // TODO: move to nativeLoweringsOfTheFirstPhase after they moved to NativeLoweringPhases.kt - line 108: // TODO: After KT-73624, generate native diagnostic tests for `compiler/testData/diagnostics/irInliner/syntheticAccessors` core/metadata.jvm/src/org/jetbrains/kotlin/metadata/jvm/serialization/JvmStringTable.kt (2 lines): - line 17: // TODO: optimize by reordering records to minimize storage of 'range' fields - line 82: // TODO: move all records with predefined names to the end and do not write associated strings for them (since they are ignored) compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirSupertypesResolution.kt (2 lines): - line 246: // TODO: robuster matching and error reporting on no extension (KT-72969) - line 462: * TODO: Supertype resolution for generated classes is not supported in AA (KT-69404) core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedClassDescriptor.kt (2 lines): - line 271: // TODO: inject implementation - line 339: // TODO: report "cannot infer visibility" compiler/testData/ir/irText/expressions/funInterface/samConversionOnCallableReference.kt (2 lines): - line 14: // TODO should use an adapter function - line 22: // TODO should use an adapter function kotlin-native/runtime/src/main/cpp/MemoryUsageInfo.cpp (2 lines): - line 52: // TODO: Support more platforms - line 61: // TODO: Need a common implementation for such conversions. compiler/frontend.common.jvm/src/org/jetbrains/kotlin/load/java/structure/impl/classFiles/Annotations.kt (2 lines): - line 166: // TODO: process inner types and apply an annotation to the corresponding type component - line 185: // TODO: consider taking into account such annotations through returning wildcard itself as a target type (KT-40498) compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/JsIrLinkerLoader.kt (2 lines): - line 182: // TODO: deduplicate this code using part from klib.kt - line 196: packageAccessHandler = null, // TODO: This is a speed optimization used by Native. Don't bother for now. compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/dfa/FirDataFlowAnalyzer.kt (2 lines): - line 1186: // TODO: split or rewrite to simplify the cases, see KT-78107 - line 1258: } ?: return // TODO: do what if the result is known to be false? compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/InitializersLowering.kt (2 lines): - line 64: // TODO What about fields that were added by lowerings? e.g. captured outer class or locals? - line 75: val receiver = if (!declaration.isStatic) // TODO isStaticField compiler/testData/codegen/box/notNullAssertions/callAssertions.kt (2 lines): - line 102: // TODO: - line 118: // TODO: kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/TargetAbiInfo.kt (2 lines): - line 15: // TODO: We have [org.jetbrains.kotlin.native.interop.gen.ObjCAbiInfo] which does similar thing. - line 33: // TODO: We perform type unwrapping twice: one to get the underlying type, and then this one. compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/stages/ResolutionStages.kt (2 lines): - line 106: // TODO: store atoms for receivers in candidate - line 901: // TODO: consider reporting errors on bounded type variables by incompatible types but with other lower constraints, KT-59676 libraries/scripting/common/src/kotlin/script/experimental/api/kotlinType.kt (2 lines): - line 19: // TODO: copy properties from KType - line 34: // TODO: implement other approach for non-class types libraries/stdlib/wasm/src/kotlin/reflect/associatedObjectsImpl.kt (2 lines): - line 23: // TODO: Should be removed after bootstrap - line 26: // TODO: Should be renamed after bootstrap native/objcexport-header-generator/impl/k1/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportMapper.kt (2 lines): - line 53: // TODO: this method duplicates some of the [ObjCExportTranslatorImpl.mapReferenceType] logic. - line 92: // FIXME: this code must rely on type mapping instead of copying its logic. compiler/testData/diagnostics/testsWithJsStdLib/native/privateMembers.kt (2 lines): - line 3: // TODO: should we disable NOTHING_TO_INLINE in JS backend? - line 4: // TODO: uncomment declarations in case we decide to implement KT-14031 js/js.translator/testData/typescript-export/js/inheritance/inheritance.kt (2 lines): - line 54: @JsName("foo") // TODO: Should work without JsName - line 60: @JsName("foo") // TODO: Should work without JsName compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/LexicalScopeStorage.kt (2 lines): - line 66: //TODO: could not use += because of KT-8050 - line 77: //TODO: could not use += because of KT-8050 compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/stack/Frame.kt (2 lines): - line 58: // TODO speed up reverse iteration or do it forward - line 66: throw InterpreterError("$symbol not found") // TODO better message core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/components/RuntimeErrorReporter.kt (2 lines): - line 24: // TODO: specialized exceptions - line 30: // TODO: use DescriptorRenderer compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/metadata/KlibMetadataSerializer.kt (2 lines): - line 94: // TODO: we filter out expects with present actuals. - line 100: // TODO: this only filters classes for now. compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/InstructionsUnfolder.kt (2 lines): - line 267: // TODO is this correct behaviour? - line 407: // TODO this check can be dropped after serialization introduction kotlin-native/runtime/src/main/cpp/TypeInfo.h (2 lines): - line 135: // TODO: Consider providing a generic traverse method instead. - line 152: // TODO: Use debug info if it's present? kotlin-native/runtime/src/main/cpp/Console.cpp (2 lines): - line 50: // TODO: system stdout must be aware about UTF-8. - line 57: // TODO: system stderr must be aware about UTF-8. compiler/testData/diagnostics/testsWithStdLib/experimental/usageNotAsAnnotation.kt (2 lines): - line 30: fun f3(e: Experimental0 /* TODO */) {} - line 31: fun f4(u: OptIn0 /* TODO */) {} libraries/tools/kotlin-stdlib-docs-legacy/build-docs.xml (2 lines): - line 80: - line 225: analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/KaSymbolByFirBuilder.kt (2 lines): - line 269: is FirEnumEntrySymbol -> buildEnumEntrySymbol(firSymbol) // TODO enum entry should not be callable - line 579: * This have a few caveats when it comes to the inner classes. TODO Provide a reference to some more in-detail description of that. plugins/kapt/kapt-compiler/src/org/jetbrains/kotlin/kapt/stubs/ErrorTypeCorrector.kt (2 lines): - line 102: // TODO now the raw Java type is returned. In future we need to properly convert all type parameters - line 181: //TODO figure out if the containing method is an annotation method libraries/scripting/jvm/src/kotlin/script/experimental/jvm/jvmScriptingHostConfiguration.kt (2 lines): - line 61: // TODO: find out whether Transient fields are initialized on deserialization and if so, convert back to not-nullable val - line 98: // TODO: this check breaks testLazyScriptDefinition, find out the reason and fix compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirFakeOverrideGenerator.kt (2 lines): - line 85: // TODO: consider using here some light-weight functions instead of pseudo-real FirMemberFunctionImpl - line 167: // TODO: consider using here some light-weight functions instead of pseudo-real FirMemberFunctionImpl compiler/testData/codegen/box/ieee754/double.kt (2 lines): - line 30: //TODO: KT-14989 - line 36: //TODO: KT-14989 compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/JavaTypeConversion.kt (2 lines): - line 157: // TODO: this discards annotations on wildcards, allowed since Java 8 - what do they mean? - line 225: // TODO: check this libraries/scripting/jvm-host/src/kotlin/script/experimental/jvmhost/jsr223/KotlinJsr223InvocableScriptEngine.kt (2 lines): - line 39: // TODO: cache the method lookups? - line 75: // TODO: cache the method lookups? kotlin-native/runtime/src/mm/cpp/ObjectOps.cpp (2 lines): - line 20: // TODO: Make this work with GCs that can stop thread at any point. - line 35: // TODO: Make this work with GCs that can stop thread at any point. libraries/kotlinx-metadata/jvm/src/kotlin/metadata/jvm/KotlinModuleMetadata.kt (2 lines): - line 65: // TODO: move StringTableImpl to module 'metadata' and support module annotations here - line 102: ) { throwIfNotCompatible(it, lenient = false /* TODO */) } compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/javaAnnotationsMapping.kt (2 lines): - line 79: // TODO: remove after K1 build no more needed - line 385: * TODO: KT-60520 compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/SecondaryCtorLowering.kt (2 lines): - line 135: // TODO: replace parameters as well - line 252: // TODO Simplify? Is this needed at all? compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/VfsBasedProjectEnvironment.kt (2 lines): - line 84: // see comment and TODO in KotlinCoreEnvironment.registerKotlinLightClassSupport (KT-64296) - line 115: else -> null // TODO: find out whether other use cases should be supported native/objcexport-header-generator/impl/analysis-api/src/org/jetbrains/kotlin/objcexport/getObjCExportStubOrigin.kt (2 lines): - line 18: // TODO: Differentiate origins - line 19: // TODO: Extract kdoc from deserialized symbols native/commonizer/src/org/jetbrains/kotlin/commonizer/core/DeprecationAnnotationCommonizer.kt (2 lines): - line 90: // TODO: replace with `entries` when KT-62702 will be fixed - line 112: // TODO: replace with `entries` when KT-62702 will be fixed kotlin-native/runtime/src/gcScheduler/aggressive/cpp/SafePointTracker.hpp (2 lines): - line 33: // TODO: Consider replacing this naive cleaning with an LRU cache. - line 50: // TODO: Consider replacing mutex + global set with thread local sets sychronized on STW. kotlin-native/runtime/src/main/cpp/ObjCInteropUtils.mm (2 lines): - line 123: // TODO: handle root classes properly. - line 153: // TODO: handle root classes properly. compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/inference/BuilderInferenceUtil.kt (2 lines): - line 180: newReceiverType.builtIns, approximatedLambdaType.annotations, newReceiverType, emptyList(), // TODO: Context receivers? - line 182: parameterNames = null, // TODO: parameterNames kotlin-native/klib/src/org/jetbrains/kotlin/cli/klib/KlibToolCommands.kt (2 lines): - line 158: // TODO: support passing any signature version through `DumpIrTreeOptions`, KT-62828 - line 201: // TODO: support passing any signature version through `DumpIrTreeOptions`, KT-62828 js/js.translator/testData/typescript-export/js/visibility/visibility.kt (2 lines): - line 6: // TODO fix statics export in DCE-driven mode - line 70: @JsName("publicFun") // TODO: Should work without JsName js/js.translator/testData/runIrTestInNode.js (2 lines): - line 27: // TODO autodetect common js files and other js files - line 62: // TODO: Support multimodule tests plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/resolve/scriptAnnotationsPreprocessing.kt (2 lines): - line 72: // TODO: consider inspecting `trace` to find diagnostics reported during the computation (such as division by zero, integer overflow, invalid annotation parameters etc.) - line 104: // TODO: instead of the workaround described above, consider using a sum-type for returning errors from constructAnnotation js/typescript-export-standalone/src/org/jetbrains/kotlin/js/tsexport/TsArtifactProducer.kt (2 lines): - line 38: get() = false // TODO: Required for generating the proxy artifact - line 47: get() = null // TODO: Required for generating the proxy artifact kotlin-native/runtime/src/main/cpp/ObjCExportErrors.mm (2 lines): - line 52: // TODO: use fast instance check when possible. - line 137: KRef kotlinError = Kotlin_ObjCExport_refFromObjC(error, errorHolder.slot()); // TODO: a simple opaque wrapper would be enough. compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/UpgradeCallableReferences.kt (2 lines): - line 145: // TODO delete once the lowering is moved - line 148: // TODO delete once the lowering is moved compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/ConstraintIncorporator.kt (2 lines): - line 261: * TODO: implement this for generics and captured types - line 282: * TODO: implement this for generics and captured types kotlin-native/runtime/src/mm/cpp/GlobalsRegistry.hpp (2 lines): - line 43: // TODO: Iteration over `globals_` will be slow, because it's `std::list` collected at different times from - line 51: // TODO: Add-only MultiSourceQueue can be made more efficient. Measure, if it's a problem. kotlin-native/performance/buildSrc/src/main/kotlin/MPPTools.kt (2 lines): - line 135: .takeIf { useCache && !PlatformInfo.isWindows() } // TODO: remove target condition when we have cache support for other targets. - line 242: // TODO get this info from gradle plugin with exit code end stacktrace. compiler/cli/src/org/jetbrains/kotlin/cli/common/fir/FirDiagnosticsCompilerResultsReporter.kt (2 lines): - line 83: // TODO: bring KtSourceFile and KtSourceFileLinesMapping here and rewrite reporting via it to avoid code duplication - line 168: constructor(file: File) : this(file.reader(/* TODO: select proper charset */)) libraries/scripting/jvm-host/src/kotlin/script/experimental/jvmhost/jsr223/propertiesFromContext.kt (2 lines): - line 24: // TODO: add only valid names - line 25: // TODO: find out how it's implemented in other jsr223 engines for typed languages, since this approach prevent certain usage scenarios, e.g. assigning back value of a "sibling" type compiler/psi/parser/src/org/jetbrains/kotlin/parsing/AbstractKotlinParsing.java (2 lines): - line 146: // TODO: how to report errors on bad characters? (Other than highlighting) - line 256: // TODO: Migrate to predicates native/base/src/main/kotlin/org/jetbrains/kotlin/backend/konan/InlineClasses.kt (2 lines): - line 38: // TODO: consider renaming to `isReference`. - line 192: // TODO: optimize. compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/KotlinJsr223JvmInvocableScriptEngine.kt (2 lines): - line 61: // TODO: cache the method lookups? - line 104: // TODO: cache the method lookups? compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FileClassLowering.kt (2 lines): - line 70: // TODO FirMetadataSource.File - line 203: else -> null // TODO: getArgumentExpression().safeAs() compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmStaticAnnotationLowering.kt (2 lines): - line 124: // TODO: would be nice to add a mode that *only* leaves static versions for all annotated methods, with nothing - line 162: // TODO change after KT-78719 plugins/kotlinx-serialization/kotlinx-serialization.k2/src/org/jetbrains/kotlinx/serialization/compiler/fir/services/FirSerializablePropertiesProvider.kt (2 lines): - line 96: // TODO: handle deserialized properties - line 102: // TODO: handle deserialized properties kotlin-native/runtime/src/alloc/legacy/cpp/ObjectFactorySweepTest.cpp (2 lines): - line 184: // TODO: Figure out a better way to clear up the stuff. - line 266: // TODO: Provide a common base class for all unit tests that require memory initializtion. kotlin-native/runtime/src/main/cpp/objc_support/RunLoopTimer.hpp (2 lines): - line 35: // TODO: Consider making it movable. - line 104: std::function callback_; // TODO: std::function_ref? native/commonizer/src/org/jetbrains/kotlin/commonizer/metadata/utils/MetadataDeclarationsComparator.kt (2 lines): - line 25: // TODO: extract to kotlinx-metadata-klib library? - line 394: // TODO: compare annotation arguments? compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/RangeContainsLowering.kt (2 lines): - line 88: // TODO: This breaks the optimization for *Range.reversed().contains(). The function called there is the extension function - line 140: // TODO: Optimize contains() for progressions with |step| > 1 or unknown step and/or direction. These are also not optimized libraries/scripting/jvm-host/src/kotlin/script/experimental/jvmhost/jvmScriptSaving.kt (2 lines): - line 26: // TODO: generate execution code (main) - line 76: // TODO: implement options for various cases - paths as is (now), absolute paths (local execution only), names only (most likely as a hint only), fat jar compiler/incremental-compilation-impl/testFixtures/org/jetbrains/kotlin/incremental/AbstractIncrementalJvmCompilerRunnerTest.kt (2 lines): - line 80: if (k2Mode && args.useFirIC && args.useFirLT /* TODO by @Ilya.Chernikov: move LT check into runner */) { - line 107: //TODO by @Ilya.Chernikov: set properly kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanDriver.kt (2 lines): - line 75: // TODO KT-72014: Consider raising deprecation error instead of `splitOntoTwoStages()` invocation - line 154: konanConfig = KonanConfig(project, configuration) // TODO: Just set freshly built caches. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/IrFakeOverrideUtils.kt (2 lines): - line 113: // TODO: use this implementation instead of any other - line 122: // TODO: We take firstOrNull instead of singleOrNull here because of KT-36188. compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/irCodegenUtils.kt (2 lines): - line 159: // TODO: non-intrinsic - line 285: // TODO: should be package private, but for now Kotlin's reflection can't access members of such classes analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirReferenceShortener.kt (2 lines): - line 117: //TODO: collect all usages of available symbols in the file and prevent importing symbols that could introduce name clashes, which - line 1155: // TODO isInBestCandidates should probably be used more actively to filter candidates compiler/cli/src/org/jetbrains/kotlin/cli/jvm/plugins/PluginCliParser.kt (2 lines): - line 223: val commandLineProcessor = pluginInfo.commandLineProcessor ?: throw RuntimeException() // TODO: proper exception - line 281: // TODO issue a warning on using deprecated command line processors when all official plugin migrate to the newer convention libraries/stdlib/native-wasm/src/kotlin/text/StringBuilder.kt (2 lines): - line 150: // TODO: optimize the append overloads with primitive value! - line 309: // TODO: optimize the insert overloads with primitive value! compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/TypeUtils.kt (2 lines): - line 212: // TODO: Consider correct application of attributes to ConeIntersectionType - line 917: // TODO: think how can we replace it with more correct decision. compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalCompilerRunner.kt (2 lines): - line 147: // TODO: Collect the stack trace too - line 472: // TODO: ideally we should read arguments not here but at earlier stages compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/pipeline/web/WebFrontendPipelinePhase.kt (2 lines): - line 86: // TODO: Only pass groupedSources, because - line 218: // TODO: !!! dependencies module data? kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/NativeLoweringPhases.kt (2 lines): - line 224: prerequisite = setOf(sharedVariablesPhase, inventNamesForInteropBridgesPhase) // TODO: add "soft" dependency on inventNamesForLocalClasses - line 330: prerequisite = setOf(enumConstructorsPhase, functionReferencePhase, enumWhenPhase) // TODO: make weak dependency on `testProcessorPhase` compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/state/State.kt (2 lines): - line 69: if (other.isFunction() && thisType.isKFunction()/* TODO || (other.isSuspendFunction && thisType.isKSuspendFunction())*/) { - line 101: // TODO prove that this will always work or find better solution compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/checker/IrInterpreterCommonChecker.kt (2 lines): - line 115: // TODO always check `toString` method. Right now it takes too much time due to lazy evaluations in fir2ir nodes. - line 163: // TODO fix later; used it here because java boolean resolves very strange, native/objcexport-header-generator/impl/k1/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportLazy.kt (2 lines): - line 231: // TODO: consider using file-based categories in compiler too. - line 255: val trace = BindingTraceContext(topLevelDeclaration.project) // TODO: revise. compiler/cli/src/org/jetbrains/kotlin/cli/metadata/K1LegacyMetadataSerializer.kt (2 lines): - line 113: }.build().serializeToByteArray(MetadataVersion.INSTANCE, 0) // TODO: use another version here, not JVM - line 114: // TODO: also, use CommonConfigurationKeys.METADATA_VERSION if needed compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/multiplatform/JavaActualAnnotationArgumentExtractor.kt (2 lines): - line 49: // TODO: support annotations as annotation arguments (KT-28077) - line 80: // TODO: support nested classes somehow libraries/tools/kotlin-gradle-plugin-api/build.gradle.kts (2 lines): - line 32: commonApi(project(":native:kotlin-native-utils")) { // TODO: consider removing in KT-70247 - line 190: // FIXME: Entry org/jetbrains/kotlin/gradle/dsl/KotlinDependencies.class is a duplicate js/js.frontend/src/org/jetbrains/kotlin/js/translate/utils/AnnotationsUtils.java (2 lines): - line 66: //TODO: this is a quick fix for unsupported default args problem - line 71: //TODO: this is a quick fix for unsupported default args problem compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/JavacWrapper.kt (2 lines): - line 347: // TODO: check situation with multiple package parts like this (search by FQ name of 'p1') - line 370: // TODO: below we have a hacky part with a purpose plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/services/FirScriptDefinitionProviderService.kt (2 lines): - line 25: // TODO: get rid of project-based implementation, write and use own singleton in K2 - line 92: // TODO: check if memory can leak in MockProject (probably not too important, since currently the providers are set externaly in important cases) compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/Utils.kt (2 lines): - line 185: // KT-68888: TODO `!type.isNullable()` can(?) be removed to get rid of conversion from nullable to non-nullable - line 233: is IrReturnTarget -> // KT-67695: TODO: Perform full traverse to calculate the common type for all IrReturn statements. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ClassGenerator.kt (2 lines): - line 314: // TODO could possibly refer to scoped type parameters for property accessors - line 515: // TODO this is a hack, pass declaration parent through generator chain instead compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/SupertypeUtils.kt (2 lines): - line 185: /* TODO REMOVE */ - line 187: typeParameters: List, // TODO: or really declared? compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/SwitchGenerator.kt (2 lines): - line 16: // TODO: eliminate the temporary variable - line 428: // TODO make 'when' with String subject behavior consistent. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/dce/UsefulDeclarationProcessor.kt (2 lines): - line 98: // TODO check that this is overridable - line 270: // TODO a better way to support inverse overrides. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/DumpIrTree.kt (2 lines): - line 59: * the file facade class (see [IrDeclarationOrigin.FILE_CLASS]) TODO: use [isHiddenDeclaration] instead. - line 69: * TODO: Drop this flag in KT-74938. jps/jps-plugin/src/org/jetbrains/kotlin/compilerRunner/JpsKotlinCompilerRunner.kt (2 lines): - line 81: // TODO: consider adding state "ping" to the daemon interface - line 196: // TODO: consider implementing connection retry, instead of fallback here native/objcexport-header-generator/impl/k1/src/org/jetbrains/kotlin/backend/konan/objcexport/CustomTypeMapper.kt (2 lines): - line 52: // TODO: NSNumber seem to have different equality semantics. - line 80: // TODO: somewhat hacky, consider using FunctionClassDescriptor.arity later. compiler/build-tools/kotlin-build-tools-api/src/main/kotlin/org/jetbrains/kotlin/buildtools/api/jvm/ClasspathEntrySnapshot.kt (2 lines): - line 13: * TODO add docs KT-57565 - line 32: * TODO add docs KT-57565 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DFGBuilder.kt (2 lines): - line 294: // TODO: A little bit hacky but it is the simplest solution. - line 607: /*TODO: substitute*/symbolTable.mapType(callee.returnType)) core/compiler.common/src/org/jetbrains/kotlin/types/model/TypeSystemContext.kt (2 lines): - line 143: // TODO: KT-71905: consider removing all typeDepth() and typeDepthForApproximation() functions - line 603: // TODO: Consider making `LanguageFeature` accessible from this module. compiler/frontend/src/org/jetbrains/kotlin/resolve/checkers/ExpectedActualDeclarationChecker.kt (2 lines): - line 58: // TODO: we need a klib based MPP aware ModuleStructureOracle. Just disable the checks for now. - line 341: // TODO: replace with 'singleOrNull' as soon as multi-module diagnostic tests are refactored compiler/testData/diagnostics/testsWithStdLib/experimental/usageNotAsAnnotation.fir.kt (2 lines): - line 30: fun f3(e: Experimental0 /* TODO */) {} - line 31: fun f4(u: OptIn0 /* TODO */) {} native/swift/sir/src/org/jetbrains/kotlin/sir/util/Debug.kt (2 lines): - line 22: is SirEnum -> "enum ${swiftFqName}" // TODO: Render protocols - line 24: is SirStruct -> "struct ${swiftFqName}" // TODO: Render protocols core/descriptors/src/org/jetbrains/kotlin/resolve/DescriptorUtils.java (2 lines): - line 420: // TODO: should be internal - line 449: * TODO: probably some call-sites of this method are wrong, they should handle all super-declarations compiler/testData/codegen/box/reflection/lambdaClasses/parameterNamesAndNullability.kt (2 lines): - line 16: // TODO: maybe change this name - line 27: // TODO: maybe change this name kotlin-native/utilities/cli-runner/src/org/jetbrains/kotlin/cli/utilities/GeneratePlatformLibraries.kt (2 lines): - line 29: // TODO: We definitely need to unify logging in different parts of the compiler. - line 69: // TODO: Use Distribution's paths after compiler update. native/objcexport-header-generator/impl/analysis-api/src/org/jetbrains/kotlin/objcexport/translateToObjCMethod.kt (2 lines): - line 78: if (symbol.isConstructor && !analysisSession.isArrayConstructor(symbol)) { // TODO: check methodBridge instead. - line 111: return this.replace('$', '_') // TODO: handle more special characters. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceLowering.kt (2 lines): - line 154: //TODO reset modality to abstract - line 277: // TODO remove after KT-78719 kotlin-native/runtime/src/mm/cpp/ShadowStack.hpp (2 lines): - line 26: // TODO: This is currently incompatible with stack-allocated objects. Fix it. - line 48: // TODO: This copies the approach in the old MM. Do we need to also traverse function parameters in the new MM? analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/DeclarationsInPackageProvider.kt (2 lines): - line 80: // FIXME this function should be called only once during plugin's lifetime, so this usage is not really correct (2) - line 95: // FIXME this function should be called only once during plugin's lifetime, so this usage is not really correct (1) compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/CallGenerator.kt (2 lines): - line 210: if (it is ScriptDescriptor) null // otherwise it creates a reference to script as class; TODO: check if correct - line 387: startOffset, endOffset, // TODO obtain more exact start/end offsets for explicit receiver expression compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/IncrementalJvmCompilerRunnerBase.kt (2 lines): - line 242: // TODO KT-82000 Find better approach for generating CRI data with IC instead of appending new data - line 243: // TODO write better tests for this case kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/AbiSpecific.kt (2 lines): - line 134: def.fields.any { // TODO: what about bitfields? - line 143: // TODO: should the recursive checks be made in indexer when computing `hasUnalignedFields`? compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/TypeCheckerStateForConstraintSystem.kt (2 lines): - line 462: // TODO: may be we lose flexibility here - line 493: // TODO: rethink, maybe we should take nullability into account somewhere else compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/state/Wrapper.kt (2 lines): - line 94: // TODO remove later; used for tests only - line 218: //TODO check if primitive array is possible here libraries/stdlib/native-wasm/src/kotlin/text/regex/Lexer.kt (2 lines): - line 22: // TODO: Licenses. - line 321: // TODO: Look like we can create a quantifier here. compiler/testData/codegen/box/ieee754/float.kt (2 lines): - line 33: //TODO: KT-14989 - line 38: //TODO: KT-14989 compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/InteropIrUtils.kt (2 lines): - line 121: // TODO: rework Boolean support. - line 122: // TODO: What should be used on watchOS? plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/irLowerings/scriptingLoweringVisitors.kt (2 lines): - line 402: // TODO: might be fragile, if we'll start to use transformed declaration on either side, try to find a way to detect or avoid (KT-72943) - line 543: // TODO: ClosureAnnotator is not catching companion's closures, so the following reporting never happens. Make it work or drop build-common/src/org/jetbrains/kotlin/incremental/AbstractIncrementalCache.kt (2 lines): - line 103: * TODO: provide a better solution (maintain an index of expect/actual declarations akin to IncrementalPackagePartProvider) - line 165: // TODO add related tests compiler/util/src/org/jetbrains/kotlin/config/LanguageVersionSettings.kt (2 lines): - line 363: // TODO: Remove org.jetbrains.kotlin.fir.resolve.calls.stages.ConstraintSystemForks together with this LF (KT-72961) - line 689: // TODO: drop after KT-80590 kotlin-native/runtime/src/main/cpp/MultiSourceQueue.hpp (2 lines): - line 30: // TODO: Consider switching from `std::list` to `SingleLockList` to hide the constructor - line 88: // This call is performed without heap allocations. TODO: Test that no allocations are happening. compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/utils/WasmInlineClassesUtils.kt (2 lines): - line 21: // TODO: Make inlining less strict - line 32: // TODO: This hook is called from autoboxing lowering so we also handle autoboxing annotation here. In the future it's better compiler/cli/src/org/jetbrains/kotlin/cli/common/messages/PlainTextMessageRenderer.kt (2 lines): - line 124: // TODO: investigate why ANSI escape codes on Windows only work in REPL for some reason - line 146: // TODO: invent something more clever compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/KtNamedDeclarationStub.java (2 lines): - line 176: SearchScope superScope = super.getUseScope(); // TODO: should be replaced with module scope if possible - line 201: // TODO: stubs do not agree with PSI here in case where there's no name: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/PlatformLibrariesGenerator.kt (2 lines): - line 102: // TODO: Check that all directories in presentPlatformLibs are real klibs when klib componentization is merged. - line 153: // TODO: Supporting Gradle Worker API (or other parallelization) in the CacheBuilder and enabling libraries/stdlib/js/runtime/bitUtils.kt (2 lines): - line 11: // TODO use declarations from stdlib - line 18: // TODO use one DataView instead of bunch of typed views. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmSafeCallChainFoldingLowering.kt (2 lines): - line 145: // TODO 'as?' - line 335: // TODO maybe we can do somewhat better if we analyze innerElvisRhs as well compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/SingleAbstractMethodLowering.kt (2 lines): - line 116: // TODO: there must be exactly one wrapper per Java interface; ideally, if the interface has generic - line 171: // TODO: have psi2ir cast the argument to the correct function type. Also see the TODO kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/serialization/StringTableUtil.kt (2 lines): - line 15: // TODO Come up with a better file name. - line 24: // TODO: Here we are using internals of NameresolverImpl. compiler/arguments/src/org/jetbrains/kotlin/arguments/description/NativeCompilerArguments.kt (2 lines): - line 514: // TODO: remove after 1.4 release. - line 906: // TODO: Remove when legacy MM is gone. compiler/daemon/daemon-client/src/main/kotlin/KotlinCompilerClient.kt (2 lines): - line 542: // TODO: KT-72161. Investigate IDEA's JSR223 Kotlin Script integration. Possibly transform this into regular arguments - line 681: // TODO: find better method to stop the thread, but seems it will require asynchronous consuming of the stream kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/TestProcessor.kt (2 lines): - line 307: // TODO: Use symbols instead of containingDeclaration when such information is available. - line 676: // TODO: uses descriptors. kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIrBridgeBuilder.kt (2 lines): - line 79: // TODO: handle the case when protocol getter stub can't be compiled. - line 288: // TODO: Improve assertion message. libraries/stdlib/jvm/runtime/kotlin/jvm/internal/CollectionToArray.kt (2 lines): - line 17: // TODO: eventually should become internal @PublishedApi - line 30: // TODO: eventually should become internal @PublishedApi compiler/util-klib/src/org/jetbrains/kotlin/konan/library/NativeKlibAttributes.kt (2 lines): - line 14: // TODO (KT-81411): Move this attribute to a Native-related module. - line 16: // TODO (KT-81411): After moving, make the setter to be internal. compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/BasicIrModuleDeserializer.kt (2 lines): - line 84: // TODO: fix to topLevel checker - line 130: moduleReversedFileIndex.putIfAbsent(it, fileDeserializationState) // TODO Why not simple put? compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/FirTree.kt (2 lines): - line 213: // TODO: may smth like `CallWithArguments` or `ElementWithArguments`? - line 641: // TODO: `useMutableOrEmpty = true` is a workaround for KT-60324 until KT-60445 has been fixed. compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeLet.kt (2 lines): - line 1: // TODO KT-36650 Don't generate CHECKCAST on null values in JVM_IR - line 2: // TODO KT-36654 Generate more compact bytecode for safe call in JVM_IR core/reflection.jvm/src/kotlin/reflect/jvm/internal/KDeclarationContainerImpl.kt (2 lines): - line 124: // TODO: consider writing additional info (besides signature) to property reference objects to distinguish them in this case - line 208: // TODO: avoid exponential complexity here jps/jps-common/src/org/jetbrains/kotlin/config/facetSerialization.kt (2 lines): - line 112: // TODO: Introduce new version of facet serialization. See https://youtrack.jetbrains.com/issue/KT-38235 - line 305: // TODO: Introduce new version of facet serialization. See https://youtrack.jetbrains.com/issue/KT-38235 analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/resolver/candidateInfoProviders.kt (2 lines): - line 48: firFile, // TODO: consider passing more precise info here, if needed - line 54: containingDeclarations = emptyList(), // TODO - maybe we should pass declarations from context here (no visible differences atm) libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/AbstractKotlinCompile.kt (2 lines): - line 141: // TODO: replace with objects.property and introduce task configurator - line 160: //TODO update to support any jar changes kotlin-native/runtime/src/main/kotlin/kotlin/native/ref/WeakPrivate.kt (2 lines): - line 40: @HasFinalizer // TODO: Consider just using Cleaners. - line 43: val referred: COpaquePointer, // TODO: This exists only for the ExtraObjectData's sake. Refactor and remove. compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrDeclarationStorage.kt (2 lines): - line 224: // TODO: move to common storage - line 1357: // TODO: All classes from BUILT_INS_PACKAGE_FQ_NAMES are considered built-ins now, libraries/stdlib/wasm/src/kotlin/wasmModule.kt (2 lines): - line 20: * TODO: Should be removed after bootstrap - line 26: * TODO: Should be renamed after bootstrap compiler/testData/codegen/box/notNullAssertions/noCallAssertions.kt (2 lines): - line 103: // TODO: - line 119: // TODO: kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIrMetadataEmitter.kt (2 lines): - line 196: // TODO: Maybe it's better to explicitly add setter parameter in stub. - line 470: // TODO: Add caching if needed. kotlin-native/runtime/src/main/cpp/RawPtr.hpp (2 lines): - line 22: // TODO: Look up if there're active C++ proposals for that. - line 23: // TODO: Support type casts. js/js.translator/testData/moduleEmulation.js (2 lines): - line 7: // TODO don't expose by default when run test with AMD module kind - line 25: // TODO expose only when run test with AMD or UMD module kind native/base/src/main/kotlin/org/jetbrains/kotlin/backend/konan/descriptors/LegacyDescriptorUtils.kt (2 lines): - line 22: * TODO: this method is actually a part of resolve and probably duplicates another one - line 31: // TODO: is it correct to take first? core/reflection.jvm/src/kotlin/reflect/jvm/internal/ReflectionObjectRenderer.kt (2 lines): - line 65: // TODO: include visibility - line 86: renderType(it.type) // TODO: vararg libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/sources/LanguageSettingsSetupAction.kt (2 lines): - line 15: // FIXME: KT-75216 Synchronise common source set language settings with compile tasks in a better way - line 33: ?: // use any of the compilations for now, looks OK for Android TODO maybe reconsider libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/NativeBinaries.kt (2 lines): - line 106: // TODO: report if $name is unknown? - line 135: // TODO: Provide output configurations and integrate them with Gradle Native. compiler/util-io/src/org/jetbrains/kotlin/konan/properties/Properties.kt (2 lines): - line 54: * TODO: this method working with suffixes should be replaced with - line 82: // TODO: it actually affects only resolution made in :dependencies, compiler/testData/compileKotlinAgainstCustomBinaries/incompleteHierarchyOfEnclosingClass/source.kt (2 lines): - line 3: import test.SubObject.InnerStatic // TODO report error - imports from object force resolution of its supertypes - line 8: SubObject.InnerStatic() // TODO report error - for objects supertypes are resolved here compiler/testData/codegen/boxInline/anonymousObject/withInlineMethod.kt (2 lines): - line 13: // TODO: this does not work because the inliner is not correctly remapping the capture. - line 15: // TODO: and this does not work in JVM_IR because there is a redundant accessor. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/Psi2IrTranslator.kt (2 lines): - line 104: // assert(context.symbolTable.allUnbound.isEmpty()) // TODO: fix IrPluginContext to make it not produce additional external reference - line 106: // TODO: remove it once plugin API improved compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/BridgesConstruction.kt (2 lines): - line 147: // TODO: Support offsets for debug info - line 230: // TODO: get rid of Unit check wasm/wasm.frontend/src/org/jetbrains/kotlin/wasm/resolve/WasmPlatformConfigurator.kt (2 lines): - line 20: // TODO: Review the list of used K/JS checkers. - line 64: // TODO: Review the list of used K/JS checkers. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/descriptors/IrBuiltInsOverDescriptors.kt (2 lines): - line 351: // TODO: check if correct - line 413: // TODO switch to IrType plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/services/FirReplSnippetResolveExtensionImpl.kt (2 lines): - line 76: // TODO: consider caching (KT-72975) - line 78: val functions = HashMap>() // TODO: find out how overloads should work js/js.translator/testData/typescript-export/js/primitives/primitives.kt (2 lines): - line 118: // TODO: - line 136: // TODO: Char and Long libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/UklibResolutionWithMockComponents.kt (2 lines): - line 2041: // FIXME: Right now wasmWasi runtime resolves to JVM, but we expect "commonMainMetadataElements-published" here. Since this is - line 2278: * FIXME: Figure out a set of tests for AGP dependencies. Take into account: compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/PostponeArgumentsChecks.kt (2 lines): - line 175: // TODO: in case of implicit parameters in lambda ("this" and "it") this case assumes "this", probably we should generate two possible overloads and choose among them later - line 183: // TODO: same "this" or "it" case from above could be applicable here as well core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/descriptors/JavaMethodDescriptor.java (2 lines): - line 34: // TODO: It's only used to retrieve annotations from the original value parameter and can be removed when - line 46: STABLE_SYNTHESIZED(true, true), // TODO: this makes no sense kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/cpp/RunGTest.kt (2 lines): - line 42: // TODO: Try to make it like other gradle test tasks: report progress in a way gradle understands instead of dumping stdout of gtest. - line 69: // TODO: Better to use proper XML parsing. kotlin-native/runtime/src/main/cpp/objc_support/RunLoopSource.hpp (2 lines): - line 32: // TODO: Consider making it movable. - line 93: std::function callback_; // TODO: std::function_ref? native/utils/src/org/jetbrains/kotlin/konan/util/DependencyDownloader.kt (2 lines): - line 84: // TODO: Implement multi-thread downloading. - line 191: // TODO: Wait better kotlin-native/runtime/src/mm/cpp/ExtraObjectData.cpp (2 lines): - line 19: // TODO: Consider extracting initialization scheme with speculative load. - line 79: // TODO: Asserts on the above? plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/repl/ReplInterpreter.kt (2 lines): - line 107: is JvmModulePathRoot -> root.file // TODO: only add required modules - line 136: } // TODO consider reporting this and two below analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/parameters/SymbolLightParameterBase.kt (2 lines): - line 85: // TODO: extract type mapping mode from annotation? - line 86: // TODO: methods with declaration site wildcards? compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ir/exportUtils.kt (2 lines): - line 76: // TODO: Remove this check KT-75095 - line 82: // TODO: Use [] syntax instead of prohibiting compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/RecordEnclosingMethodsLowering.kt (2 lines): - line 48: // TODO remove after KT-78719 - line 58: // TODO remove after KT-78719 compiler/cli/src/org/jetbrains/kotlin/cli/pipeline/jvm/JvmFrontendPipelinePhase.kt (2 lines): - line 88: * pipeline (TODO: KT-73576), so this is a temporary solution. - line 366: // TODO: reimplement with splitted providers after fixing KT-62686 compiler/multiplatform-parsing/common/src/org/jetbrains/kotlin/kmp/parser/utils/AbstractKotlinParsing.kt (2 lines): - line 122: // TODO: how to report errors on bad characters? (Other than highlighting) - line 240: // TODO: Migrate to predicates analysis/analysis-api-standalone/analysis-api-fir-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/services/LLStandaloneFirElementByPsiElementChooser.kt (2 lines): - line 36: * TODO: We might be able to remove this service if KT-65836 is viable (using stub-based deserialized symbol providers in Standalone mode). - line 57: // TODO: Use structural type comparison? We can potentially ignore components which don't factor into overload resolution, such as type core/descriptors/src/org/jetbrains/kotlin/resolve/inlineClassesUtils.kt (2 lines): - line 23: // FIXME: DeserializedClassDescriptor in reflection do not have @JvmInline annotation, that we - line 24: // FIXME: would like to check as well. compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaConstructor.kt (2 lines): - line 75: // TODO: the lazy deprecationsProvider is a workaround for KT-55387, some non-lazy solution should probably be used instead - line 89: // TODO: KT-68587 compiler/cli/src/org/jetbrains/kotlin/cli/pipeline/AbstractCliPipeline.kt (2 lines): - line 38: setIdeaIoUseFallback() // TODO (KT-73573): probably could be removed - line 58: MessageCollectorUtil.reportException(messageCollector, e) // TODO (KT-73575): investigate reporting in case of OOM plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/ScriptingCommandLineProcessor.kt (2 lines): - line 124: // TODO: implement generic unescaping - line 125: // TODO: consider switching to simple parser - current approach is too complicated already and doesn't handle quoted commas (unless they are escaped) plugins/kotlinx-serialization/kotlinx-serialization.backend/src/org/jetbrains/kotlinx/serialization/compiler/backend/ir/IrGeneratorUtils.kt (2 lines): - line 25: // TODO KT-53096 - line 132: // TODO is it ok? plugins/scripting/scripting-ide-common/src/org/jetbrains/kotlin/scripting/ide_common/idea/util/ShadowedDeclarationsFilter.kt (2 lines): - line 53: else -> return null // TODO: support shadowed declarations filtering for callable references - line 145: //TODO: compiler crash (KT-8011) compiler/testData/ir/interpreter/inlineReturn.kt (2 lines): - line 18: // TODO can replace IrCall on IrConst inside body - line 27: // TODO can replace IrCall on IrConst inside body compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/PostponedArgumentInputTypesResolver.kt (2 lines): - line 410: * TODO: regarding anonymous functions: see info about need for analysis in partial mode in `collectParameterTypesAndBuildNewExpectedTypes` - line 509: * TODO: investigate why we can't do it for anonymous functions in full mode always (see `diagnostics/tests/resolve/resolveWithSpecifiedFunctionLiteralWithId.kt`) compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/TypeOperatorLowering.kt (2 lines): - line 124: // TODO: there is possible some situation which could be visible for AutoboxingLowering - line 316: // TODO either remove functions with reified type parameters or support this case kotlin-native/runtime/src/main/kotlin/kotlin/native/ref/Cleaner.kt (2 lines): - line 88: // TODO: Consider just annotating the lambda argument rather than hardcoding checking - line 100: // TODO: Maybe if this fails with exception, it should be (optionally) reported. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InteropLowering.kt (2 lines): - line 46: // TODO: merge these lowerings. - line 791: // TODO: consider calling specialized versions of allocWithZoneImp and releaseImp directly. compiler/frontend/src/org/jetbrains/kotlin/types/TypeIntersector.java (2 lines): - line 119: // TODO: maybe return the most specific among the types that are subtypes to all others in the `nullabilityStripped`? - line 120: // TODO: e.g. among {Int, Int?, Int!}, return `Int` (now it returns `Int!`). compiler/testData/diagnostics/testsWithStdLib/java/checkEnhancedUpperBounds.kt (2 lines): - line 35: val x = A3() // TODO: support reporting errors on typealias constructor calls - line 36: val x2 = A() // TODO: support reporting errors on typealias constructor calls libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/compilerRunner/GradleKotlinCompilerWork.kt (2 lines): - line 199: } ?: throw RuntimeException(COULD_NOT_CONNECT_TO_DAEMON_MESSAGE) // TODO: Add root cause - line 242: // TODO: implement a proper logic to avoid remote calls in such cases analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirCompilerFacility.kt (2 lines): - line 1162: val isMutated = false // TODO capture the usage somehow - line 1408: shouldReferenceUndiscoveredExpectSymbols = false, // TODO it was true core/reflection.jvm/src/kotlin/reflect/full/KClassifiers.kt (2 lines): - line 63: // TODO: throw exception if argument does not satisfy bounds - line 97: if (typeParameters.isEmpty()) return createType() // TODO: optimize, get defaultType from ClassDescriptor compiler/frontend.common/src/org/jetbrains/kotlin/util/metadataHelpers.kt (2 lines): - line 41: // TODO KT-76195 Consider renaming to `toMetadataVersion` in version 2.4 here and combine with `toKlibMetadataVersion` - line 44: // TODO KT-76195 Consider renaming to `metadataVersion` in version 2.4 here and combine with `klibMetadataVersionOrDefault` plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/definitions/ScriptDefinition.kt (2 lines): - line 19: // TODO: name could be confused with KotlinScriptDefinition, discuss naming - line 31: // TODO: used in settings, find out the reason and refactor accordingly kotlin-native/runtime/src/main/cpp/dtoa/hycomp.h (2 lines): - line 20: // TODO: Move to settings - line 268: /* FIXME: POINTER64 */ compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/pipeline/web/WebKlibInliningPipelinePhase.kt (2 lines): - line 69: // TODO: During checking the next round, fir serializer may throw an exception, e.g. - line 85: // TODO (KT-73991): investigate the need in this hack kotlin-native/runtime/src/main/cpp/PthreadUtils.cpp (2 lines): - line 23: // TODO: Error reporting? - line 34: // TODO: Error reporting? kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/KonanBCEForLoopBodyTransformer.kt (2 lines): - line 40: // TODO: support `forEachIndexed`. Function is inlined and index is separate variable which isn't connected with loop induction variable. - line 210: // TODO: variable set to const value and field getters. Add constant propagation? compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/ClientUtils.kt (2 lines): - line 49: // TODO: write metadata into discovery file to speed up selection - line 50: // TODO: consider using compiler jar signature (checksum) as a CompilerID (plus java version, plus ???) instead of classpath checksum compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/descriptors/AbstractLazyMemberScope.kt (2 lines): - line 111: // TODO: do we really need to copy descriptors? - line 158: // TODO: do we really need to copy descriptors? kotlin-native/klib/src/org/jetbrains/kotlin/cli/klib/descriptorUtils.kt (2 lines): - line 16: // TODO: remove it, KT-65380 - line 32: // TODO: remove it, KT-65380 compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/descriptors/IrBasedDescriptors.kt (2 lines): - line 1244: // TODO: implement IR-based descriptors for scripts, see KT-60631 - line 1270: // TODO: substitute. plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/AbstractComposeLowering.kt (2 lines): - line 133: // TODO migrate to more precise constructor accessibility test in k2.4 - line 171: // TODO: Apply type substitutions compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ErrorExpressionGenerator.kt (2 lines): - line 43: val irErrorCall = IrErrorCallExpressionImpl(ktCall.startOffsetSkippingComments, ktCall.endOffset, type, ktCall.text) // TODO problem description? - line 64: val irErrorCall = IrErrorCallExpressionImpl(ktName.startOffsetSkippingComments, ktName.endOffset, type, ktName.text) // TODO problem description? compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/inference/components/KotlinConstraintSystemCompleter.kt (2 lines): - line 78: // TODO: This is very slow - line 248: // Imitate having builder inference annotation. TODO: Remove after getting rid of @BuilderInference compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/IdSignature.kt (2 lines): - line 261: // TODO: this API is a bit hacky, consider to act somehow else - line 368: * TODO: Could be replaced with [CompositeSignature] compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/legacy/pipeline/jvmCompilerPipeline.kt (2 lines): - line 248: // TODO: get rid of projEnv too - seems that all needed components could be easily extracted - line 333: // TODO: find out why non-existent location is not reported for JARs, add comment or fix plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/ScriptJvmCompilerImpls.kt (2 lines): - line 164: // TODO: make this logic obsolete by injecting classpath earlier in the pipeline - line 220: // TODO: consider implementing deduplication/diff processing kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt (2 lines): - line 29: // TODO: revise the naming scheme to ensure it produces unique names. - line 30: // TODO: do not serialize descriptors of non-exported declarations. libraries/stdlib/wasm/js/internal/ExternalWrapper.kt (2 lines): - line 6: @file:Suppress("UNUSED_PARAMETER") // TODO: Remove after bootstrap update - line 160: // TODO rewrite it so to get something like: kotlin-native/runtime/src/main/cpp/IntrusiveList.hpp (2 lines): - line 320: // TODO: no need to move on after finding the first match. - line 372: // TODO: Consider making public. compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/CompilationServiceImpl.kt (2 lines): - line 175: @Suppress("DEPRECATION") // TODO: get rid of that parsing KT-62759 - line 308: arguments.toTypedArray() + sources.map { it.absolutePath }, // TODO: pass the sources explicitly KT-62759 kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/SimpleBridgeGeneratorImpl.kt (2 lines): - line 148: // TODO: consider implementing this in bitcode generator. - line 245: // TODO: exclude unused bridges. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ReflectionReferencesGenerator.kt (2 lines): - line 485: isInline = adapteeDescriptor.isInline, // TODO ? - line 492: isOperator = adapteeDescriptor.isOperator, // TODO ? plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/jvmCompilationUtil.kt (2 lines): - line 93: (script as? FileBasedScriptSource)?.file?.path, // TODO: should be absolute path here - line 123: // TODO: ensure that it is caught earlier (as well) since it would be more economical native/objcexport-header-generator/impl/analysis-api/src/org/jetbrains/kotlin/objcexport/translateToObjCProtocol.kt (2 lines): - line 19: // TODO: check if this symbol shall be exposed in the first place - line 23: // TODO: Check error type! js/typescript-export-standalone/src/org/jetbrains/kotlin/js/tsexport/exportModelUtils.kt (2 lines): - line 121: // TODO: Add memoization? - line 130: // TODO: Add memoization? kotlin-native/runtime/src/mm/cpp/ObjectTraversal.hpp (2 lines): - line 19: // TODO: Consider an iterator/ranges based approaches for traversals. - line 56: // FIXME explicitly mention no barriers compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/TailrecLowering.kt (2 lines): - line 95: // TODO: an optimization pass will rewrite the types of vars back since the lambdas are guaranteed to be inlined - line 128: // TODO BodyTransformer creates temporary variables with wrong parents in nested functions compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirControlFlowStatementsResolveTransformer.kt (2 lines): - line 251: // TODO: This whole `if` should be probably removed once we get rid of seemingly redundant - line 253: // TODO: Check if the type of the RHS being null can lead to a bug, see KT-61837 libraries/stdlib/js/src/kotlin/reflect/KClassImpl.kt (2 lines): - line 31: // TODO: use FQN - line 35: // TODO: use FQN compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreterEnvironment.kt (2 lines): - line 117: else -> original // TODO support for arrays - line 130: else -> original // TODO support kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/DeepCopyForManagedWrapper.kt (2 lines): - line 85: PropertyAccessor.Getter.SimpleGetter( // TODO: is it right? - line 94: PropertyAccessor.Setter.SimpleSetter( // TODO: is it right? compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/convertToIr.kt (2 lines): - line 506: //.withTypeChecks() // TODO: Re-enable checking types (KT-68663) - line 511: //IrTypeParameterScopeChecker // TODO: Re-enable checking out-of-scope type parameter usages (KT-69305), compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeTypeApproximator.kt (2 lines): - line 41: // under `if (!conf.shouldApproximateCapturedType(ctx, capturedType))` marked with TODO: KT-65228. - line 54: // TODO: Anyway, it seems that this all tweaks will be unnecessary once KT-65228 is fixed compiler/frontend/src/org/jetbrains/kotlin/resolve/QualifiedExpressionResolveUtil.kt (2 lines): - line 92: // TODO make decisions about short reference to companion object somewhere else - line 97: // TODO simplify this code. native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/impl/BridgeProvider/SirBridgeProviderImpl.kt (2 lines): - line 273: // TODO: we need to mangle C name in more elegant way. KT-64970 - line 351: // TODO: is it correct to use the first type only here? compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/lower/JsInteropFunctionsLowering.kt (2 lines): - line 529: // TODO find out a better way to export the such declarations only when it's required. Also, fix building roots for DCE, then. - line 547: // TODO: Cache created JS closures compiler/frontend/src/org/jetbrains/kotlin/resolve/TypeResolver.kt (2 lines): - line 141: // TODO: remove this method and its usages in 1.4 - line 709: argumentElementsFromUserType, // TODO arguments from inner scope compiler/backend/src/org/jetbrains/kotlin/codegen/inline/AsmTypeRemapper.kt (2 lines): - line 32: /*TODO try to erase absent type variable*/ - line 35: // TODO: what is this condition compiler/testData/codegen/box/functions/bigArity/javaLambda.kt (2 lines): - line 10: // TODO: uncomment arity as soon as Arity is introduced - line 24: // TODO: uncomment arity as soon as Arity is introduced compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/incrementalFirCacheUtils.kt (2 lines): - line 79: // TODO: compare package fragments? - line 122: null, // TODO: !! libraries/stdlib/js/runtime/typeCheckUtils.kt (2 lines): - line 86: // TODO: Distinguish Boolean/Byte and Short/Char - line 111: // TODO: Remove after bootstrap update plugins/scripting/scripting-compiler/build.gradle.kts (2 lines): - line 37: implementation(project(":kotlin-power-assert-compiler-plugin")) // TODO: KT-74787 - line 47: testImplementation(testFixtures(project(":compiler:tests-common"))) { // TODO: drop this, it's based on JUnit4 compiler/tests-common/testFixtures/org/jetbrains/kotlin/checkers/KotlinMultiFileTestWithJava.kt (2 lines): - line 32: // TODO: do not create temporary directory for tests without Java sources - line 111: //TODO: move to proper tests compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/jvm/operations/JvmCompilationOperationImpl.kt (2 lines): - line 165: // TODO: KT-79976 automagically compute the value, related to BasicCompilerServicesWithResultsFacadeServer - line 287: arguments.freeArgs += sources.map { it.absolutePathString() } // TODO: pass the sources explicitly KT-62759 kotlin-native/runtime/src/mm/cpp/ExternalRCRefRegistry.hpp (2 lines): - line 49: // TODO: Consider using a real mutex. - line 195: // TODO: Iteration over `all_` will be slow, because it's `std::list` plugins/kotlinx-serialization/kotlinx-serialization.backend/src/org/jetbrains/kotlinx/serialization/compiler/backend/ir/SerializationJvmIrIntrinsicSupport.kt (2 lines): - line 483: // FIXME: no org.jetbrains.kotlin.codegen.ExpressionCodegen available here to generate instances from descriptors - line 488: // FIXME: same as fillArray above kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/NativePtr.kt (2 lines): - line 20: // TODO: make it properly precreated, maybe use an intrinsic for that. - line 40: internal class NonNullNativePtr private constructor() { // TODO: refactor to use this type widely. compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/ResolvedAtomCompleter.kt (2 lines): - line 550: // TODO: probably we should also record key 'DATA_FLOW_INFO_BEFORE', see ExpressionTypingVisitorDispatcher.getTypeInfo - line 634: // TODO drop return type check - see noCoercionToUnitIfFunctionAlreadyReturnsUnit.kt native/swift/swift-export-embeddable/build.gradle.kts (2 lines): - line 25: // FIXME: Stop embedding Analysis API after KT-61404 - line 82: // FIXME: Publish the ProGuarded version of swift-export-embeddable - KT-69180 libraries/tools/kotlin-stdlib-gen/src/templates/Filtering.kt (2 lines): - line 553: // TODO: Use iterator.toList() internal method in 1.1 - line 678: // TODO: Rewrite with generalized MapFilterIndexingSequence native/swift/sir-light-classes/src/org/jetbrains/sir/lightclasses/nodes/SirProtocolFromKtSymbol.kt (2 lines): - line 78: .filter { it !is SirOperatorAuxiliaryDeclaration } // FIXME: rectify where auxiliary declarations should go. - line 385: // FIXME: we make here the best effort to restore the original name of a relocated declaration compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.kt (2 lines): - line 156: // TODO: Handle non-empty main call arguments - line 196: // TODO: One day, when we will lower IR and produce JS AST per module, compiler/daemon/daemon-common/src/org/jetbrains/kotlin/daemon/common/CompileService.kt (2 lines): - line 79: // TODO: remove! - line 102: // TODO: consider adding another client alive checking mechanism, e.g. socket/port compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirTypeResolveTransformer.kt (2 lines): - line 142: // TODO: robuster matching and error reporting on no extension (KT-72969) - line 199: valueParameter.replaceDefaultValue(buildExpressionStub()) // TODO: Remove when KT-67381 is implemented kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/LlvmUtils.kt (2 lines): - line 42: // TODO: squash multiple GEPs - line 243: // TODO: This will break if Workers get decoupled from host threads. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/StaticInitializersLowering.kt (2 lines): - line 49: // TODO: ExplicitlyExported for IR proto are not longer needed. - line 79: // TODO: think about pure initializers. compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirExposedVisibilityDeclarationChecker.kt (2 lines): - line 43: // TODO: check why coneTypeSafe is necessary at some points inside - line 178: // TODO: the following check should be dropped on fixing KT-79107 libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/HierarchyAttributeContainer.kt (2 lines): - line 13: // TODO better implementation: attribute invariants (no attrs with same name and different types allowed), thread safety? - line 19: * TODO expose Kotlin-specific API to the users, convert the user attributes to Gradle attributes internally core/compiler.common/src/org/jetbrains/kotlin/util/PerformanceManager.kt (2 lines): - line 253: // TODO KT-75227 However, some Web pipelines are written in a way where `BackendGeneration` executed before `Analysis` or `IrLowering`. - line 409: if (!targetPlatform.isJs()) { // TODO: KT-75227 libraries/stdlib/native-wasm/src/kotlin/text/regex/CharClass.kt (2 lines): - line 32: // TODO: replace the implementation with one using BitSet for first 256 symbols and a hash table / tree for the rest of UTF. - line 231: // TODO: Make a faster implementation. kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/cpp/GenerateCompilationDatabase.kt (1 line): - line 140: // TODO: Reconsider when we use source directory for this. compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/classpathDiff/impl/ClassListSnapshotter.kt (1 line): - line 163: // TODO consider reusing loaded classes across the pipeline - it should be benefitial but it makes the process more complicated compiler/testData/diagnostics/wasmTests/jsInterop/jsCode.fir.kt (1 line): - line 50: // TODO: This should be an error as property getters are no different to functions compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/StringConcatenationLowering.kt (1 line): - line 53: //TODO: calculate and pass string length to the constructor. libraries/stdlib/js/src/org.w3c/org.w3c.dom.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/light-classes/src/org/jetbrains/kotlin/asJava/elements/KtLightModifierListDescriptorBased.kt (1 line): - line 34: //TODO: Hacky way to update wrong parents for annotations kotlin-native/runtime/src/main/kotlin/kotlin/Any.kt (1 line): - line 48: // TODO: consider using [identityHashCode]. generators/builtins/primitives/WasmPrimitivesGenerator.kt (1 line): - line 134: additionalComments = "TODO: Fix test compiler/testData/codegen/box/functions/invoke/invoke.kt with inline dec" compiler/fir/semantics/src/org/jetbrains/kotlin/fir/expressions/SubstitutionUtils.kt (1 line): - line 32: // TODO: Get rid of this parameter once LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible is removed compiler/testData/codegen/box/casts/functions/safeAsFunKBig.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/ReplState.kt (1 line): - line 58: fun getNextLineNo(): Int = history.peek()?.id?.no?.let { it + 1 } ?: REPL_CODE_LINE_FIRST_NO // TODO: it should be more robust downstream (e.g. use atomic) kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/utils/FileCollection.kt (1 line): - line 27: } ?: (file.absolutePath to file) // TODO: consider erroring out instead compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/util/RenderIrElement.kt (1 line): - line 62: // TODO: use offsets in IR deserialization tests, KT-73171 compiler/build-tools/kotlin-build-tools-options-generator/src/org/jetbrains/kotlin/buildtools/options/generator/constantsAndUtils.kt (1 line): - line 75: // TODO: workaround for now, but we should expose these in the arguments module in a way that doesn't need listing enums and their accessors explicitly here compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/ConeTypeCompatibilityChecker.kt (1 line): - line 136: // TODO: Due to KT-49358, we skip any checks on Java and Kotlin refection class. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/IrJsUtils.kt (1 line): - line 93: // TODO: the code is written to pass Repl tests, so we should understand. why in Repl tests we don't have backingField js/js.translator/testData/box/delegateProperty/capturedLocalValNoInline.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/ExpectDeclarationRemover.kt (1 line): - line 130: // TODO they may not actually have the defaults though -- may be a frontend bug. core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/JavaIncompatibilityRulesOverridabilityCondition.kt (1 line): - line 103: // TODO: things get more and more complicated here, consider moving signature mapping from backend and using it here instead of all of this magic compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/components/JavacBasedClassFinder.kt (1 line): - line 43: // TODO: reuse previouslyFoundClassFileContent if it's possible in javac kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIrType.kt (1 line): - line 54: val parameterTypes: List, // TODO: Use TypeArguments. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/JvmLoweringPhases.kt (1 line): - line 57: // TODO: merge the next three phases together, as visitors behave incorrectly between them kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/cpp/ClangFrontend.kt (1 line): - line 101: // TODO: Consider specifying full clang execution here and configure it from the plugin. compiler/backend.common.jvm/src/org/jetbrains/kotlin/codegen/inline/SMAP.kt (1 line): - line 65: // TODO some *other* range may already cover `source`; probably too slow to check them all though. kotlin-native/runtime/src/libbacktrace/c/posix.c (1 line): - line 84: FIXME: At some point it should be safe to only do this if compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/enhancement/EnhancedTypeForWarningAttribute.kt (1 line): - line 51: // TODO: drop me after disabling of DontMakeExplicitJavaTypeArgumentsFlexible will be no longer supported compiler/ir/ir.validation/src/org/jetbrains/kotlin/ir/validation/checkers/CheckerUtils.kt (1 line): - line 30: // FIXME: KT-78361 Investigate invalid IR in `kotlinx-serialization-core-js-1.7.0.klib` after enabling annotation validation compiler/testData/codegen/box/reflection/classes/qualifiedNameOfStandardClassesJVM.kt (1 line): - line 11: // TODO: KT-11754 plugins/kotlinx-serialization/kotlinx-serialization.k1/src/org/jetbrains/kotlinx/serialization/compiler/diagnostic/SerializationPluginDeclarationChecker.kt (1 line): - line 455: // TODO should we throw error if there is no `number` argument or there is evaluation error compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirScriptDeclarationsScope.kt (1 line): - line 35: // TODO: destructuring decl kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/KotlinCodeModel.kt (1 line): - line 325: // TODO: using original global name should be preferred to importing the clashed name. compiler/testData/codegen/box/wasm-new-exception-handling/tryCatchFinallyWithHandleResult.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/ModuleWrapperTranslation.kt (1 line): - line 201: // TODO: we could use `this.moduleName` syntax. However, this does not work for `kotlin` module in Rhino, since jps/jps-plugin/testData/incremental/multiModule/jvm/circularDependencyTopLevelFunctions/module2_b.kt (1 line): - line 4: // TODO: this call is compiled via package facade or package part depending on if callee comes from compiled or source compiler/fir/checkers/checkers.native/src/org/jetbrains/kotlin/fir/analysis/native/checkers/FirNativeThrowsChecker.kt (1 line): - line 192: // TODO: accept also FirClassSymbol<*>, like `FirClassLikeSymbol<*>.getSuperTypes()` does. Write test for this use-case. compiler/testData/codegen/box/reified/filterIsInstance.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/testData/codegen/box/wasm-new-exception-handling/catch7.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved libraries/stdlib/src/kotlin/collections/Grouping.kt (1 line): - line 277: // TODO: sum by long and by double overloads core/metadata.jvm/src/org/jetbrains/kotlin/metadata/jvm/deserialization/ModuleMapping.kt (1 line): - line 125: // TODO: read arguments of module annotations compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/FirKotlinScopeProvider.kt (1 line): - line 257: // TODO: why it's always false? kotlin-native/Interop/Runtime/src/main/kotlin/kotlinx/cinterop/package-info.java (1 line): - line 20: * TODO: decide about package location. libraries/stdlib/js/src/org.w3c/org.w3c.dom.events.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/serialization/Constants.kt (1 line): - line 8: // TODO: is it OK to just use UTF_8? kotlin-native/runtime/src/gcScheduler/common/cpp/GCSchedulerConfig.hpp (1 line): - line 63: // TODO: Figure out what to do with OOMs. compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/lazy/Fir2IrLazyPropertyAccessor.kt (1 line): - line 51: // TODO: investigate why some deserialized properties are inline compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CallExpressionResolver.kt (1 line): - line 397: // TODO : this is suspicious: remove this code? compiler/testData/codegen/box/functions/bigArity/callFunViaVararg.kt (1 line): - line 12: // TODO: uncomment arity as soon as Arity is introduced compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/ClassMemberGenerator.kt (1 line): - line 404: return // TODO: Remove when KT-67381 is implemented kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/LTO.kt (1 line): - line 148: // TODO: What about private virtual functions? analysis/light-classes-base/src/org/jetbrains/kotlin/asJava/elements/FakeFileForLightClass.kt (1 line): - line 58: // TODO: More complex traversal logic may be implemented when necessary compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/IrUtils.kt (1 line): - line 90: // TODO: support more cases like built-in operator call and so on plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/definitions/definitions.kt (1 line): - line 58: // TODO: measure performance effect and if necessary consider detecting indexing here or using separate logic for non-IDE operations to speed up filtering libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/apple/swiftexport/tasks/BuildSPMSwiftExportPackage.kt (1 line): - line 138: // FIXME: This will not work with dynamic libraries analysis/analysis-api-fe10/src/org/jetbrains/kotlin/references/fe10/base/KtFe10Reference.kt (1 line): - line 53: // TODO: Implement KtSymbolBasedReference and uncomment the following implementation after FE10 analysis API is made available in IDE kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/cpp/DependencyHandlerEx.kt (1 line): - line 40: // TODO: Remove when .gradle is gone from K/N build. kotlin-native/runtime/src/main/cpp/Natives.cpp (1 line): - line 83: // TODO: consider handling it with compiler magic instead. compiler/testData/codegen/box/coroutines/tailCallOptimizations/unit/override4.kt (1 line): - line 34: // TODO: There should be no state-machine. Should fix in IR_BE js/js.translator/testData/box/inline/kt26117.kt (1 line): - line 3: // TODO remove stdlib dependency libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/KotilnNativeConfigureBinariesSideEffect.kt (1 line): - line 91: * FIXME: KT-76704 consider removing this configuration and the validation that exported klibs are present in the api scope configuration compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeTypeIntersector.kt (1 line): - line 81: // TODO should be removed if KT-82633 is resolved compiler/ir/ir.validation/src/org/jetbrains/kotlin/ir/validation/checkers/expression/IrCallTypeChecker.kt (1 line): - line 21: // TODO: We don't have the proper type substitution yet, so skip generics for now. libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/UklibFromKGPFragmentsTests.kt (1 line): - line 190: // FIXME: ... compiler/testData/codegen/box/reflection/typeOf/js/typeOfCapturedStar.kt (1 line): - line 10: // TODO: deduplicate this test with ../typeOfCapturedStar.kt after fixing KType.toString in JS to return qualified name instead of simple compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/jsCode.kt (1 line): - line 44: // TODO: support proper symbol linkage and label clash resolution compiler/testData/codegen/box/wasm-new-exception-handling/finally7.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved js/js.translator/testData/box/superCall/nativeSuperClass.kt (1 line): - line 5: // TODO: Isn't native anymore core/compiler.common/src/org/jetbrains/kotlin/platform/JsPlatform.kt (1 line): - line 13: // TODO: temporarily conservative implementation; use the same approach as for TargetPlatform?.isNative() kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/serialization/KonanInteropModuleDeserializer.kt (1 line): - line 57: // TODO: add descriptor cache?? compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/DeclarationScopeProviderImpl.java (1 line): - line 82: //TODO: this is not how it works for classes and for exact parity we can try to use the code above compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.fir.kt (1 line): - line 38: // TODO: should we allow somehow to call with passing continuation explicitly? compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/name/legalPackageName.kt (1 line): - line 2: // TODO: Move here all the contents of compiler/testData/diagnostics/testsWithJsStdLib/name/legalPackageName.kt, after KT-67056 is fixed kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/TypeInfoNames.kt (1 line): - line 23: // TODO: consider replacing '$' by another delimeter that can't be used in class name specified with backticks (``) core/reflection.jvm/src/kotlin/reflect/jvm/internal/ConvertFromMetadata.kt (1 line): - line 165: // TODO: return upper bound of the corresponding parameter for a raw type? compiler/testData/codegen/box/wasm-new-exception-handling/kt3867.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/IntrinsicGenerator.kt (1 line): - line 520: // TODO LLVM API does not provide guarantee for LLVMIntTypeInContext availability for longer types; consider meaningful diag message instead of NPE compiler/frontend/src/org/jetbrains/kotlin/types/expressions/ControlStructureTypingUtils.java (1 line): - line 555: // TODO provide comprehensible error report for hasConflictingConstraints() case (if possible) plugins/kotlin-dataframe/testData/box/groupBy_min.kt (1 line): - line 64: // TODO: not supported scenario kotlin-native/Interop/Runtime/src/jvm/kotlin/kotlinx/cinterop/JvmTypes.kt (1 line): - line 29: // TODO: the functions below should eventually be intrinsified compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/scopes/JavaOverrideChecker.kt (1 line): - line 356: // TODO: setters native/objcexport-header-generator/impl/analysis-api/src/org/jetbrains/kotlin/objcexport/translateToObjCObject.kt (1 line): - line 77: * TODO: Temp implementation compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/KtStubbedPsiUtil.java (1 line): - line 38: //TODO: contribute to idea PsiTreeUtil#getPsiOrStubParent core/descriptors/src/org/jetbrains/kotlin/types/TypeAliasExpander.kt (1 line): - line 79: // TODO refactor TypeSubstitutor to introduce custom diagnostics js/js.translator/testData/box/delegateProperty/capturedLocalVar.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend analysis/analysis-api/testData/components/referenceShortener/shortenRange/conflicts/constructor_vs_function_rootIdePackage.kt (1 line): - line 17: // TODO This test is not correct, see KTIJ-33500 compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/FileScopeFactory.kt (1 line): - line 156: ) // TODO: should we count excludedImports here also? compiler/testData/codegen/box/multiplatform/k1/optionalExpectation.kt (1 line): - line 28: @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure repo/gradle-build-conventions/settings.gradle.kts (1 line): - line 38: // TODO: uncomment after bootstrap compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/CollectionStubMethodLowering.kt (1 line): - line 358: // This calculation happens for each abstract class multiple times. TODO memoize. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Linker.kt (1 line): - line 42: // TODO: We have a Linker.kt file in the shared module. compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/checkers/IrInlineDeclarationChecker.kt (1 line): - line 25: * TODO: move class to :compiler:ir:ir.inline when no longer invoked from :compiler:ir.serialization.common libraries/stdlib/js/builtins/Library.kt (1 line): - line 96: // TODO: Figure out better solution (Inline hacks? Dynamic calls to stable mangled names?) core/compiler.common/src/org/jetbrains/kotlin/types/AbstractTypeChecker.kt (1 line): - line 434: // TODO: drop this branch together with K1 code libraries/stdlib/src/kotlin/collections/Maps.kt (1 line): - line 351: // TODO: Decide about exposing this function as Map.Companion.Entry(k, v) or Map.Entry.Companion.invoke/of(k, v) once companion becomes available compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/PropertyReferenceDelegationLowering.kt (1 line): - line 239: // TODO: just like in `PropertyReferenceLowering`, probably better to inline the getter/setter rather than compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/dfa/LogicSystem.kt (1 line): - line 113: // TODO: rethink this API - technically it permits constructing invalid flows compiler/testData/diagnostics/testsWithJsStdLib/module/wrongCallToModule.kt (1 line): - line 27: // TODO: it's hard to test @JsNonModule on file from an external module compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/AbstractFirReflectionApiCallChecker.kt (1 line): - line 26: // TODO (KT-60899): implement this checker for JS, similarly to K1's JsReflectionAPICallChecker. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsIrBackendContext.kt (1 line): - line 61: override val configuration: CompilerConfiguration, // TODO: remove configuration from backend context plugins/kotlin-dataframe/testData/box/groupBy_percentile.kt (1 line): - line 54: // TODO: not supported scenario kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/ObjCExportUtils.kt (1 line): - line 151: // TODO: what about equals and hashCode? compiler/testData/codegen/box/wasm-new-exception-handling/finally3.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArgumentsConfigurator.kt (1 line): - line 368: // TODO: this branch can be dropped again after KT-80590 compiler/fir/checkers/checkers.jvm/src/org/jetbrains/kotlin/fir/analysis/jvm/checkers/expression/FirExpressionJavaNullabilityWarningCheckers.kt (1 line): - line 34: // TODO reimplement using AdditionalTypeChecker KT-62864 libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/consumption/UklibFragmentResolution.kt (1 line): - line 16: // FIXME: Make attributes type safe instead of Set an invert this function compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/TypeExpansionUtils.kt (1 line): - line 213: // TODO: Consider making code more generic and "ready" to any kind of types (KT-68497) plugins/kapt/kapt-compiler/testData/converter/ignoredMembers.kt (1 line): - line 2: // TODO: Re-enable metadata generation compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda3.kt (1 line): - line 35: // TODO: additional parameters are not supported yet compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/lower/ComplexExternalDeclarationsToTopLevelFunctionsLowering.kt (1 line): - line 184: // TODO: Optimize (KT-60661) compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrConverter.kt (1 line): - line 617: // TODO: move to compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/convertToIr.kt (KT-64201) libraries/stdlib/wasm/internal/kotlin/wasm/internal/Number2String.kt (1 line): - line 124: // TODO: What we are going to do with multiple threads? compiler/testData/codegen/box/polymorphicSignature/invokeExactWithInlineClass.kt (1 line): - line 17: // TODO: it's unclear whether this should throw or not, see KT-28214. plugins/plugin-sandbox/plugin-sandbox-ic-test/testFixtures/org/jetbrains/kotlin/incremental/AbstractIncrementalFirJvmCompilerRunnerTest.kt (1 line): - line 46: get() = BuildLogFinder(isGradleEnabled = true, isFirEnabled = true) // TODO: investigate cases that need isGradleEnabled - the combination looks fragile libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/internal/CInteropCommonizerTask.kt (1 line): - line 280: // FIXME support cinterop with PM20 libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/LanguageSettingsTests.kt (1 line): - line 234: * FIXME: KT-75216 Update this test to actually verify Language Settings propagation to IDE import when legacy way is deprecated and removed libraries/stdlib/native-wasm/src/kotlin/collections/HashSet.kt (1 line): - line 133: @DeprecatedSinceKotlin(warningSince = "1.9", errorSince = "2.1") // TODO: advance to HIDDEN eventually js/js.translator/testData/box/coercion/unitAsExtensionReceiver.kt (1 line): - line 4: // TODO: Design Unit materialization and Unit.asDynamic() in JS IR BE compiler/tests-compiler-utils/testFixtures/org/jetbrains/kotlin/codegen/BytecodeListingTextCollectingVisitor.kt (1 line): - line 24: // TODO ACC_MANDATED - requires reading Parameters attribute, which we don't generate by default compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/calls/JsonIntrinsics.kt (1 line): - line 14: // TODO use nativeX annotations on kotlin.js.Json instead compiler/testData/codegen/box/wasm-new-exception-handling/nestedFinallyAndNonFinallyTry3.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/LambdaArgumentEffectsTransformer.kt (1 line): - line 37: // TODO: Support callsInPlace contracts on receivers, KT-59681 compiler/testData/codegen/box/stringTrim/stringTrim.kt (1 line): - line 5: // TODO: check IR compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/descriptors/LazyClassDescriptor.java (1 line): - line 170: // TODO: it would be better to have separate ObjectLiteralDescriptor without so much magic compiler/testData/codegen/box/casts/functions/reifiedSafeAsFunKSmall.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/AnnotationConstructorLowering.kt (1 line): - line 32: // TODO what about its previous body? core/reflection.jvm/src/kotlin/reflect/jvm/internal/types/typeOfImpl.kt (1 line): - line 33: // TODO: KT-78951 typeOf creates a non-raw type for raw types from Java compiler/tests-compiler-utils/testFixtures/org/jetbrains/kotlin/codegen/GenerationUtils.kt (1 line): - line 99: // TODO: add running checkers and check that it's safe to compile compiler/arguments/src/org/jetbrains/kotlin/arguments/description/JvmCompilerArguments.kt (1 line): - line 315: // TODO: change to JVMAssertionsMode type analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/contracts/firContractUtils.kt (1 line): - line 161: // TODO: KT-82177 Property accessors are not supported in the Analysis API Surface compiler/testData/codegen/box/casts/functions/asFunKSmall.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not libraries/stdlib/wasm/src/kotlin/text/regex/BitSet.kt (1 line): - line 116: // Set all bits after the index to 0. TODO: We can remove it. compiler/testData/codegen/box/controlStructures/tryCatchInExpressions/differentTypes.kt (1 line): - line 4: // TODO: muted automatically, investigate should it be ran for JS or not compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/impl/KlibMetadataModuleDescriptorFactoryImpl.kt (1 line): - line 112: // TODO: think about fixing issues in descriptors/scopes kotlin-native/Interop/Runtime/src/callbacks/c/callbacks.c (1 line): - line 221: assert(sizeof(jobject) == sizeof(void*)); // TODO: check statically compiler/container/src/org/jetbrains/kotlin/container/Cache.kt (1 line): - line 94: // TODO: should apply generic substitution through hierarchy libraries/stdlib/js/src/kotlin/wasmJs/JsReference.kt (1 line): - line 7: // TODO: Replace `Any` with `T` as soon as it will be possible core/descriptors/src/org/jetbrains/kotlin/types/CapturedTypeApproximation.kt (1 line): - line 89: // TODO: assert that howThisTypeIsUsed is always IN compiler/testData/codegen/box/vararg/kt52146_samWithSelfTypeAndStarProjection.kt (1 line): - line 5: // TODO: OSIP-190: when K1 mode is dropped -> drop the following test directive `DISABLE_IR_VARARG_TYPE_CHECKS: JVM_IR` compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/ClassReferenceLowering.kt (1 line): - line 191: // TODO: Check why do we have un-substituted reified parameters compiler/testData/codegen/boxInline/smap/anonymous/objectOnInlineCallSiteWithCapture.kt (1 line): - line 8: //TODO there is a bug in asm it's skips linenumber on same line on reading bytecode compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/calls/PrimitiveContainerMemberCallTransformer.kt (1 line): - line 36: // TODO irCall? libraries/stdlib/js/src/kotlin/coroutines/intrinsics/IntrinsicsJs.kt (1 line): - line 333: // TODO: remove after bootstrapping build-common/src/org/jetbrains/kotlin/incremental/IncrementalJsCache.kt (1 line): - line 382: // TODO: remove this method once AbstractJsProtoComparisonTest is fixed compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/ArgumentTypeResolver.java (1 line): - line 260: // TODO: probably should be "is unsigned type or is supertype of unsigned type" to support Comparable expected types too compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/stages/CheckCallableReferenceExpectedType.kt (1 line): - line 412: // TODO: Reconsider it with KT-81918 compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/dce/WasmUselessDeclarationsRemover.kt (1 line): - line 57: // TODO bring back the primary constructor fix compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirDelegatedPropertyInferenceSession.kt (1 line): - line 146: // TODO: Get rid of the mode compiler/testData/codegen/box/wasm-new-exception-handling/extend0.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved core/descriptors/src/org/jetbrains/kotlin/builtins/suspendFunctionTypes.kt (1 line): - line 60: // TODO: names compiler/testData/codegen/box/coroutines/multipleInvokeCalls.kt (1 line): - line 33: // TODO: additional parameters are not supported yet compiler/testData/codegen/box/callableReference/bound/equals/nullableReceiverInEquals.kt (1 line): - line 3: // TODO: investigate should it be ran for JS or not compiler/testData/codegen/box/escapeAnalysis/test7.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/extensions/ScriptingProcessSourcesBeforeCompilingExtension.kt (1 line): - line 213: // TODO: see comment at LazyScriptDefinitionProvider.Companion.getNonScriptFilenameSuffixes compiler/tests-common/testFixtures/org/jetbrains/kotlin/jvm/compiler/AbstractLoadJavaTest.java (1 line): - line 279: // TODO: add more tests on inherited parameter names, but currently impossible because of KT-4509 compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/DelegatedPropertyGenerator.kt (1 line): - line 205: // TODO: do not erase type here compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/ConstraintSystemUtilContext.kt (1 line): - line 25: * TODO: get rid of this function once [LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible] is removed core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/builtins/BuiltInsPackageFragmentImpl.kt (1 line): - line 40: // TODO: report a proper diagnostic compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/wrappers/symbols/symbolBasedAnnotationArguments.kt (1 line): - line 67: // TODO: do not create extra objects here libraries/stdlib/native-wasm/src/kotlin/text/regex/sets/SurrogateCharSets.kt (1 line): - line 171: // TODO: We have a similar code here, in LowSurrogateCharSet and in CharSet. Reuse it somehow. core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/KotlinJvmBinaryClass.kt (1 line): - line 35: // TODO: abstract signatures for methods and fields instead of ASM 'desc' strings? compiler/testData/codegen/box/reflection/properties/genericOverriddenProperty.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not core/descriptors/src/org/jetbrains/kotlin/descriptors/impl/TypeParameterDescriptorImpl.java (1 line): - line 146: upperBounds.add(bound); // TODO : Duplicates? compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/KtPsiFactory.kt (1 line): - line 978: // TODO: get rid of it analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/file/structure/LLFirDeclarationModificationService.kt (1 line): - line 163: // TODO improve for Java KTIJ-21684 compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/overrides/CopyIrTreeWithSymbolsForFakeOverrides.kt (1 line): - line 93: // TODO (KT-64715): RawTypeAnnotation, FlexibleMutability, RawType, FlexibleArrayElementVariance? compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/ir/JvmIrInlineUtils.kt (1 line): - line 61: // TODO remove after KT-78719 libraries/stdlib/wasm/wasi/builtins/kotlin/Throwable.kt (1 line): - line 24: //TODO: Investigate possibility to make WASI stack discoverable (KT-60965) kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CompilerOutput.kt (1 line): - line 207: // TODO: Possibly slow, maybe to a separate phase? compiler/testData/codegen/box/multiplatform/k2/optionalExpectationJvm.kt (1 line): - line 13: @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/NewCommonSuperTypeCalculator.kt (1 line): - line 81: // TODO: merge flexibilities of type arguments instead of select the first suitable type kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/cpp/CppConsumerPlugin.kt (1 line): - line 20: // TODO: Consider doing CppBasePlugin like standard gradle plugins that also compiler/tests-common/testFixtures/org/jetbrains/kotlin/jvm/compiler/LoadDescriptorUtil.java (1 line): - line 117: // TODO: use the same additional binary roots as those were used for compilation compiler/testData/codegen/box/functions/bigArity/callWithIncorrectNumberOfArguments.kt (1 line): - line 12: // TODO: uncomment arity as soon as Arity is introduced compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/AssignmentGenerator.kt (1 line): - line 313: // TODO property imported from an object core/deserialization.common/src/org/jetbrains/kotlin/serialization/deserialization/MetadataUtil.kt (1 line): - line 36: // TODO: report a proper diagnostic compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/nonLambdaLiteralAsArgument.fir.kt (1 line): - line 21: // TODO: (KT-72772) it may be clearer to generate both errors here. compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/proxy/CommonProxy.kt (1 line): - line 57: // TODO this check can be dropped after serialization introduction compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/KtTypeParameterListOwnerNotStubbed.java (1 line): - line 27: // TODO: Remove when all implementations of JetTypeParameterListOwner get stubs kotlin-native/runtime/src/gcScheduler/common/cpp/EpochScheduler.hpp (1 line): - line 48: // TODO: The actual logic is split between this class and `gc::GCState`. The latter compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/symbols/IrSymbol.kt (1 line): - line 100: // TODO: remove once JS IR IC migrates to a different stable tag generation scheme compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/proxy/reflection/KProperty0Proxy.kt (1 line): - line 17: get() = object : Getter(this@KProperty0Proxy.state.getterState!!), KProperty0.Getter { // TODO avoid !!; getter will be null in case of java property compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/KotlinLoggerMessageCollectorAdapter.kt (1 line): - line 19: CompilerMessageSeverity.EXCEPTION -> kotlinLogger.error(renderedMessage, RuntimeException(message)) // TODO: get the original exception properly and avoid duplication of stacktrace in message compiler/testData/codegen/box/casts/functions/reifiedIsFunKSmall.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/resolver/KotlinCompilationNpmResolver.kt (1 line): - line 233: //TODO: rewrite when we get general way to have inter compilation dependencies compiler/testData/codegen/box/sam/contravariantIntersectionTypeWithNonTrivialCommonSupertype.kt (1 line): - line 3: // TODO support different bytecode text templates for FIR? compiler/fir/checkers/checkers.web.common/src/org/jetbrains/kotlin/fir/analysis/web/common/checkers/declaration/FirWebCommonExternalChecker.kt (1 line): - line 61: // TODO: KT-55600: Stop generating diagnostic compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/classpathDiff/ClasspathChangesComputer.kt (1 line): - line 305: * TODO: We'll fix these issues later. compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/wrappers/trees/TreeBasedMethod.kt (1 line): - line 58: // TODO: allow nullable names in Tree-based annotation arguments and pass null instead of a synthetic name kotlin-native/runtime/src/main/cpp/ObjCExceptions.cpp (1 line): - line 13: // TODO: Consider refactoring to `FormatToSpan`. compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/utils/FirScriptUtils.kt (1 line): - line 14: PARAMETER_FROM_BASE_CLASS, // TODO: remove after fixing KT-60449 compiler/frontend.common.jvm/src/org/jetbrains/kotlin/load/java/structure/impl/classFiles/BinaryJavaClass.kt (1 line): - line 211: // TODO: Read isVararg properly compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/wrappers/symbols/symbolBasedTypes.kt (1 line): - line 76: // TODO: we should replace this with a "link" to classifier, not an actual classifier itself compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/Fir2IrLazyDeclarationsGenerator.kt (1 line): - line 191: // TODO: Should be private compiler/testData/codegen/box/builtinStubMethods/mapRemove/readOnlyMap.kt (1 line): - line 1: // TODO: FirModuleDescriptor provides default builtins which filters out platform-specific functions (and defaults are considered platform-specific) native/executors/src/main/kotlin/org/jetbrains/kotlin/native/executors/XcodeProject.kt (1 line): - line 177: // TODO: get rid of this: isn't used at all compiler/testData/codegen/box/sam/topLevelConversions.kt (1 line): - line 44: // TODO: Uncomment it once KT-74899 is fixed compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/classpathDiff/ClasspathSnapshotSerializer.kt (1 line): - line 26: // TODO: Make this code safer (not relying on how the snapshot files are produced and whether Gradle maintains the above guarantee). For native/objcexport-header-generator/src/org/jetbrains/kotlin/backend/konan/objcexport/MethodBridge.kt (1 line): - line 79: // TODO: it is not exactly true in potential future cases. compiler/testData/codegen/boxInline/wasm-new-exception-handling/tryCatch.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved js/js.parser/src/org/jetbrains/kotlin/js/parser/sourcemaps/SourceMapParser.kt (1 line): - line 17: @file:Suppress("DEPRECATION") // TODO: needs an intensive rework for new Char API kotlin-native/runtime/src/main/cpp/ExternalRCRef.hpp (1 line): - line 108: // TODO: Try to handle it atomically only when the GC is in progress. plugins/kotlinx-serialization/kotlinx-serialization.backend/src/org/jetbrains/kotlinx/serialization/compiler/backend/ir/IrBuilderWithPluginContext.kt (1 line): - line 458: // TODO: get rid of descriptor compiler/build-tools/kotlin-build-statistics/src/org/jetbrains/kotlin/build/report/statistics/CompileStatisticsData.kt (1 line): - line 36: //TODO think about it,time in milliseconds compiler/testData/codegen/box/casts/functions/reifiedAsFunKBig.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/testData/codegen/box/wasm-new-exception-handling/try4.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/build-tools/kotlin-build-tools-api/src/main/kotlin/org/jetbrains/kotlin/buildtools/api/cri/LookupEntry.kt (1 line): - line 10: // TODO (KT-81585): once the CRI schema is stable, document public interfaces analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/projectStructure/StandaloneProjectFactory.kt (1 line): - line 135: // TODO: rewrite KtResolveExtensionProviderForTest to avoid KtResolveExtensionProvider access before initialized project libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/diagnostics/checkers/KotlinTargetAlreadyDeclaredChecker.kt (1 line): - line 36: // FIXME: https://youtrack.jetbrains.com/issue/KT-59316/Deprecate-multiple-same-targets#focus=Comments-27-9992405.0-0 compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/InlineChecker.kt (1 line): - line 251: // TODO: receivers are currently not inline (KT-5837) plugins/lombok/lombok.k2/src/org/jetbrains/kotlin/lombok/k2/generators/RequiredArgsConstructorGeneratorPart.kt (1 line): - line 40: // TODO: consider adding `hasInitializer` property directly to java model compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/impl/KlibMetadataDeserializedPackageFragmentsFactoryImpl.kt (1 line): - line 17: // TODO decouple and move interop-specific logic back to Kotlin/Native. compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/ir/JvmIrCoroutineUtils.kt (1 line): - line 39: // (TODO: maybe the reference itself should be the continuation, just like lambdas?) kotlin-native/runtime/src/objc/cpp/ObjCInteropUtilsClasses.mm (1 line): - line 18: // TODO: rework the interface to reduce the number of virtual calls compiler/testData/codegen/boxWasmJsInterop/externalTypeOperators.kt (1 line): - line 187: for (i in 0..2) { // TODO: Symbols and BigInts are not supprted in Wasm plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/impl/ScriptJvmK2CompilerImpl.kt (1 line): - line 241: state.hostConfiguration.getRefinedOrBaseCompilationConfiguration(script).valueOrThrow() // TODO: errors? orBase? libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/ResolutionTestingAttributes.kt (1 line): - line 9: * FIXME: It is desirable that these attributes remain manually editable, but they must also be up-to-date with actually published attributes. compiler/testData/codegen/box/compileKotlinAgainstKotlin/optionalAnnotation.kt (1 line): - line 24: @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure core/descriptors/src/org/jetbrains/kotlin/descriptors/impl/PropertyDescriptorImpl.java (1 line): - line 436: return null; // TODO : tell the user that the property was projected out libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/android/internal/ParcelizeSubplugin.kt (1 line): - line 32: // FIXME: KT-81384 Provide integration surface for External targets and Gradle Subplugin API compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/dce/UselessDeclarationsRemover.kt (1 line): - line 86: // TODO bring back the primary constructor fix kotlin-native/runtime/src/main/cpp/objc_support/ObjectPtr.hpp (1 line): - line 219: // TODO: std::atomic specialization? core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/components/ReflectKotlinClassFinder.kt (1 line): - line 41: // TODO: go through javaClass's class loader plugins/atomicfu/atomicfu-runtime/build.gradle.kts (1 line): - line 44: // FIXME: Remove customized publication in KT-83065 compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/intermediate/CallBuilder.kt (1 line): - line 30: val original: ResolvedCall<*>, // TODO get rid of "original", sometimes we want to generate a call without ResolvedCall core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/structure/ReflectJavaConstructor.kt (1 line): - line 25: // TODO: test local/anonymous classes libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/android/KotlinAndroidTarget.kt (1 line): - line 302: * TODO: Ask Google about providing such configuration where they could set their attributes and control them. plugins/kotlin-dataframe/testData/box/groupBy_max.kt (1 line): - line 50: // TODO: not supported scenario core/descriptors/src/org/jetbrains/kotlin/builtins/functionTypes.kt (1 line): - line 262: // TODO: preserve laziness of given annotations compiler/testData/codegen/bytecodeText/nullCheckOptimization/deterministicNotNullChecks.kt (1 line): - line 23: // TODO: in fact, there should be an assertion, but it's missing because of https://youtrack.jetbrains.com/issue/KT-24210. kotlin-native/runtime/src/main/cpp/ObjCExportExceptionDetails.mm (1 line): - line 25: //! TODO: Use not_null signature. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/declarations/IrValueParameter.kt (1 line): - line 119: * TODO: consider dropping [isHidden] if it isn't used by any known plugin. kotlin-native/runtime/src/gc/pmcs/cpp/GCImplTest.cpp (1 line): - line 64: #if !__has_feature(thread_sanitizer) // TODO: Fix auxilary threads with tsan. compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/inline/KlibSyntheticAccessorGenerator.kt (1 line): - line 28: // TODO: use some class to bear information about the inline function where the accessor is needed kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/CallGraphBuilder.kt (1 line): - line 184: // TODO: Unconservative way - when we can use it? compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/state/Common.kt (1 line): - line 28: // TODO see specialBuiltinMembers.kt core/descriptors/src/org/jetbrains/kotlin/resolve/constants/constantValues.kt (1 line): - line 97: //TODO: KT-8507 analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/lazy/resolve/FirLazyBodiesCalculator.kt (1 line): - line 194: // TODO A temporary hack to avoid problems with lazy resolve of typealiased constructors; see KT-73481 core/reflection.jvm/src/kotlin/reflect/jvm/internal/RuntimeTypeMapper.kt (1 line): - line 165: // TODO: support the case when a fake override overrides several declarations with different signatures libraries/stdlib/js/src/org.w3c/org.w3c.notifications.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/util-klib/src/org/jetbrains/kotlin/library/impl/KlibIrWriterImpl.kt (1 line): - line 17: * TODO (KT-81411): This class is an implementation detail. It should be made internal after dropping `KonanLibraryImpl`. compiler/testData/codegen/box/wasm-new-exception-handling/tryFinallyInsideInlineLambda.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/SyntheticAccessorLowering.kt (1 line): - line 191: // TODO change after KT-78719 libraries/stdlib/wasm/internal/kotlin/wasm/internal/WasmNewData.kt (1 line): - line 8: // TODO: move to WasmInstructions and remove upper bound and implementation, see a version below. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ArgumentsGenerationUtils.kt (1 line): - line 413: // TODO add a bound receiver property to IrFunctionExpressionImpl? compiler/ir/serialization.jvm/src/org/jetbrains/kotlin/backend/jvm/serialization/deserializeLazyDeclarations.kt (1 line): - line 175: // TODO: implement properly compiler/testData/codegen/box/wasm-new-exception-handling/tryCatch.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/cgen/CBridgeGenUtils.kt (1 line): - line 238: // TODO: consider handling a cleanup failure properly. libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/PropertiesBuildServiceTest.kt (1 line): - line 26: // TODO: Find a way to test Gradle properties (it seems that more setup is needed for Gradle to pick up the contents of compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirClassSubstitutionScope.kt (1 line): - line 348: // TODO: do we have fields with implicit type? compiler/testData/codegen/box/wasm-new-exception-handling/finally11.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved analysis/decompiled/decompiler-to-stubs/src/org/jetbrains/kotlin/analysis/decompiler/stub/ClassClsStubBuilder.kt (1 line): - line 131: //TODO: filtering function types should go away compiler/psi/parser/src/org/jetbrains/kotlin/parsing/SemanticWhitespaceAwarePsiBuilder.java (1 line): - line 24: // TODO: comments go to wrong place when an empty element is created, see IElementType.isLeftBound() compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinCliJavaFileManagerImpl.kt (1 line): - line 50: // TODO: do not inherit from CoreJavaFileManager to avoid accidental usage of its methods which do not use caches/indices libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/native/tasks/KotlinNativeTasks.kt (1 line): - line 685: // TODO: Use [ResolvedDependencyResult.resolvedVariant.externalVariant] to find a connection between platform-specific compiler/testData/codegen/box/wasm-new-exception-handling/catch4.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved libraries/stdlib/js/src/org.w3c/org.w3c.css.masking.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/cpp/CompileToExecutable.kt (1 line): - line 36: // TODO: Figure out a way to pass KonanTarget, but it is used as a key into PlatformManager, compiler/fir/providers/src/org/jetbrains/kotlin/fir/FirVisibilityChecker.kt (1 line): - line 454: // TODO: what if there is an intersection type from smartcast? compiler/cli/cli-runner/src/org/jetbrains/kotlin/runner/findCompiler.kt (1 line): - line 27: // TODO: find a good place and put the shared code into it plugins/kapt/kapt-compiler/src/org/jetbrains/kotlin/kapt/PartialAnalysisHandlerExtension.kt (1 line): - line 79: /* TODO Now we analyse body with anonymous object initializers. Check if we can't avoid it compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/serializationUtil.kt (1 line): - line 65: // TODO: stop preserving private type aliases once KT-17229 is fixed. libraries/stdlib/native-wasm/src/kotlin/text/regex/sets/LeafSet.kt (1 line): - line 47: val shift = accepts(startIndex, testString) // TODO: may be move the check above in accept function. compiler/testData/codegen/box/escapeAnalysis/test3.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/convertors/WasmIrToBinary.kt (1 line): - line 22: // TODO Change the link to final spec when it's merged libraries/stdlib/wasm/js/src/kotlin/time/Duration.kt (1 line): - line 6: @file:Suppress("UNUSED_PARAMETER") // TODO: Remove after bootstrap update libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/ProjectLocalConfigurations.kt (1 line): - line 15: * TODO: examine and remove kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/visibility.kt (1 line): - line 19: // TODO: LLVM handles some additional cases. compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/CliVirtualFileFinderFactory.kt (1 line): - line 27: // TODO: create different JvmDependenciesIndex instances for different sets of source roots to improve performance compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/CallableCopyTypeCalculator.kt (1 line): - line 57: // TODO: drop synchronized in KT-60385 compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/AddContinuationLowering.kt (1 line): - line 451: // TODO: It would be nice if AddContinuationLowering could insert the continuation argument before default stub generation. analysis/low-level-api-fir/testData/lazyResolve/noRuntime/arrayOfCall.kt (1 line): - line 2: // TODO: arrayOf() should be resolved because it's from builtins that are always presented js/js.translator/testData/typescript-export/js/constructors/constructors.kt (1 line): - line 6: // TODO fix statics export in DCE-driven mode compiler/testData/diagnostics/testsWithStdLib/inference/completion/postponedArgumentsAnalysis/rerunStagesAfterFixationInPartialMode.kt (1 line): - line 24: * TODO: add tests with lambdas, which can't be analyzed in partial mode, but if can, the code will be successfully resolved. compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/metadata/KlibMetadataMonolithicSerializer.kt (1 line): - line 22: // TODO: need a refactoring between IncrementalSerializer and MonolithicSerializer. libraries/stdlib/js/src/kotlin/text/stringJs.kt (1 line): - line 289: //TODO: String.replace to implement effective trimLeading and trimTrailing libraries/stdlib/js/src/org.w3c/org.w3c.workers.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/linkKlibs.kt (1 line): - line 223: // TODO: find out what should be done in the new builtins/symbols about it compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrTreeBuildUtils.kt (1 line): - line 160: // TODO find a way to avoid creation of empty lambda compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/multiplatform/OptionalAnnotationPackageFragmentProvider.kt (1 line): - line 74: // TODO: make this lazy value more granular, e.g. a memoized function ClassId -> ClassDescriptor compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/InterfaceDefaultCallsLowering.kt (1 line): - line 24: // TODO If there are no default _implementations_ we can avoid generating defaultImpls class entirely by moving default arg dispatchers to the interface class compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/InlineCallableReferenceToLambda.kt (1 line): - line 142: // TODO: could there be a star projection here? compiler/testData/codegen/bytecodeText/coercionToUnitOptimization/safeCallWithReturnValue.kt (1 line): - line 1: // TODO KT-36654 Generate more compact bytecode for safe call in JVM_IR compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/AnonymousObjectSuperConstructorLowering.kt (1 line): - line 56: * (TODO fix the inliner instead. Then keep this code for one more version for backwards compatibility.) kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/jvm/CommandLine.kt (1 line): - line 41: // TODO: unify camel and snake cases. compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/wrappers/trees/TreeBasedClass.kt (1 line): - line 120: // TODO: Support libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/apple/AppleXcodeTasks.kt (1 line): - line 282: // FIXME: KT-71720 kotlin-native/libclangext/src/main/include/clang-c/ext.h (1 line): - line 19: // TODO: the API declared below should eventually be refined and contributed to libclang. js/js.translator/testData/box/crossModuleRefIR/constructor.kt (1 line): - line 16: // TODO: may be useful after implementing local classes in inline functions compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/StaticInitializersLowering.kt (1 line): - line 45: // TODO: mark as synthesized libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/ModuleIds.kt (1 line): - line 49: // TODO KT-62911: Replace unsafe idOfRootModule with suspendable version idRootModule compiler/util-klib/src/org/jetbrains/kotlin/library/UnresolvedLibrary.kt (1 line): - line 11: * TODO: This class has a major design flaw and needs to be replaced by the new KLIB resolver in the future. build-common/src/org/jetbrains/kotlin/incremental/js/IncrementalDataProviderFromCache.kt (1 line): - line 20: get() = JsMetadataVersion.INSTANCE.toArray() // TODO: store and load correct metadata version compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirConflictsHelpers.kt (1 line): - line 585: // TODO: relying on an unreliable debug representation of the cone type; see KT-77396 native/swift/swift-export-standalone/resources/swift/KotlinRuntimeSupport.swift (1 line): - line 30: // FIXME: swap to @expose(C) when it's available or consider using @expose(Cxx) compiler/cli/src/org/jetbrains/kotlin/cli/metadata/KotlinMetadataCompiler.kt (1 line): - line 126: // TODO: update this once a launcher script for K2MetadataCompiler is available compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/UnsupportedSyntheticCallableReferenceChecker.kt (1 line): - line 36: // TODO: support references to synthetic Java extension properties (KT-8575) compiler/frontend/src/org/jetbrains/kotlin/resolve/QualifiedExpressionResolver.kt (1 line): - line 524: is TypeAliasDescriptor -> // TODO type aliases as qualifiers? (would break some assumptions in TypeResolver) compiler/testData/codegen/box/javaFieldAndKotlinProperty/javaProtectedFieldAndKotlinInvisiblePropertyReference.kt (1 line): - line 24: // TODO: remove suppress after dropping the relevant diagnostic compiler/testData/diagnostics/testsWithJsStdLibAndBackendCompilation/name/illegalNameIR.kt (1 line): - line 3: // TODO: Move here all the contents of compiler/testData/diagnostics/testsWithJsStdLib/name/illegalNameIR.kt, after KT-67057 is fixed compiler/testData/codegen/box/reflection/createAnnotation/floatingPointParameters.kt (1 line): - line 12: // TODO: uncomment once KT-13887 is implemented plugins/power-assert/power-assert.cli/src/org/jetbrains/kotlin/powerassert/PowerAssertCommandLineProcessor.kt (1 line): - line 36: required = false, // TODO required for Kotlin/JS core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/structure/ReflectJavaPackage.kt (1 line): - line 37: // TODO: support it if possible compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/OperatorExpressionGenerator.kt (1 line): - line 404: // TODO: don't rely on originalKotlinType. compiler/testData/diagnostics/foreignAnnotationsTests/java8Tests/misc/methodWithTypeParameter.kt (1 line): - line 30: // TODO: We should properly compare equality with specific local equality axioms (as when calculating overriden descriptors) libraries/stdlib/js/runtime/coroutineInternalJS.kt (1 line): - line 35: // TODO: remove `JS` suffix oncec `NameGenerator` is implemented compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/ReplApi.kt (1 line): - line 94: val data: Any? // TODO: temporary; migration to new scripting infrastructure compiler/testData/codegen/box/annotations/annotationProperty.kt (1 line): - line 11: // TODO: fix KT-22463 and enable this test kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CodeGenerationInfo.kt (1 line): - line 15: // TODO: Support more cases compiler/testData/codegen/bytecodeListing/multiplatform/optionalExpectation.kt (1 line): - line 6: @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure compiler/incremental-compilation-impl/testFixtures/org/jetbrains/kotlin/incremental/AbstractIncrementalK2PsiJvmCompilerRunnerTest.kt (1 line): - line 21: get() = BuildLogFinder(isGradleEnabled = true, isFirEnabled = true) // TODO: investigate cases that need isGradleEnabled - the combination looks fragile compiler/util-klib/src/org/jetbrains/kotlin/library/impl/KlibMetadataWriterImpl.kt (1 line): - line 17: * TODO (KT-81411): This class is an implementation detail. It should be made internal after dropping `KonanLibraryImpl`. compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgumentCrossModule.kt (1 line): - line 16: // TODO check real effects to fix the behavior when we reach consensus libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/ide/dependencyResolvers/resolveCinteropDependency.kt (1 line): - line 49: version = null, // TODO (kirpichenkov): if/when used for published cinterops, should be set up correctly js/js.translator/testData/box/enum/nativeEnum.kt (1 line): - line 9: // TODO uncomment when KT-5605 will be fixed compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/WasmLoweringPhases.kt (1 line): - line 227: // TODO: compiler/tests-integration/testFixtures/org/jetbrains/kotlin/codegen/AbstractCustomScriptCodegenTest.kt (1 line): - line 85: // TODO: add types to receivers, envVars and params libraries/stdlib/js/src/org.w3c/org.w3c.xhr.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/testData/codegen/box/wasm-new-exception-handling/catch6.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/IrInlineCodegen.kt (1 line): - line 364: //TODO depth index calc could be more precise wasm/wasm.frontend/src/org/jetbrains/kotlin/wasm/resolve/WasmPlatformAnalyzerServices.kt (1 line): - line 12: // TODO: Here for IDE ABI, remove after rename in IDE compiler/frontend/src/org/jetbrains/kotlin/resolve/AnnotationChecker.kt (1 line): - line 279: // TODO: tests on different KtAnnotatedExpression (?!) compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/GenericReplCompilingEvaluator.kt (1 line): - line 81: // TODO: seems usafe when delayed evaluation may happen after some more compileAndEval calls on the same state; check and fix or protect libraries/stdlib/wasm/src/kotlin/text/FloatingPointConverter.kt (1 line): - line 159: //TODO: compiler/testData/codegen/box/wasm-new-exception-handling/finally6.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved libraries/stdlib/wasm/js/internal/ExceptionHelpers.kt (1 line): - line 32: @Suppress("UNUSED_PARAMETER") // TODO: Remove after bootstrap update libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediacapture.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/GranularMetadataTransformation.kt (1 line): - line 475: // FIXME: KT-73537 psmExtractorFactory -> psmExtractor -> psm while it could be just one "extractPsm" call compiler/testData/codegen/box/callableReference/bound/equals/receiverInEquals.kt (1 line): - line 3: // TODO: investigate should it be ran for JS or not compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/JvmPackagePartProvider.kt (1 line): - line 42: // TODO: redesign to avoid cache-unfriendly usages, see KT-76516 compiler/backend/src/org/jetbrains/kotlin/codegen/codegenUtil.kt (1 line): - line 193: // TODO: warn that nullability info on argument will be lost? kotlin-native/runtime/src/main/cpp/ObjectTestSupport.hpp (1 line): - line 23: // TODO: Some concepts from here can be used in production code. js/js.translator/testData/box/expression/invoke/inheritFromFunctionTraits.kt (1 line): - line 6: * TODO: support inheritance from function types and re-enable this test libraries/stdlib/js/src/kotlin/collections/ArraySorting.kt (1 line): - line 105: Unit // TODO: Fix KT-31506 compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/GenericCandidateResolver.kt (1 line): - line 74: // TODO : more attempts, with different expected types compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/stages/ArgumentCheckingProcessor.kt (1 line): - line 362: * TODO: Fallback in annotation is a temporary solution. See KT-81110 and compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/WebCallableReferenceLowering.kt (1 line): - line 155: // TODO: What name should be in case of constructor? or class name? compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirLazyNestedClassifierScope.kt (1 line): - line 18: // TODO: we could get rid of this scope and use FirNestedClassifierScope instead, compiler/testData/codegen/box/casts/asWithGeneric.kt (1 line): - line 5: // TODO: muted automatically, investigate should it be ran for JS or not kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/TypeUtils.kt (1 line): - line 25: * TODO: use libclang to implement? compiler/testData/codegen/box/wasm-new-exception-handling/someStuff.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/utils/SourceMapGenerator.kt (1 line): - line 24: // TODO: eliminate duplication for the [org.jetbrains.kotlin.backend.wasm.writeCompilationResult] logic kotlin-native/runtime/src/mm/cpp/ShadowStack.cpp (1 line): - line 29: // TODO: maybe compress in single value somehow. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/KotlinJsPlugin.kt (1 line): - line 21: // TODO get rid of this plugin, too? Use the 'base' plugin instead? compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirSerializerExtension.kt (1 line): - line 134: // TODO: add usages compiler/frontend/src/org/jetbrains/kotlin/types/expressions/ControlStructureTypingVisitor.java (1 line): - line 756: //TODO: It's hacking fix for KT-5100: Strange "Return is not allowed here" for multi-declaration initializer with elvis expression js/js.translator/testData/box/inlineStdlib/callNameClash.kt (1 line): - line 18: // TODO: check that with second parameter is named f? kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/CodeUtils.kt (1 line): - line 81: // TODO: improve literal readability by preserving more characters. compiler/testData/codegen/box/closures/closureOnTopLevel2.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not plugins/kotlinx-serialization/kotlinx-serialization.backend/src/org/jetbrains/kotlinx/serialization/compiler/backend/ir/BaseIrGenerator.kt (1 line): - line 227: val initializer = field?.initializer // FIXME: Null when property from another module; can't compare it with default value on JS or Native plugins/kapt/kapt-compiler/testData/converter/inheritanceSimple.kt (1 line): - line 2: // TODO: Re-enable metadata generation compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/psiUtil/ktPsiUtil.kt (1 line): - line 375: //TODO: strange method, and not only Kotlin specific (also Java) compiler/ir/backend.jvm/entrypoint/src/org/jetbrains/kotlin/backend/jvm/JvmIrCodegenFactory.kt (1 line): - line 405: // TODO: consider dividing codegen itself into separate phases (bytecode generation, metadata serialization) to avoid this compiler/testData/codegen/box/sam/contravariantIntersectionTypeWithNonTrivialCommonSupertype2.kt (1 line): - line 3: // TODO support different bytecode text templates for FIR? libraries/stdlib/js/src/org.w3c/org.w3c.dom.css.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 kotlin-native/runtime/src/gcScheduler/adaptive/cpp/GCSchedulerImplTest.cpp (1 line): - line 309: // TODO: Not a global, please. libraries/kotlinx-metadata/klib/src/kotlinx/metadata/klib/impl/klibWriters.kt (1 line): - line 43: // TODO: This should be moved to ModuleFragmentWriter. compiler/frontend/src/org/jetbrains/kotlin/resolve/MissingSupertypesResolver.kt (1 line): - line 31: * TODO: expects are not checked, because findClassAcrossModuleDependencies does not work with actualization via type alias compiler/testData/codegen/boxInline/suspend/stateMachine/passParameter.kt (1 line): - line 17: c1() // TODO: Double this call, when suspend markers are generated for inline and crossinline lambdas compiler/serialization/src/org/jetbrains/kotlin/serialization/SerializerExtensionBase.kt (1 line): - line 133: // TODO serialize annotations on type aliases? js/js.translator/testData/box/esModules/crossModuleRefPerFile/topLevelProperty.kt (1 line): - line 17: // TODO: annotations like this are not serialized properly. Uncomment after KT-14529 gets fixed compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda2.kt (1 line): - line 35: // TODO: additional parameters are not supported yet kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanLibrariesResolveSupport.kt (1 line): - line 50: // TODO: Handle included libraries in KonanLibraryResolver when it's refactored and moved into the big Kotlin repo. kotlin-native/runtime/src/main/cpp/BoundedQueue.hpp (1 line): - line 103: // TODO describe compiler/fir/tree/tree-generator/src/org/jetbrains/kotlin/fir/tree/generator/printer/ImplementationPrinter.kt (1 line): - line 235: // TODO: replace with smth normal compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/firKlibSerialization.kt (1 line): - line 23: // TODO: handle incremental/monolothic (see klib serializer) - maybe externally kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/EntryPoint.kt (1 line): - line 30: // TODO: Do we need to do something with the offsets if
is in a cached library? plugins/kotlinx-serialization/kotlinx-serialization.k1/src/org/jetbrains/kotlinx/serialization/compiler/resolve/KSerializerDescriptorResolver.kt (1 line): - line 187: Modality.OPEN // TODO: it was historically OPEN, but I do not see the reasons not to change to FINAL core/reflection.jvm/src/kotlin/reflect/jvm/internal/types/KTypeSubstitutor.kt (1 line): - line 85: // TODO (KT-77700): also keep annotations of 'other' compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/descriptors/LazyAnnotations.kt (1 line): - line 71: // TODO: probably we should do ForceResolveUtil.forceResolveAllContents(annotation) here compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmUpgradeCallableReferences.kt (1 line): - line 34: // TODO change after KT-78719 compiler/testData/codegen/box/wasm-new-exception-handling/kt4134.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/daemon/src/org/jetbrains/kotlin/daemon/LazyClasspathWatcher.kt (1 line): - line 41: * TODO: replace with NIO watching when switching to java 7+ plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/definitions/ScriptiDefinitionsFromClasspathDiscoverySource.kt (1 line): - line 46: // TODO: try to find a way to reduce classpath (and classloader) to minimal one needed to load script definition and its dependencies core/descriptors/src/org/jetbrains/kotlin/resolve/sam/samConstructorUtils.kt (1 line): - line 155: // TODO: Use IndexedParametersSubstitution here instead of map creation compiler/backend/src/org/jetbrains/kotlin/codegen/inline/LocalVarRemapper.kt (1 line): - line 107: //TODO add assertion about parameter default value: descriptor is required plugins/kotlinx-serialization/kotlinx-serialization.k1/src/org/jetbrains/kotlinx/serialization/compiler/resolve/SerializableProperties.kt (1 line): - line 56: prop.hasBackingField(bindingContext) || (prop is DeserializedPropertyDescriptor && prop.backingField != null) // workaround for TODO in .hasBackingField compiler/testData/codegen/boxInline/wasm-new-exception-handling/tryCatchFinally.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved libraries/stdlib/js/src/kotlin/browser/declarations.kt (1 line): - line 11: // TODO: drop package suppressions in docs when this file is removed compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/loadWebKlibs.kt (1 line): - line 93: // TODO (KT-76785): Handling of duplicated names is a workaround that needs to be removed in the future. generators/builtins/primitives/CharGenerator.kt (1 line): - line 447: additionalComments = "TODO implicit usages of toString and valueOf must be covered in DCE" libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/regressionTests/KT67636JvmWithJavaSetSrcDirsTest.kt (1 line): - line 44: // FIXME: withJava forces providers in resources to be eagerly evaluated. See KT-67636 libraries/stdlib/js/src/org.w3c/org.w3c.dom.svg.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/testData/codegen/box/javaInterop/notNullAssertions/enhancedNullability/inLambdaReturnWithExpectedType.kt (1 line): - line 12: // TODO language design; see KT-35849 compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/AbstractSuspendFunctionsLowering.kt (1 line): - line 112: // TODO: remap types compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/JvmSyntheticAccessorGenerator.kt (1 line): - line 168: // TODO: change this to `fqNameUnsafe.asString().replace(".", "_")` as soon as we're ready to break compatibility with pre-KT-21178 code compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/mangle/BaseKotlinMangleComputer.kt (1 line): - line 274: // FIXME: Use effective variance here according to the klib spec: `org.jetbrains.kotlin.types.AbstractTypeChecker.effectiveVariance(typeParameter.getVariance(), typeArgument.getVariance())` compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/IrElementToJsExpressionTransformer.kt (1 line): - line 90: // TODO revisit compiler/testData/codegen/box/javaInterop/notNullAssertions/functionWithBigArity.kt (1 line): - line 13: // TODO: uncomment arity as soon as Arity is introduced native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/impl/BridgeProvider/StringUtils.kt (1 line): - line 56: // TODO: Post-process because C has stricter naming conventions. libraries/tools/abi-comparator/src/main/kotlin/org/jetbrains/kotlin/abicmp/checkers/AnnotationsComparison.kt (1 line): - line 31: // TODO proper comparison for annotation argument values? compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/NewConstraintSystemImpl.kt (1 line): - line 841: // TODO: SUB analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/typeUtils.kt (1 line): - line 271: // TODO use correct session here, analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/file/structure/FirElementsRecorder.kt (1 line): - line 48: // TODO better handle error elements libraries/tools/kotlinp/jvm/src/org/jetbrains/kotlin/kotlinp/jvm/Main.kt (1 line): - line 91: // TODO: get version from manifest compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/tower/CandidateApplicability.kt (1 line): - line 55: // TODO: Consider re-assigning this diagnostics (K1_RUNTIME_ERROR) compiler/testData/codegen/box/wasm-new-exception-handling/nestedFinallyAndNonFinallyTry2.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/providers/impl/FirProviderImpl.kt (1 line): - line 175: // TODO: KT-78984: we shouldn't call this function for symbols with callableId == null compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/LazyDeclarationResolver.kt (1 line): - line 164: else -> //TODO: support parameters in accessors and other places(?) compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/linkage/issues/UserVisibleIrModulesSupport.kt (1 line): - line 87: // TODO: support extracting all the necessary details for non-Native libs: selectedVersion, requestedVersions, artifacts js/js.translator/src/org/jetbrains/kotlin/js/inline/clean/DeadCodeElimination.kt (1 line): - line 93: // TODO: We may also check if condition is `true` constant or missing, which means this loop is infinite, i.e. compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/declarations/FirJavaField.kt (1 line): - line 83: // TODO: the lazy deprecationsProvider is a workaround for KT-55387, some non-lazy solution should probably be used instead compiler/testData/codegen/box/wasm-new-exception-handling/kt31923_break.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/modifierLists/SymbolLightMemberModifierList.kt (1 line): - line 27: // TODO: FINAL && isPossiblyAffectedByAllOpen compiler/fir/providers/src/org/jetbrains/kotlin/fir/types/ConeInferenceContext.kt (1 line): - line 577: // FIXME supertypes of type constructor contain unsubstituted arguments compiler/testData/codegen/box/escapeAnalysis/test6.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser compiler/ir/ir.validation/src/org/jetbrains/kotlin/ir/validation/checkers/expression/IrTypeOperatorTypeChecker.kt (1 line): - line 17: // TODO: check IMPLICIT_NOTNULL's argument type. core/compiler.common/src/org/jetbrains/kotlin/name/FqNameUnsafe.kt (1 line): - line 179: // TODO: There's a valid name with escape char `` kotlin-native/runtime/src/main/cpp/Format.cpp (1 line): - line 29: // Consider this a failure, nothing has been written. TODO: Should this be an exception/RuntimeAssert? js/js.serializer/src/org/jetbrains/kotlin/serialization/js/KotlinJavascriptPackageFragment.kt (1 line): - line 84: // TODO: read arguments of module annotations compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.kt (1 line): - line 3: // TODO: https://youtrack.jetbrains.com/issue/KT-49862 compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/K2WasmCompilerImpl.kt (1 line): - line 102: performanceManager?.notifyCurrentPhaseFinishedIfNeeded() // TODO: KT-75227 (at least for K2) compiler/testData/codegen/box/casts/functions/reifiedSafeAsFunKBig.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not jps/jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt (1 line): - line 213: // TODO: Workaround for unwanted facet settings modification on code analysis compiler/frontend.common/src/org/jetbrains/kotlin/analyzer/ModuleInfo.kt (1 line): - line 33: //TODO: (module refactoring) provide dependency on builtins after runtime in IDEA plugins/js-plain-objects/runtime/build.gradle.kts (1 line): - line 39: // FIXME: Remove customized publication in KT-83065 core/descriptors/src/org/jetbrains/kotlin/types/checker/ClassicTypeSystemContext.kt (1 line): - line 123: // TODO: https://youtrack.jetbrains.com/issue/KT-54196 (old captured type here) libraries/stdlib/wasm/js/src/kotlin/Dynamic.kt (1 line): - line 6: @file:Suppress("UNUSED_PARAMETER") // TODO: Remove after bootstrap update compiler/testData/codegen/boxInline/simple/simpleEnum.kt (1 line): - line 8: //TODO: KT-4693 libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/KmpPartiallyResolvedDependenciesCheckerTests.kt (1 line): - line 338: // FIXME: KT-79205 analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/KaFirCacheCleaner.kt (1 line): - line 241: * TODO: [KT-77093](https://youtrack.jetbrains.com/issue/KT-77093) potentially we might introduce some kind of versioning to our caches, compiler/testData/codegen/box/reified/reifiedTypeArgumentWithIntersectionTypeAsTypeArgument.kt (1 line): - line 12: // TODO check real effects to fix the behavior when we reach consensus compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/KlibDeserializedContainerSource.kt (1 line): - line 45: // TODO: move [CallableMemberDescriptor.findSourceFile] here. compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/CompileEnvironmentUtil.java (1 line): - line 60: // TODO: includeRuntime should be not a flag but a path to runtime prepare/compiler/compiler.pro (1 line): - line 310: # TODO: pack jline directly to scripting-compiler jars instead js/js.translator/testData/box/native/passMemberOrExtToNative.kt (1 line): - line 2: // TODO: Unmute when extension functions are supported in external declarations. js/js.serializer/src/org/jetbrains/kotlin/serialization/js/kotlinJavascriptPackageFragmentProvider.kt (1 line): - line 53: // TODO: think about fixing issues in descriptors/scopes compiler/testData/codegen/box/wasm-new-exception-handling/try3.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/config/src/org/jetbrains/kotlin/config/phaser/CompilerPhase.kt (1 line): - line 143: // TODO: use a proper logger wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/Types.kt (1 line): - line 15: // TODO: Remove this type. compiler/testData/codegen/box/casts/functions/asFunKBig.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not core/compiler.common/src/org/jetbrains/kotlin/incremental/components/LookupLocation.kt (1 line): - line 51: // TODO replace with real location (e.g. FROM_IDE) where it possible libraries/stdlib/native-wasm/src/kotlin/text/regex/sets/DotQuantifierSet.kt (1 line): - line 29: // TODO: Add optimized implementation for '.+' case js/js.translator/testData/box/delegateProperty/localVarInc.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/FirDiagnosticRenderers.kt (1 line): - line 265: // TODO: properly implement wasm/wasm.frontend/src/org/jetbrains/kotlin/wasm/resolve/diagnostics/WasmExternalInheritanceChecker.kt (1 line): - line 18: // TODO: Implement in K2 compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/FirDefaultParametersResolver.kt (1 line): - line 30: // TODO: probably it makes sense to refactor it (KT-70016) compiler/frontend.common.jvm/src/org/jetbrains/kotlin/load/kotlin/FileBasedKotlinClass.java (1 line): - line 76: // TODO public to be accessible in companion object of subclass, workaround for KT-3974 kotlin-native/klib/src/org/jetbrains/kotlin/cli/klib/KlibToolOutput.kt (1 line): - line 9: * TODO: Consider using [org.jetbrains.kotlin.cli.common.messages.MessageCollector] instead of this class. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/metadata/KotlinMetadataTargetConfigurator.kt (1 line): - line 303: // TODO: platform-shared source sets other than Kotlin/Native ones are not yet supported; support will be needed for JVM, JS kotlin-native/runtime/src/mm/cpp/RootSetTest.cpp (1 line): - line 53: // TODO: All the test helpers to create the rootset should be abstracted out. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/FragmentSharedVariablesLowering.kt (1 line): - line 49: // TODO: Find a good common dependency of JVM Debugger and IR Compiler and deduplicate this kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Context.kt (1 line): - line 38: // TODO: Can be renamed or merged with KonanBackendContext compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/PerformByIrFilePhase.kt (1 line): - line 48: // TODO: no guarantee that module identity is preserved by `lower` compiler/testData/codegen/box/casts/functions/reifiedAsFunKSmall.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/testData/codegen/box/reflection/typeOf/nothing.kt (1 line): - line 32: // TODO: support a special KClass instance for Nothing (KT-15518). compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/GenericReplEvaluator.kt (1 line): - line 87: // TODO: try/catch ? analysis/analysis-api/testData/components/referenceShortener/shortenRange/conflicts/aliasedConstructor_vs_function_rootIdePackage.kt (1 line): - line 19: // TODO This test is not correct, see KTIJ-33500 compiler/daemon/daemon-client/src/main/kotlin/CompilerCallbackServicesFacadeServer.kt (1 line): - line 66: // TODO: consider replacing NPE with other reporting, although NPE here means most probably incorrect usage plugins/parcelize/parcelize-compiler/parcelize.k2/src/org/jetbrains/kotlin/parcelize/fir/diagnostics/FirParcelizeAnnotationChecker.kt (1 line): - line 31: // TODO: extract common checker for expect interfaces core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/lazy/descriptors/LazyJavaClassDescriptor.kt (1 line): - line 285: (1..supertypeParameterCount).map { parameter } // TODO: List(supertypeParameterCount) { parameter } libraries/tools/kotlin-maven-plugin/src/main/java/org/jetbrains/kotlin/maven/kapt/KaptTestJvmCompilerMojo.java (1 line): - line 44: // TODO it would be nice to avoid using 2 injected fields for sources compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/IrInlineUtils.kt (1 line): - line 109: // TODO use a generic inliner (e.g. JS/Native's FunctionInlining.Inliner) compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.fir.kt (1 line): - line 39: // TODO: should we allow somehow to call with passing continuation explicitly? js/js.translator/testData/box/crossModuleRef/constructor.kt (1 line): - line 15: // TODO: may be useful after implementing local classes in inline functions compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/KtUserType.java (1 line): - line 53: // TODO: empty elements in PSI libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinProjectStructureMetadata.kt (1 line): - line 40: // FIXME support module classifiers for PM2.0 or drop this class in favor of KotlinModuleIdentifier kotlin-native/runtime/src/main/cpp/std_support/CStdlib.hpp (1 line): - line 12: // TODO: Replace with `aligned_alloc` that's compatible with normal `free`. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/TestsDumper.kt (1 line): - line 33: // TODO: uses descriptors. compiler/ir/serialization.native/src/org/jetbrains/kotlin/backend/konan/serialization/KonanDeclarationTable.kt (1 line): - line 26: // TODO: We should get rid of this extension point in favor of proper support in IR-based mangler. compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/session/IncrementalCompilationContext.kt (1 line): - line 15: // TODO: consider passing something more abstract instead of precompiler component, in order to avoid file ops here compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/ReturnableBlockTransformer.kt (1 line): - line 22: // TODO migrate other usages and move this file to backend.jvm native/objcexport-header-generator/src/org/jetbrains/kotlin/backend/konan/objcexport/objcTypes.kt (1 line): - line 183: // TODO: Switch to explicit SIGNED_CHAR compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractStarImportingScope.kt (1 line): - line 28: // TODO try to hide this js/typescript-export-model/src/org/jetbrains/kotlin/ir/backend/js/tsexport/ExportModel.kt (1 line): - line 91: // TODO: Cover all cases with frontend and disable error declarations compiler/testData/codegen/box/dataClasses/toString/arrayParams.kt (1 line): - line 4: // TODO: muted automatically, investigate should it be ran for JS or not compiler/cli/cli-native-klib/src/main/kotlin/org/jetbrains/kotlin/native/FirFrontend.kt (1 line): - line 58: // TODO: !!! dependencies module data? core/descriptors/src/org/jetbrains/kotlin/descriptors/findClassInModule.kt (1 line): - line 63: // TODO what if typealias becomes a class / interface? libraries/stdlib/js/src/org.w3c/org.w3c.dom.encryptedmedia.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/k2/FirUtils.kt (1 line): - line 144: // TODO: Replace this with the FIR MainFunctionDetector once it lands upstream! compiler/testData/codegen/box/sam/approximation/impossibleToApproxToRepresentable.kt (1 line): - line 19: g.check {} // (*) target SAM type: IFoo<{ X & Z }> (TODO: report a compile time error for this case) libraries/stdlib/js/src/kotlin/regexp.kt (1 line): - line 37: // TODO: Inherit from array or introduce asArray() extension compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/overloads/ConeOverloadConflictResolver.kt (1 line): - line 585: // TODO: Get rid of hacky K1 behavior (KT-67947) compiler/testData/codegen/box/coroutines/tailCallOptimizations/inlineWithoutStateMachine.kt (1 line): - line 5: // FIXME: Coroutine inlining compiler/testData/codegen/box/casts/functions/safeAsFunKSmall.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/resolution/src/org/jetbrains/kotlin/contracts/model/functors/EqualsFunctor.kt (1 line): - line 44: // TODO: AnnotationConstructorCaller kills this with implicit receiver. Investigate, how. compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/phaser/DumperVerifier.kt (1 line): - line 146: // TODO in JVM BE most of lowerings run per file and "dump" is called per file, compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/cfa/VariableInitializationCheckProcessor.kt (1 line): - line 58: // TODO: move this to PropertyInitializationInfoData (the collector also does this check when visiting assignments) compiler/testData/codegen/box/wasm-new-exception-handling/loopAndFinally.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/concurrent/Monitor.kt (1 line): - line 65: // FIXME maybe just not wait at all if timeout <= 0? compiler/frontend/src/org/jetbrains/kotlin/resolve/DescriptorToSourceUtils.kt (1 line): - line 62: // TODO Fix in descriptor js/js.translator/testData/box/esModules/crossModuleRefPerModule/topLevelProperty.kt (1 line): - line 17: // TODO: annotations like this are not serialized properly. Uncomment after KT-14529 gets fixed compiler/testData/codegen/box/classes/kt1134.kt (1 line): - line 1: // TODO: Enable when JS backend supports Java class library libraries/stdlib/native-wasm/src/kotlin/text/regex/Pattern.kt (1 line): - line 814: //TODO: Use RegexOption enum here. compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/DefaultArgumentStubGenerator.kt (1 line): - line 35: // TODO: fix expect/actual default parameters libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/uklibMetadataFragmentAttributes.kt (1 line): - line 14: // FIXME: Recheck in tests that "compilations" doesn't leak associated compilations targets? core/descriptors/src/org/jetbrains/kotlin/descriptors/CallableDescriptor.java (1 line): - line 75: // TODO: pull up userdata related members to DeclarationDescriptor and use more efficient implementation (e.g. THashMap) plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/configuration.kt (1 line): - line 28: // TODO: consider using escaping to allow kotlin escaped names in class names compiler/testData/codegen/box/wasm-new-exception-handling/finallyAndFinally.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/NumericForLoopHeader.kt (1 line): - line 67: // TODO: Confirm if casting to non-nullable is still necessary generators/test-generator/testFixtures/org/jetbrains/kotlin/generators/util/TagsExtractor.kt (1 line): - line 22: // TODO: support tags in testdata files plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/services/Fir2IrReplSnippetConfiguratorExtensionImpl.kt (1 line): - line 166: // TODO: consider rearranging the code to avoid potentially ineffective check kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCImpl.kt (1 line): - line 20: public interface ObjCClassOf : ObjCClass // TODO: T should be added to ObjCClass and all meta-classes instead. compiler/fir/tree/src/org/jetbrains/kotlin/fir/extensions/FirExtension.kt (1 line): - line 23: * - all specific extensions interested in specific declaration -> TODO with StateMachine libraries/stdlib/js/src/org.w3c/org.khronos.webgl.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/providers/LLFirProvider.kt (1 line): - line 91: // TODO: implement compiler/frontend/src/org/jetbrains/kotlin/diagnostics/rendering/Renderers.kt (1 line): - line 429: // TODO: context should be in fact shared for the table and these two types libraries/stdlib/native-wasm/src/kotlin/collections/Sets.kt (1 line): - line 8: // TODO: Add SingletonSet class libraries/stdlib/js/runtime/boxedLong.kt (1 line): - line 473: // TODO: cache compiler/cli/cli-runner/src/org/jetbrains/kotlin/runner/Main.kt (1 line): - line 31: // TODO: consider implementing REPL as well core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/AbstractBinaryClassAnnotationLoader.kt (1 line): - line 116: // TODO: check delegate presence in some other way compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/StatementGenerator.kt (1 line): - line 177: // TODO: Every access to the container value causes a null check even though subsequent checks after the first can be assumed to pass. kotlin-native/runtime/src/mm/cpp/ObjectOps.hpp (1 line): - line 16: // TODO: `OBJ_GETTER` is used because the returned objects needs to be accessible via the rootset before the function compiler/testData/codegen/box/wasm-new-exception-handling/catch3.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/structure/ReflectJavaArrayType.kt (1 line): - line 33: // TODO: support type use annotations in reflection compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/IrTypeInlineClassesSupport.kt (1 line): - line 39: fun IrClass.inlinedClassIsNullable(): Boolean = this.defaultType.makeNullable().getInlinedClassNative() == this // TODO: optimize compiler/cli/src/org/jetbrains/kotlin/cli/pipeline/AbstractConfigurationPhase.kt (1 line): - line 168: // TODO (KT-83341): implement proper component registration compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/caches/BridgeLoweringCache.kt (1 line): - line 22: // TODO: consider moving this cache out to the backend and using it everywhere throughout the codegen. compiler/testData/codegen/box/jvm8/defaults/enable/kt14243_2.kt (1 line): - line 15: //TODO: this is redundant, revise diagnostic js/js.translator/testData/typescript-export/js/collections/collections.kt (1 line): - line 7: // TODO fix statics export in DCE-driven mode compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/DslScopeViolationCallChecker.kt (1 line): - line 71: // TODO: report receivers configuration (what's one is used and what's one is the closest) kotlin-native/runtime/src/mm/cpp/SafePoint.cpp (1 line): - line 16: // TODO: Remove after the bootstrap that brings changes in ClangArgs.kt compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmLocalDeclarationPopupLowering.kt (1 line): - line 23: // TODO remove after KT-78719 core/descriptors/src/org/jetbrains/kotlin/resolve/calls/inference/CapturedTypeConstructor.kt (1 line): - line 142: // TODO: Make star projection type lazy compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmBuiltInsLowering.kt (1 line): - line 102: // TODO maybe UnsafeCoerce could handle types with different, but coercible underlying representations. compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/CliTrace.kt (1 line): - line 55: // TODO: needs better name + list of keys to skip somewhere core/deserialization.common/src/org/jetbrains/kotlin/serialization/deserialization/AnnotationLoader.kt (1 line): - line 13: // TODO: simplify this interface analysis/analysis-api-impl-base/src/org/jetbrains/kotlin/analysis/api/impl/base/components/KaBaseResolver.kt (1 line): - line 176: // TODO: remove this workaround after KT-68499 compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendFunctions.kt (1 line): - line 39: // TODO: should we allow somehow to call with passing continuation explicitly? compiler/cli/cli-runner/src/org/jetbrains/kotlin/runner/runners.kt (1 line): - line 102: // TODO: warn on non-empty classpath? compiler/testData/codegen/box/escapeAnalysis/test2.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/intrinsics/IntrinsicFunction.kt (1 line): - line 47: // TODO: is there an easier way to get the substituted type of an empty vararg argument? compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/PrepareCollectionsToExportLowering.kt (1 line): - line 58: // TODO: Remove the lowering and move annotations into stdlib after solving problem with tests on KLIB compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/BuildHistoryJvmICRunner.kt (1 line): - line 87: // FIXME: We should throw an exception here benchmarks/src/org/jetbrains/kotlin/benchmarks/AbstractSimpleFileBenchmark.kt (1 line): - line 48: //TODO: patch LightVirtualFile compiler/backend/src/org/jetbrains/kotlin/codegen/inline/inlineIntrinsics.kt (1 line): - line 26: // TODO: implement these as codegen intrinsics (see IrIntrinsicMethods) plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/definitions/CliScriptDefinitionProvider.kt (1 line): - line 30: // TODO: consider reporting an error when several default definitions are supplied compiler/frontend/src/org/jetbrains/kotlin/resolve/CompilerDeserializationConfiguration.kt (1 line): - line 37: // TODO KT-76195 Consider replacing the following classes with `CommonCompilerDeserializationConfiguration` in version 2.4 compiler/backend/src/org/jetbrains/kotlin/codegen/inline/RemappingClassBuilder.java (1 line): - line 111: // TODO: investigate LocalVariablesSorter removing (see also same code in MethodInliner) core/descriptors/src/org/jetbrains/kotlin/types/TypeUtils.kt (1 line): - line 206: val typeParameter = typeParameters?.getOrNull(i) // TODO: support inner classes' type parameters compiler/build.gradle.kts (1 line): - line 27: testFixturesApi(project(":compiler:ir.tree")) // used for deepCopyWithSymbols call that is removed by proguard from the compiler TODO: make it more straightforward libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/dependencyResolutionTests/tcs/IdeStdlibResolutionTest.kt (1 line): - line 237: // TODO think about jvm + android stdlib libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/Kapt3KotlinGradleSubplugin.kt (1 line): - line 581: //TODO once the Android plugin reaches its 3.0.0 release, consider compiling against it (remove the reflective call) native/cli-native/src/org/jetbrains/kotlin/cli/bc/K2Native.kt (1 line): - line 168: // TODO KT-72014: Remove the second invocation of `setupConfiguration()` compiler/frontend.common/src/org/jetbrains/kotlin/diagnostics/AbstractKotlinSuppressCache.kt (1 line): - line 88: // TODO: consider replacing set with list, assuming that the list of suppresses is usually very small compiler/testData/codegen/box/wasm-new-exception-handling/tryLoopTry.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/backend/src/org/jetbrains/kotlin/codegen/JvmCodegenUtil.java (1 line): - line 43: //TODO: It's best to use this code also for compilation against sources plugins/kotlin-dataframe/kotlin-dataframe.k2/src/org/jetbrains/kotlinx/dataframe/plugin/impl/api/move.kt (1 line): - line 23: // TODO we don't support analyzing the `newColumnName` lambda yet, so return empty schema if it's provided compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/IrExpressions.kt (1 line): - line 72: // KT-69558: TODO convert this throw to `irError(...) { withIrEntry(this) }` core/reflection.jvm/src/kotlin/reflect/jvm/internal/ConvertFromJava.kt (1 line): - line 153: // TODO (KT-80384): support type parameters of Java callables in new implementation libraries/kotlinx-metadata/src/kotlin/metadata/internal/Writers.kt (1 line): - line 178: // TODO: do not write getterFlags/setterFlags if not needed compiler/daemon/daemon-client/src/main/kotlin/KotlinRemoteReplCompilerClient.kt (1 line): - line 25: // TODO: reduce number of ports used then SOCKET_ANY_FREE_PORT is passed (same problem with other calls) compiler/testData/codegen/box/wasm-new-exception-handling/kt3549.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/testData/codegen/box/escapeAnalysis/test10.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser js/js.translator/testData/box/esModules/crossModuleRefPerFile/constructor.kt (1 line): - line 17: // TODO: may be useful after implementing local classes in inline functions compiler/testData/diagnostics/testsWithStdLib/experimental/constVal.fir.kt (1 line): - line 34: // TODO: there should be no warning here compiler/testData/codegen/box/coroutines/featureIntersection/callableReference/function/getArityViaFunctionImpl.kt (1 line): - line 35: // TODO: Uncomment when `suspend fun` will be supported libraries/stdlib/wasm/src/kotlin/collections/ArraysWasm.kt (1 line): - line 25: //TODO: Find more proper way to call abstract collection's toArray js/js.translator/testData/box/reflection/kClassToAndFromJsClass.kt (1 line): - line 28: // TODO uncomment after KT-13338 is fixed libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/android/AndroidProjectHandler.kt (1 line): - line 346: // TODO this code depends on the convention that is present in the Android plugin as there's no public API compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/BasicReplState.kt (1 line): - line 30: } ?: -1 // TODO: check if it doesn't break something compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/enhancement/FirJavaAnnotationList.kt (1 line): - line 25: * TODO: the lazy annotations is a workaround for KT-55387, some non-lazy solution should probably be used instead native/commonizer/src/org/jetbrains/kotlin/commonizer/facade.kt (1 line): - line 111: // TODO: Remove hack after Xcode 14.1. compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/impl/KlibResolvedModuleDescriptorsFactoryImpl.kt (1 line): - line 33: // TODO: eliminate Native specifics. compiler/build-tools/kotlin-build-tools-api/src/main/kotlin/org/jetbrains/kotlin/buildtools/api/cri/FileIdToPathEntry.kt (1 line): - line 10: // TODO (KT-81585): once the CRI schema is stable, document public interfaces compiler/fir/fir-deserialization/src/org/jetbrains/kotlin/fir/resolve/providers/impl/firBuiltinSymbolProviders.kt (1 line): - line 234: // TODO: report a proper diagnostic compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirExpressionWithErrorTypeChecker.kt (1 line): - line 75: // TODO: remove me after fix of KT-73333 libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/CompositeMetadataArtifactImpl.kt (1 line): - line 222: // 2. resources or mix klib + resources (FIXME: KT-66563) compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/KtDiagnosticReporterWithImplicitIrBasedContext.kt (1 line): - line 130: // TODO: consider leaving only this branch compiler/testData/codegen/box/casts/asSafeForConstants.kt (1 line): - line 1: // TODO: muted automatically, investigate should it be ran for JS or not compiler/testData/codegen/box/classes/classObjectToString.kt (1 line): - line 1: // TODO: Enable for JS when it supports Java class library. libraries/stdlib/js/runtime/metadataUtils.kt (1 line): - line 15: // TODO: Merge the following two functions into one after the next boostrap compiler/ir/ir.validation/src/org/jetbrains/kotlin/ir/validation/checkers/expression/IrConstTypeChecker.kt (1 line): - line 38: TODO: This check used to have JS inline class helpers. Rewrite it in a common way. libraries/stdlib/wasm/js/src/kotlin/io.kt (1 line): - line 6: @file:Suppress("UNUSED_PARAMETER") // TODO: Remove after bootstrap update compiler/testData/codegen/box/binaryOp/bitwiseOpNullable.kt (1 line): - line 26: // TODO: Use long hex constants after KT-4749 is fixed compiler/testData/codegen/box/reified/reifiedIntersectionTypeArgument.kt (1 line): - line 40: // TODO check real effects to fix the behavior when we reach consensus compiler/testData/codegen/box/binaryOp/bitwiseOp.kt (1 line): - line 26: // TODO: Use long hex constants after KT-4749 is fixed kotlin-native/runtime/src/gc/common/cpp/GC.hpp (1 line): - line 75: // TODO: These should exist only in the scheduler. compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/resolver/impl/KotlinLibraryResolverImpl.kt (1 line): - line 116: * TODO: This is actually undesirable behavior. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/kotlinCompilations.kt (1 line): - line 30: // FIXME this function dangerously ignores an incorrect type of the task (e.g. if the actual task is a K/N one); consider reporting a failure compiler/testData/codegen/box/wasm-new-exception-handling/nestedFinallyAndNonFinallyTry.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/enhancement/FirJavaDeclarationList.kt (1 line): - line 16: * TODO: the lazy declarations is a workaround for KT-55387, some non-lazy solution should probably be used instead kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/utilities/FileManagement.kt (1 line): - line 28: * TODO: At some point this class and it usages can be generalized to all possible compiler outputs, compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/WholeWorldStageController.kt (1 line): - line 16: // TODO assert lowered libraries/stdlib/js/src/org.w3c/org.w3c.dom.mediasource.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/internal/kapt/incremental/ClasspathSnapshot.kt (1 line): - line 161: // TODO (gavra): Avoid building all reverse lookups. Most changes are local to the classpath entry, use that. compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/ConeConstraintSystemUtilContext.kt (1 line): - line 33: // TODO: Take a look at org.jetbrains.kotlin.resolve.calls.components.CreateFreshVariablesSubstitutor.shouldBeFlexible analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/element/builder/FirElementBuilder.kt (1 line): - line 368: // TODO change predicate (KT-76271) core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererImpl.kt (1 line): - line 126: // TODO nullability is lost for abbreviated type? compiler/testData/codegen/box/suspendConversion/basicSuspendConversionGenerics.kt (1 line): - line 2: // ^ TODO: get rid of T::class.java core/descriptors/src/org/jetbrains/kotlin/descriptors/impl/AbstractTypeAliasDescriptor.kt (1 line): - line 43: // TODO kotlinize some interfaces compiler/testData/codegen/box/wasm-new-exception-handling/objectInFinally.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/ir/serialization.js/src/org/jetbrains/kotlin/ir/backend/js/lower/serialization/ir/JsLazyIrModuleDeserializer.kt (1 line): - line 35: // TODO: implement proper check whether `idSig` belongs to this module compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/stack/CallStack.kt (1 line): - line 171: // TODO save only necessary declarations compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/ResultTypeResolver.kt (1 line): - line 552: // TODO: Consider making it always `true` (see KT-70062) plugins/kapt/kapt-base/src/org/jetbrains/kotlin/kapt/base/javac/KaptJavaFileManager.kt (1 line): - line 29: // TODO (gavra): store these more efficiently by package (requires some changes to type collection). kotlin-native/utilities/cli-runner/src/org/jetbrains/kotlin/cli/utilities/InteropCompiler.kt (1 line): - line 16: // TODO: this function should eventually be eliminated from 'utilities'. compiler/testData/diagnostics/testsWithStdLib/contracts/dsl/errors/nonLambdaLiteralAsArgument.kt (1 line): - line 21: // TODO: (KT-72772) it may be clearer to generate both errors here. compiler/backend/src/org/jetbrains/kotlin/codegen/inline/defaultMethodUtil.kt (1 line): - line 191: // out from its contents. TODO: for > 22 arguments, the only argument is an array. `MethodInliner` can't do that. compiler/testData/codegen/box/reflection/typeOf/noReflect/nothing.kt (1 line): - line 30: // TODO: support a special KClass instance for Nothing (KT-15518). compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/KlibLoaderExtensions.kt (1 line): - line 26: * TODO (KT-76785): In fact, handling of duplicated names is a workaround that needs to be removed in the future. libraries/kotlinx-metadata/jvm/src/kotlin/metadata/jvm/KotlinClassHeader.java (1 line): - line 147: // TODO: equals, hashCode, etc as in Java Annotation contract? core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/structure/ReflectJavaPrimitiveType.kt (1 line): - line 31: // TODO: support type use annotations in reflection compiler/testData/codegen/box/invokedynamic/sam/specializedGenerics/genericWithInProjection.kt (1 line): - line 8: // TODO: restore indy for SAM types with contravariant projections. See KT-52428 for more info. compiler/testData/codegen/box/reflection/call/bound/javaInstanceMethod.kt (1 line): - line 1: // TODO: investigate should it be ran for JS or not compiler/ir/ir.validation/src/org/jetbrains/kotlin/ir/validation/checkers/declaration/IrFieldVisibilityChecker.kt (1 line): - line 21: // TODO: Some backing fields inherit their visibility from their corresponding properties. js/js.translator/testData/box/expression/stringClass/subSequence.kt (1 line): - line 8: // TODO: uncomment when it's possible to implement bridges for get/charCodeAt compiler/frontend/src/org/jetbrains/kotlin/resolve/checkers/TrailingCommaChecker.kt (1 line): - line 22: // TODO: remove these checkers before 1.4 is released compiler/testData/resolvedCalls/enhancedSignatures/collection/collectionSpliterator.kt (1 line): - line 1: // TODO: Fix platform types libraries/stdlib/wasm/wasi/src/kotlin/time/Duration.kt (1 line): - line 11: // TODO Make correct implementation (KT-60964) compiler/testData/codegen/bytecodeText/boxingOptimization/unsignedRangeIteratorSpecialization.kt (1 line): - line 3: // ^ TODO support new mangling rules in optimizer compiler/testData/psi/annotation/at/enumEntries.kt (1 line): - line 12: // TODO: try to make Ann() working here (?) js/js.translator/testData/box/enum/standardFunctions.kt (1 line): - line 4: // TODO: Remove after enumEntries become public core/metadata/src/google/protobuf/descriptor.proto (1 line): - line 409: // TODO: Fully-implement this, then remove the "experimental_" prefix. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/js/npm/resolver/KotlinProjectNpmResolver.kt (1 line): - line 105: * TODO properly express within the type system? The result should be a TaskCollection analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/projectStructure/LLFirBuiltinsSessionFactory.kt (1 line): - line 43: private val builtInTypes = BuiltinTypes() // TODO should be platform-specific compiler/testData/codegen/bytecodeListing/coroutines/coroutineFields.kt (1 line): - line 1: // TODO: KT-37010 KT-37085 compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/intrinsics/CompareTo.kt (1 line): - line 95: // TODO: take `b.type` into account. generators/builtins/unsignedTypes.kt (1 line): - line 533: // TODO: Make inline constructor, like in ByteArray compiler/testData/codegen/box/wasm-new-exception-handling/decrementInFinally.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/testData/ir/irText/lambdas/nonLocalReturn.kt (1 line): - line 26: // TODO we don't see 'return@lambda' inside internal lambda when we analyze an external lambda, libraries/scripting/jvm/src/kotlin/script/experimental/jvm/util/jvmClassLoaderUtil.kt (1 line): - line 35: // TODO: consider error reporting js/js.parser/src/org/jetbrains/kotlin/js/parser/sourcemaps/JSON.kt (1 line): - line 16: @file:Suppress("DEPRECATION") // TODO: needs an intensive rework for new Char API compiler/testData/codegen/box/reflection/types/innerGenericArguments.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not plugins/kotlinx-serialization/testData/boxIr/metaSerializable.kt (1 line): - line 14: // TODO: for this test to work, runtime dependency should be updated to (yet unreleased) serialization with @MetaSerializable annotation plugins/scripting/scripting-ide-common/src/org/jetbrains/kotlin/scripting/ide_common/idea/util/scopeUtils.kt (1 line): - line 46: resolutionFacade: ResolutionFacade/*TODO: get rid of this parameter*/ compiler/testData/loadJava/compiledKotlin/fromLoadJava/classObjectAnnotation.kt (1 line): - line 4: // TODO uncomment after KT-10405 will be fixed kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/Boxing.kt (1 line): - line 27: // TODO: Find a better home for this function than Context. compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/daemonAdapters.kt (1 line): - line 26: val reportCategories = arrayOf(ReportCategory.COMPILER_MESSAGE.code, ReportCategory.IC_MESSAGE.code) // TODO: automagically compute the value, related to BasicCompilerServicesWithResultsFacadeServer compiler/tests-integration/build.gradle.kts (1 line): - line 36: testFixturesApi(project(":compiler:ir.tree")) // used for deepCopyWithSymbols call that is removed by proguard from the compiler TODO: make it more straightforward compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/diagnostics/coneDiagnosticToFirDiagnostic.kt (1 line): - line 611: is ConeDestructuringDeclarationsOnTopLevel -> null // TODO Currently a parsing error. Would be better to report here instead KT-58563 compiler/testData/diagnostics/wasmTests/jsInterop/jsCode.kt (1 line): - line 50: // TODO: This should be an error as property getters are no different to functions compiler/testData/codegen/box/wasm-new-exception-handling/kt31923_continue.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/components/ConstraintInjector.kt (1 line): - line 391: // TODO: remove these additional workarounds for flexible types once compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/KotlinToResolvedCallTransformer.kt (1 line): - line 304: // TODO: move this logic into ParameterTypeConversion compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/TailCallOptimizationLowering.kt (1 line): - line 67: // TODO: Support binary logical operations and elvis, though. KT-23826 and KT-23825 compiler/testData/codegen/box/wasm-new-exception-handling/tryFinally.kt (1 line): - line 5: // TODO: remove the test when KT-66906 will be resolved repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/common-configuration.gradle.kts (1 line): - line 451: // TODO: migrate remaining modules to the new JVM default scheme. libraries/stdlib/js/src/kotlin/time/MonoTimeSource.kt (1 line): - line 23: internal actual object MonotonicTimeSource : DefaultTimeSource, TimeSource.WithComparableMarks { // TODO: interface should not be required here compiler/testData/codegen/box/escapeAnalysis/test9.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser compiler/testData/codegen/box/regressions/kt864.kt (1 line): - line 17: // TODO compiler error compiler/testData/codegen/box/wasm-new-exception-handling/kt3706.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/RuntimeUtils.kt (1 line): - line 126: // TODO: align exact exception hierarchy with jvm compiler/testData/codegen/box/coroutines/multipleInvokeCallsInsideInlineLambda1.kt (1 line): - line 35: // TODO: additional parameters are not supported yet core/descriptors/src/org/jetbrains/kotlin/types/flexibleTypes.kt (1 line): - line 104: // TODO: https://youtrack.jetbrains.com/issue/KT-54198 (two captured types) compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirAbstractSimpleImportingScope.kt (1 line): - line 25: // TODO try to hide this compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/ClasspathRootsResolver.kt (1 line): - line 136: //TODO: see also `addJvmSdkRoots` usages, some refactoring is required with moving such logic into one place kotlin-native/runtime/src/mm/cpp/ExtraObjectData.hpp (1 line): - line 59: void ClearRegularWeakReferenceImpl() noexcept; // TODO: Only exists for the sake of GetBaseObject. Refactor to remove the need for it. libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/targets/CreateDefaultCompilationsSideEffect.kt (1 line): - line 22: // TODO: fix inconsistency? KT-27272 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/NativeInlineFunctionResolver.kt (1 line): - line 39: // TODO this `if` check can be dropped after KT-72441 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/OptimizationPipeline.kt (1 line): - line 287: // TODO: Consider adding other ObjC passes. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/BridgeLowering.kt (1 line): - line 290: // TODO what should be the special bridge target if we CAN NOT add a substituted special bridge compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/dce/Dce.kt (1 line): - line 84: // TODO: simplify build-common/src/org/jetbrains/kotlin/incremental/IncrementalJvmCache.kt (1 line): - line 195: // TODO NO_CHANGES? (delegates only) compiler/backend/src/org/jetbrains/kotlin/codegen/inline/TransformationInfo.kt (1 line): - line 93: // TODO: unconditionally regenerating an object if it has previously been regenerated is a hack that works around compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/CompilerRunnerUtils.kt (1 line): - line 36: // TODO: This should be removed after implementing of fir-based java tracker (KT-57147). compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/wasmCompiler.kt (1 line): - line 768: // TODO: necessary to move export check onto common place kotlin-native/llvmDebugInfoC/build.gradle.kts (1 line): - line 60: // FIXME: Migrate to the compilation database approach when the clang calls are removed compiler/testData/codegen/boxInline/reified/checkCast/kt8043.kt (1 line): - line 3: // TODO: Reified generics required some design to unify behavior across all backends compiler/testData/codegen/box/reflection/parameters/boundObjectMemberReferences.kt (1 line): - line 1: // TODO: investigate should it be ran for JS or not compiler/frontend/src/org/jetbrains/kotlin/diagnostics/DiagnosticFactoryWithPsiElement.java (1 line): - line 34: // TODO: it's strange that java requires cast here, because ParametrizedDiagnostic inherits DiagnosticMarker compiler/testData/codegen/box/escapeAnalysis/test11.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/LowerUtils.kt (1 line): - line 204: // TODO: figure out why Lazy IR multiplies Declarations for descriptors and fix it compiler/frontend/src/org/jetbrains/kotlin/types/expressions/LabelResolver.kt (1 line): - line 66: // TODO: Support context receivers in function literals compiler/testData/diagnostics/testsWithJsStdLib/module/wrongCallToModule.ll.kt (1 line): - line 31: // TODO: it's hard to test @JsNonModule on file from an external module compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/ic/HashCalculatorForIC.kt (1 line): - line 111: // TODO may be it make sense to update rendering? compiler/testData/codegen/box/classes/kt1535.kt (1 line): - line 3: // TODO: Enable when JS backend supports Java class library, since FunctionX are required for interoperation native/binary-options/src/main/kotlin/org/jetbrains/kotlin/config/nativeBinaryOptions/BinaryOptions.kt (1 line): - line 240: // TODO: should we really ignore case here? core/reflection.jvm/src/kotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller.kt (1 line): - line 40: // TODO: consider lifting this restriction once KT-8957 is implemented compiler/testData/ir/irText/classes/clashingFakeOverrideSignatures.kt (1 line): - line 2: // ^ TODO decide if we want to fix KT-42020 for FIR as well compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/FirSamResolver.kt (1 line): - line 317: // TODO: Consider using `parameterSymbol.fir.bounds.first().coneType` once sure that it won't fail with exception compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/argumentUtils.kt (1 line): - line 36: // TODO: rewrite when updated version of com.intellij.util.xmlb is available on TeamCity compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/Lower.kt (1 line): - line 257: // TODO This is a hack to allow lowering a getter separately from the enclosing property libraries/stdlib/js/src/kotlin/console.kt (1 line): - line 27: // TODO: Using local variable because of bug in block decomposition lowering in IR backend kotlin-native/runtime/src/alloc/common/cpp/RunLoopFinalizerProcessor.hpp (1 line): - line 107: // TODO: std::common_type between double and saturated is undefined. compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmAnnotationImplementationTransformer.kt (1 line): - line 40: // FIXME: Copied from JvmSingleAbstractMethodLowering libraries/stdlib/native-wasm/src/kotlin/text/regex/sets/ReluctantTrivialGroupQuantifierSet.kt (1 line): - line 8: // TODO: merge this class and ReluctantFixedLengthQuantifierSet wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/convertors/WasmBinaryToIR.kt (1 line): - line 763: // TODO: probably need 32 bit checks too, but meh, not in the suite libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/ProjectMetadataProviderImpl.kt (1 line): - line 90: // TODO: KT-62332/Stop-Creating-legacy-metadata-compilation-with-name-main compiler/build-tools/kotlin-build-statistics/src/org/jetbrains/kotlin/build/report/statistics/file/printerUtils.kt (1 line): - line 71: //TODO: KT-57310 Implement build GC metric in compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/inference/model/ConstraintPositionAndErrors.kt (1 line): - line 109: // TODO: should be used only in SimpleConstraintSystemImpl, KT-59675 plugins/kotlinx-serialization/testData/codegen/KeepGeneratedSerializer.kt (1 line): - line 18: @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure libraries/stdlib/src/kotlin/time/Duration.kt (1 line): - line 660: // TODO: whether it's ok to convert to Double before scaling libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/mppSourcesJar.kt (1 line): - line 90: // TODO: rethink approach for adding dependent `SourceSets` to Kotlin compilation `SourceSet` core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/header/ReadKotlinClassHeaderAnnotationVisitor.java (1 line): - line 55: // TODO: delete this at some point js/js.translator/testData/box/reflection/kClass.kt (1 line): - line 10: // TODO uncomment after KT-13338 is fixed compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/LazyImportScope.kt (1 line): - line 252: // TODO: do not perform this check here because for correct work it requires corresponding PSI element analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/ContextCollector.kt (1 line): - line 849: // TODO: the [skipCleanup] hack should be reverted on fixing KT-79107 kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StructRendering.kt (1 line): - line 64: is BitField, // TODO: tryRenderVar(it.type, name)?.plus(" : ${it.size}") libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/metadataCompileClasspathConfiguration.kt (1 line): - line 115: // FIXME: KT-66375 Make actual compilation classpaths/libraries configurations to have the same consistent dependencies compiler/cli/src/org/jetbrains/kotlin/cli/pipeline/metadata/MetadataConfigurationPipelinePhase.kt (1 line): - line 99: // TODO: support .jar destination compiler/backend/src/org/jetbrains/kotlin/codegen/inline/LambdaInfo.kt (1 line): - line 109: // TODO: suspend lambdas are their own continuations, so the body is pre-inlined into `invokeSuspend` native/swift/sir/tree-generator/src/org/jetbrains/kotlin/sir/tree/generator/SwiftIrTree.kt (1 line): - line 133: // FIXME KT-75706: Protocols are only mutable due to the fact that we reorder declarations at some late stage. compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/dfa/cfg/ControlFlowGraph.kt (1 line): - line 89: // TODO: can theoretically dump loop nodes into the output in some order so that `ControlFlowGraphRenderer` kotlin-native/runtime/src/main/cpp/KString.cpp (1 line): - line 502: // TODO: or code up Knuth-Moris-Pratt, or use std::boyer_moore_searcher (might need backporting) kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/objcexport/BlockPointerSupport.kt (1 line): - line 85: // TODO: in some cases the sequence below will have redundant retain-release pair. compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/intrinsics/Equals.kt (1 line): - line 38: // TODO use specialized boxed type - this might require types like 'java.lang.Integer' in IR compiler/psi/psi-api/src/org/jetbrains/kotlin/diagnostics/PsiDiagnosticUtils.java (1 line): - line 20: // TODO: extract PSI-independent parts, specifically coordinate classes compiler/testData/codegen/boxInline/defaultValues/lambdaInlining/defaultCallInDefaultLambda.kt (1 line): - line 1: // TODO: split SKIP_INLINE_CHECK_IN by files compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/ConstraintSystemCompleter.kt (1 line): - line 72: // TODO: This is very slow, KT-59680 compiler/testData/debug/stepping/noLinenumberInInvokeOfSuspendLambda.kt (1 line): - line 3: // TODO: Enable the test on JS BE, but now it is too flaky there. kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/defFileDependencies.kt (1 line): - line 103: require(it.isNotEmpty()) { "incompatible dependencies" } // TODO: add more info. compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/extensions/IrGeneratedDeclarationsRegistrar.kt (1 line): - line 25: // TODO: KT-63881 kotlin-native/runtime/src/main/kotlin/kotlin/coroutines/DebugProbes.kt (1 line): - line 8: // TODO: support coroutines debugging in Kotlin/Native. compiler/testData/codegen/box/closures/closureOnTopLevel1.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not jps/jps-plugin/testData/incremental/pureKotlin/innerClassesFromSupertypes/b.kt (1 line): - line 1: // TODO add var compiler/backend/src/org/jetbrains/kotlin/codegen/inline/RegeneratedLambdaFieldRemapper.kt (1 line): - line 82: Type.getObjectType(newLambdaInternalName), /*TODO owner type*/ compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/overrides/FakeOverrideChecker.kt (1 line): - line 26: if (fake !is IrSimpleFunction) return // TODO: we need overridden symbols on IrProperty. plugins/kotlinx-serialization/kotlinx-serialization.k2/src/org/jetbrains/kotlinx/serialization/compiler/fir/checkers/FirSerializationPluginClassChecker.kt (1 line): - line 319: // TODO should we throw error if there is no `number` argument or there is evaluation error compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/builders/Primitives.kt (1 line): - line 27: // TODO rewrite using IR Builders analysis/light-classes-base/src/org/jetbrains/kotlin/asJava/classes/implUtils.kt (1 line): - line 41: // TODO: implement KtSuperListEntry qualification/shortening when inserting reference from another context compiler/testData/codegen/box/regressions/kt10143.kt (1 line): - line 1: // TODO: Investigate ES modules issue core/reflection.jvm/src/kotlin/reflect/full/KClasses.kt (1 line): - line 280: // TODO: throw a meaningful exception js/js.translator/testData/box/esModules/crossModuleRef/constructor.kt (1 line): - line 16: // TODO: may be useful after implementing local classes in inline functions js/js.translator/testData/box/esModules/crossModuleRefPerModule/constructor.kt (1 line): - line 17: // TODO: may be useful after implementing local classes in inline functions compiler/testData/codegen/box/wasm-new-exception-handling/finally5.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/FeaturedLibraries.kt (1 line): - line 157: //TODO: please add type checks before cast. libraries/stdlib/jvm/src/kotlin/text/CharJVM.kt (1 line): - line 295: // TODO Provide name for JVM7+ compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/ScopeUtils.java (1 line): - line 67: /* TODO: Context receivers? */ Collections.emptyList(), LexicalScopeKind.PROPERTY_DELEGATE_METHOD kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/LinkKlibs.kt (1 line): - line 31: // TODO: Invalidate properly in dispose method. compiler/testData/codegen/box/reflection/isInstance/isInstanceCastAndSafeCast.kt (1 line): - line 39: // TODO: support MutableList::class (KT-11754) analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/util/declarationUtils.kt (1 line): - line 53: // TODO test what way faster plugins/kotlin-dataframe/testData/box/groupBy_sum.kt (1 line): - line 60: // TODO: not supported scenario for String API js/js.translator/testData/box/delegateProperty/localVal.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend native/objcexport-header-generator/impl/k1/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportHeaderGenerator.kt (1 line): - line 67: // TODO: make the translation order stable repo/gradle-build-conventions/utilities/src/main/kotlin/repoDependencies.kt (1 line): - line 225: return Regex(if (hasJarExtension) escaped else "$escaped(-\\d.*)?\\.jar") // TODO: consider more precise version part of the regex compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrDeclarationDeserializer.kt (1 line): - line 162: // TODO support general case of intersection type compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ErrorReportingContext.kt (1 line): - line 49: lineContent = null // TODO: retrieve the line content. libraries/stdlib/js/src/org.w3c/org.w3c.dom.clipboard.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 js/js.translator/testData/box/inline/simpleEnum.kt (1 line): - line 11: //TODO: KT-4693 libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/report/configureReporing.kt (1 line): - line 44: // TODO: it's a workaround for KT-52963, should be reworked – KT-55763 compiler/testData/codegen/box/wasm-new-exception-handling/throw0.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/KotlinTargetSoftwareComponentImpl.kt (1 line): - line 100: // TODO: Included builds kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Annotations.kt (1 line): - line 83: * E.g. it doesn't have any effect when calling the function virtually. TODO: rework. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/VarargLowering.kt (1 line): - line 94: IrSimpleTypeImpl(context.irBuiltIns.arrayClass, false, emptyList(), emptyList()), // TODO: Substitution kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport/InfoPListBuilder.kt (1 line): - line 128: // FIXME with KT-65601: These are hardcoded for the version of Xcode used in our toolchain (15.0) libraries/stdlib/native-wasm/src/kotlin/text/regex/AbstractCharClass.kt (1 line): - line 352: // TODO: Does it match a pair of surrogates? Do we really need mayContainSupplCodepoints? js/js.translator/testData/box/delegateProperty/localVarPlusAssign.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend kotlin-native/runtime/src/main/kotlin/kotlin/collections/ArrayUtil.kt (1 line): - line 21: // TODO: special case for size == 0? compiler/testData/codegen/box/reflection/typeParameters/javaGenericTypeConstructor.kt (1 line): - line 18: // TODO: currently fails with "AssertionError: Expected , actual " js/js.translator/testData/box/esModules/crossModuleRef/topLevelProperty.kt (1 line): - line 16: // TODO: annotations like this are not serialized properly. Uncomment after KT-14529 gets fixed compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/MemoizedInlineClassReplacements.kt (1 line): - line 141: // TODO: Revisit this once we allow user defined equals methods in inline/multi-field value classes. compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/lazy/IrLazyClass.kt (1 line): - line 93: // TODO get rid of code duplication, see ClassGenerator#generateClass kotlin-native/runtime/src/gc/cms/cpp/ConcurrentMark.hpp (1 line): - line 41: * 7. Prepare marked heap for sweeping and resume mutation. // TODO prepare heap without a pause kotlin-native/runtime/src/launcher/cpp/androidLauncher.cpp (1 line): - line 88: // TODO: Can we shutdown runtime here? plugins/kotlinx-serialization/testData/boxIr/excludedFromFileExport.kt (1 line): - line 34: // TODO: Discuss if it's a safe change compiler/testData/codegen/box/traits/kt2399.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/testData/codegen/box/reflection/methodsFromAny/parametersEqualsWithClearCaches.kt (1 line): - line 44: // TODO: depends on KT-13490 plugins/kotlinx-serialization/testData/diagnostics/customSerializers.kt (1 line): - line 132: override val descriptor: SerialDescriptor = PrimitiveSerialDescriptor("TODO SERIALIZER", PrimitiveKind.STRING) compiler/fir/fir-serialization/src/org/jetbrains/kotlin/fir/serialization/FirSerializerExtensionBase.kt (1 line): - line 129: // KT-49303: TODO Refine the condition below, when empty initializer is allowed in metadata section of platform Klib compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype2.kt (1 line): - line 22: g.check {} // TODO: report a compile time error for this case kotlin-native/runtime/src/main/cpp/Exceptions.cpp (1 line): - line 138: // TODO: Forbid throwing Kotlin exceptions through the interop border to get rid of this case. compiler/testData/codegen/box/sam/approximation/impossibleToApproxToRepresentable2.kt (1 line): - line 22: g.check {} // TODO: report a compile time error for this case plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/analysis/KnownStableConstructs.kt (1 line): - line 81: // TODO: buildList, buildMap, buildSet, etc. compiler/frontend/src/org/jetbrains/kotlin/resolve/OverloadResolver.kt (1 line): - line 89: // TODO: check overload conflicts of functions with constructors in scripts kotlin-native/tools/kdumputil/src/kdump/model.kt (1 line): - line 64: // TODO: Remove when not needed kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanBackendContext.kt (1 line): - line 24: // TODO: investigate this. compiler/resolution/src/org/jetbrains/kotlin/resolve/multiplatform/K1AbstractExpectActualCompatibilityChecker.kt (1 line): - line 209: // TODO: check static scope? js/js.translator/testData/incremental/invalidation/functionTypeInterfaceWithCrossModuleInliner/main/m.kt (1 line): - line 19: // TODO: I would expect, that it should be SuspendFunction5_, compiler/util-io/src/org/jetbrains/kotlin/konan/file/File.kt (1 line): - line 180: // TODO: Consider removeing these after konanazing java.util.Properties. kotlin-native/Interop/StubGenerator/src/org/jetbrains/kotlin/native/interop/gen/StubIrBuilder.kt (1 line): - line 19: * TODO: Metadata-based interop should not depend on these components. compiler/frontend/src/org/jetbrains/kotlin/diagnostics/ClassicPositioningStrategies.kt (1 line): - line 33: // TODO: move to specific strategies compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/ir/Symbols.kt (1 line): - line 147: // TODO KT-77388 rename to `BackendKlibSymbolsImpl` compiler/frontend.common/src/org/jetbrains/kotlin/KtSourceFileLinesMapping.kt (1 line): - line 79: val lineOffsets = mutableListOf(0) // TODO: consider using implicit first line offset (needs to be handled properly in IR) compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/DefaultArgumentFunctionFactory.kt (1 line): - line 220: // TODO some annotations are needed (e.g. @JvmStatic), others need different values (e.g. @JvmName), the rest are redundant. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/IrModuleToJsTransformer.kt (1 line): - line 611: // TODO: It makes sense to invent something better, because this logic can be easily broken compiler/multiplatform-parsing/common/src/org/jetbrains/kotlin/kmp/parser/utils/SemanticWhitespaceAwareSyntaxBuilders.kt (1 line): - line 49: // TODO: maybe, memoize this somehow? kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/driver/phases/ObjCExport.kt (1 line): - line 42: // TODO: Share this instance between multiple contexts (including NativeGenerationState)? native/commonizer/src/org/jetbrains/kotlin/commonizer/cir/CirConstantValue.kt (1 line): - line 21: // TODO: remove @ExperimentalUnsignedTypes once bootstrap stdlib has stable unsigned types. compiler/config/src/org/jetbrains/kotlin/config/DuplicatedUniqueNameStrategy.kt (1 line): - line 8: // TODO (KT-76785): Handling of duplicated names in KLIBs is a workaround that needs to be removed in the future. compiler/backend/src/org/jetbrains/kotlin/codegen/coroutines/processUninitializedStores.kt (1 line): - line 63: * TODO: current implementation affects all store/loads of uninitialized objects, even valid ones: libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/artifacts/KotlinJvmJarArtifact.kt (1 line): - line 43: // FIXME: Use .jar for JPMS support in interproject UKlib. Review this in KT-81375 compiler/frontend/src/org/jetbrains/kotlin/types/BoundsSubstitutor.java (1 line): - line 40: // TODO: this does not handle any recursion in the bounds libraries/stdlib/jdk7/src/kotlin/io/path/PathRecursiveFunctions.kt (1 line): - line 183: // TODO: KT-38678 plugins/scripting/scripting-ide-common/src/org/jetbrains/kotlin/scripting/ide_common/idea/codeInsight/ReferenceVariantsHelper.kt (1 line): - line 170: else -> throw RuntimeException() //TODO: see KT-9394 js/js.translator/testData/box/crossModuleRef/topLevelProperty.kt (1 line): - line 15: // TODO: annotations like this are not serialized properly. Uncomment after KT-14529 gets fixed compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/results/ResolutionResultsHandler.java (1 line): - line 86: // TODO : maybe it's better to filter overrides out first, and only then look for the maximally specific analysis/decompiled/decompiler-to-stubs/src/org/jetbrains/kotlin/analysis/decompiler/stub/TypeClsStubBuilder.kt (1 line): - line 33: // TODO: see DescriptorRendererOptions.excludedTypeAnnotationClasses for decompiler kotlin-native/runtime/src/alloc/legacy/cpp/AllocatorImpl.hpp (1 line): - line 33: // TODO: This will print the log for "manual" scheduling. Fix this. plugins/kotlinx-serialization/testData/boxIr/excludedFromExport.kt (1 line): - line 30: // TODO: Discuss if it's a safe change kotlin-native/runtime/src/mm/cpp/AppStateTracking.hpp (1 line): - line 34: // TODO: The initial value might be incorrect. js/js.translator/testData/box/delegateProperty/capturedLocalVal.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend compiler/testData/codegen/box/escapeAnalysis/test5.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser compiler/fir/fir-jvm/src/org/jetbrains/kotlin/fir/java/FirJavaElementFinder.kt (1 line): - line 395: // TODO: reuse other type mapping implementations when possible compiler/util-klib-metadata/src/org/jetbrains/kotlin/library/metadata/impl/KlibModuleDescriptorFactoryImpl.kt (1 line): - line 35: // TODO: don't use hardcoded platform; it should be supplied as a parameter analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirResolver.kt (1 line): - line 1445: // TODO: Refactor common code with FirElement.toKtCallInfo() when other FirResolvables are handled kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/LlvmAttributes.kt (1 line): - line 38: // TODO: do we still need it? compiler/frontend.common.jvm/src/org/jetbrains/kotlin/load/java/structure/impl/annotationArgumentsImpl.kt (1 line): - line 83: // TODO: find a way to construct a correct name (with nested classes) for unresolved enums compiler/testData/codegen/box/wasm-new-exception-handling/try2.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved js/js.frontend/src/org/jetbrains/kotlin/js/patterns/PatternBuilder.java (1 line): - line 138: //TODO: no need to wrap if we check beforehand compiler/backend/src/org/jetbrains/kotlin/codegen/optimization/boxing/ProgressionIteratorBasicValue.kt (1 line): - line 56: // TODO functions returning inline classes are mangled now, should figure out how to work with UInt/ULong iterators here compiler/frontend/src/org/jetbrains/kotlin/types/enumCompatibilityChecker.kt (1 line): - line 33: // TODO: remove this line once KT-30266 will be fixed compiler/testData/codegen/box/wasm-new-exception-handling/rethrow.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/dsl/KotlinMultiplatformExtension.kt (1 line): - line 330: // FIXME: KT-71529 - check if this diagnostic is actually reachable and cover with tests or remove analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/methods/SymbolLightAccessorMethod.kt (1 line): - line 135: //TODO Fix it when SymbolConstructorValueParameter be ready compiler/testData/codegen/box/reflection/classes/nestedClasses.kt (1 line): - line 44: // TODO: should be MutableEntry. Currently we do not distinguish between Map and MutableMap. libraries/stdlib/native-wasm/src/kotlin/text/regex/sets/TrivialGroupQuantifierSet.kt (1 line): - line 101: properties.nonTrivialBacktracking = true // TODO: maybe we can relax the it in certain cases? compiler/frontend.java/src/org/jetbrains/kotlin/load/java/components/FilesByFacadeFqNameIndexer.kt (1 line): - line 19: // TODO: this component is actually only needed by CLI, see CliLightClassGenerationSupport plugins/kapt/kapt-compiler/testData/converter/kt19750.kt (1 line): - line 2: // TODO: Re-enable metadata generation js/js.translator/testData/incremental/invalidation/functionTypeInterface/main/m.kt (1 line): - line 19: // TODO: I would expect, that it should be SuspendFunction5_, compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/WithIndexLoopHeader.kt (1 line): - line 64: // TODO: KT-34665: Check for overflow for Iterable and Sequence (call to checkIndexOverflow()). plugins/scripting/scripting-compiler-impl/build.gradle.kts (1 line): - line 23: // FIXME: drop after removing references to LocalFileSystem they don't exist in intellij-core compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/dce/JsUsefulDeclarationProcessor.kt (1 line): - line 70: // TODO: Possibly solution with origin is not so good compiler/frontend.common/src/org/jetbrains/kotlin/KtSourceElement.kt (1 line): - line 632: // TODO: consider renaming to something like AstBasedSourceElement kotlin-native/runtime/src/main/kotlin/kotlin/native/BitSet.kt (1 line): - line 135: // Set all bits after the index to 0. TODO: We can remove it. compiler/tests-common/testFixtures/org/jetbrains/kotlin/compatibility/binary/AbstractKlibBinaryCompatibilityTest.kt (1 line): - line 30: // TODO: consider removing this base test runner class in KT-71957 compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/linkage/partial/PartiallyLinkedIrTreePatcher.kt (1 line): - line 650: // TODO: is it necessary to check that the number of type parameters matches the number of type arguments? compiler/psi/parser/src/org/jetbrains/kotlin/parsing/SemanticWhitespaceAwarePsiBuilderImpl.java (1 line): - line 77: // TODO: maybe, memoize this somehow? plugins/kotlin-dataframe/testData/box/groupBy_mean.kt (1 line): - line 53: // TODO: not supported scenario compiler/testData/codegen/box/wasm-new-exception-handling/catch2.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/util-klib/src/org/jetbrains/kotlin/library/SearchPathResolver.kt (1 line): - line 45: // TODO: This logic is unreliable and needs to be replaced by the new KLIB resolver in the future. core/descriptors.jvm/src/org/jetbrains/kotlin/load/kotlin/DeserializedDescriptorResolver.kt (1 line): - line 127: // TODO: log.warn compiler/incremental-compilation-impl/testFixtures/org/jetbrains/kotlin/incremental/AbstractIncrementalK2FirICJvmCompilerRunnerTest.kt (1 line): - line 21: get() = BuildLogFinder(isGradleEnabled = true, isFirEnabled = true) // TODO: investigate cases that need isGradleEnabled - the combination looks fragile analysis/analysis-api/testData/components/referenceShortener/shortenRange/conflicts/constructor_vs_function.kt (1 line): - line 17: // TODO This test is not correct, see KTIJ-33500 compiler/testData/codegen/box/binaryOp/bitwiseOpAny.kt (1 line): - line 26: // TODO: Use long hex constants after KT-4749 is fixed compiler/testData/codegen/box/wasm-new-exception-handling/finally2.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/frontend/src/org/jetbrains/kotlin/types/CommonSupertypes.java (1 line): - line 124: // TODO : attributes compiler/testData/codegen/box/wasm-new-exception-handling/kt31923_return.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/calls/NumberConversionCallsTransformer.kt (1 line): - line 20: // TODO: Add Char and Number conversions compiler/tests-integration/testFixtures/org/jetbrains/kotlin/multiplatform/AbstractMultiPlatformIntegrationTest.kt (1 line): - line 30: // TODO: consider inventing a more clever scheme compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/compilerWithIC.kt (1 line): - line 78: //TODO: Lower only needed files but not all loaded by IrLoader KT-71041 compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/HeaderInfo.kt (1 line): - line 44: // TODO: Update comments and member names in this file. kotlin-native/runtime/src/main/cpp/ObjCExportCollections.h (1 line): - line 49: // TODO: this probably can't be called in uninitialized state in the new MM. compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/pipeline/web/wasm/WasmBackendPipelinePhase.kt (1 line): - line 191: it.notifyCurrentPhaseFinishedIfNeeded() // TODO: KT-75227 compiler/testData/diagnostics/nativeTests/identifiers.kt (1 line): - line 5: // FIXME: rename identifiers.kt core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedTypeParameterDescriptor.kt (1 line): - line 37: /*TODO: support deserialized type annotations: now they are unused, even not accessible via reflection (KT-46932)*/ core/reflection.jvm/src/kotlin/reflect/jvm/internal/Builtins.kt (1 line): - line 29: // TODO (KT-80710): `invoke` function. jps/jps-plugin/testData/incremental/pureKotlin/accessingPropertiesViaField/b.kt (1 line): - line 1: // TODO add var compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirSingleLevelDefaultStarImportingScope.kt (1 line): - line 36: // TODO: put languageVersionSettings into FirSession? compiler/daemon/src/org/jetbrains/kotlin/daemon/KotlinRemoteReplService.kt (1 line): - line 135: // TODO: drop it compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/LocalDeclarationPopupLowering.kt (1 line): - line 78: // TODO: check if it is the correct behavior compiler/testData/codegen/box/wasm-new-exception-handling/returnsDifferentTypes.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/multiplatform-parsing/build.gradle.kts (1 line): - line 84: // TODO: KT-77206 (Get rid of the skeleton downloading or use JFlex version instead of the commit hash). compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/BoxCache.kt (1 line): - line 12: // TODO: consider adding box caches for unsigned types. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/CoroutinesVarSpillingLowering.kt (1 line): - line 57: // TODO: optimize by using the same property for different locals. kotlin-native/runtime/src/main/cpp/concurrent/ScopedThread.cpp (1 line): - line 22: // TODO: On Linux the maximum thread name is 16 characters. Handle automatically? compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirSyntheticCallGenerator.kt (1 line): - line 282: .firstOrNull() // TODO: it should be single() after KTIJ-26465 is fixed compiler/psi/psi-api/src/org/jetbrains/kotlin/psi/KtNamedDeclarationNotStubbed.java (1 line): - line 27: // TODO: Remove when all named declarations get stubs plugins/kotlinx-serialization/testData/boxIr/instantSerializer.kt (1 line): - line 14: // TODO: delete when serialization runtime is updated to 1.9.0 compiler/testData/codegen/box/wasm-new-exception-handling/finally9.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/classpathDiff/JavaClassChangesComputer.kt (1 line): - line 109: // TODO: Check whether the condition to add SAM_LOOKUP_NAME below is too broad, and correct it if necessary. compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/results/OverloadingConflictResolver.kt (1 line): - line 456: // TODO should we "discriminate generic descriptors" for callable references? compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/JvmPropertiesLowering.kt (1 line): - line 178: // TODO: technically JVM permits having fields with same name but different type, so we could potentially compiler/testData/codegen/box/dataClasses/floatParam.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/ObjectiveCUtils.kt (1 line): - line 19: // TODO: null checks core/descriptors/src/org/jetbrains/kotlin/renderer/DescriptorRendererOptionsImpl.kt (1 line): - line 43: //TODO: use Kotlin reflection compiler/testData/codegen/box/wasm-new-exception-handling/throw_from_catch.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/frontend.common-psi/src/org/jetbrains/kotlin/diagnostics/PositioningStrategies.kt (1 line): - line 889: // TODO: [VD] FIR collects for some reason implicit KtConstructorDelegationCall kotlin-native/runtime/src/main/cpp/ConditionVariable.hpp (1 line): - line 57: // TODO: Implement wait_until and wait_for using kotlin::steady_clock. compiler/fir/cones/src/org/jetbrains/kotlin/fir/types/ConeTypes.kt (1 line): - line 313: // TODO: consider inheriting directly from ConeKotlinType (KT-70049) core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MemberDeserializer.kt (1 line): - line 361: else -> null // TODO: support annotations on lambdas and their parameters core/compiler.common/src/org/jetbrains/kotlin/types/TypeSystemCommonBackendContext.kt (1 line): - line 29: * TODO: provide a more granular & elaborate API here to reduce confusion native/objcexport-header-generator/src/org/jetbrains/kotlin/backend/konan/objcexport/ObjCExportName.kt (1 line): - line 118: return this.replace('$', '_') // TODO: handle more special characters. compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/lower/VirtualDispatchReceiverExtraction.kt (1 line): - line 53: // TODO: Keep other simple receivers without side effects libraries/stdlib/src/kotlin/text/HexExtensions.kt (1 line): - line 335: // TODO: Common OutOfMemoryError? compiler/testData/codegen/box/regressions/kt6434.kt (1 line): - line 4: // TODO: muted automatically, investigate should it be ran for JS or not compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/IrSourceCompilerForInline.kt (1 line): - line 165: // TODO: Find a way to avoid using PSI here compiler/testData/codegen/box/reflection/types/typeArguments.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/inference/FirInferenceSession.kt (1 line): - line 80: // TODO: This function would be hopefully removed once KT-55692 is fixed compiler/multiplatform-parsing/common/src/org/jetbrains/kotlin/kmp/parser/utils/KotlinParsing.kt (1 line): - line 914: // TODO: Log error? (LOG.error("expected file annotation parsing mode, but:$mode")) analysis/decompiled/decompiler-to-file-stubs/src/org/jetbrains/kotlin/analysis/decompiler/stub/file/DirectoryBasedClassFinder.kt (1 line): - line 46: // TODO: load built-ins from packageDirectory? compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/FirJvmElementAwareStringTable.kt (1 line): - line 37: // TODO: should call getCachedIrLocalClass, see KT-66018 core/descriptors/src/org/jetbrains/kotlin/resolve/SealedClassInheritorsProvider.kt (1 line): - line 32: // TODO: do something more clever instead at call sites of this function compiler/testData/codegen/box/reflection/methodsFromAny/builtinFunctionsToString.kt (1 line): - line 17: // TODO: uncomment once KT-11754 is fixed core/descriptors/src/org/jetbrains/kotlin/descriptors/ModuleDescriptor.kt (1 line): - line 35: // TODO: make it non-null compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/loops/handlers/ReversedHandler.kt (1 line): - line 25: // TODO: Handle reversed String, Progression.withIndex(), etc. analysis/light-classes-base/src/org/jetbrains/kotlin/asJava/finder/JavaElementFinder.kt (1 line): - line 162: // TODO: this does not take into account JvmPackageName annotation compiler/testData/codegen/box/reflection/classLiterals/builtinClassLiterals.kt (1 line): - line 30: // TODO: KT-11754 plugins/kotlin-dataframe/testData/box/groupBy_std.kt (1 line): - line 50: // TODO: not supported scenario compiler/testData/loadJava/compiledKotlin/annotations/packageMembers/DelegatedProperty.kt (1 line): - line 2: // TODO: unskip core/metadata/src/org/jetbrains/kotlin/metadata/deserialization/protoTypeTableUtil.kt (1 line): - line 21: // TODO: return null and report a diagnostic instead of throwing exceptions compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/SuspendLambdaLowering.kt (1 line): - line 296: // TODO: fix the generic signature -- type parameters of FunctionN should be substituted kotlin-native/Interop/Runtime/src/native/kotlin/kotlinx/cinterop/Pinning.kt (1 line): - line 72: // TODO: pinning of unsigned arrays involves boxing as they are inline classes wrapping signed arrays. compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/repl/KotlinJsr223JvmScriptEngineBase.kt (1 line): - line 51: // TODO: check why createBinding is not called on creating default context, so the engine is not set compiler/testData/codegen/box/arrays/kt503.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/frontend.common/src/org/jetbrains/kotlin/resolve/ForbiddenNamedArgumentsTarget.kt (1 line): - line 12: // TODO: add the following when MPP support is available compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/TestGenerator.kt (1 line): - line 74: // TODO top-level functions compiler/ir/backend.jvm/codegen/src/org/jetbrains/kotlin/backend/jvm/codegen/IrInlineIntrinsicsSupport.kt (1 line): - line 92: // TODO: generate correct signature for functions and property accessors which have inline class types in the signature. compiler/testData/codegen/box/wasm-new-exception-handling/notChainCatch.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved js/typescript-printer/src/org/jetbrains/kotlin/ir/backend/js/tsexport/ExportModelToTsDeclarations.kt (1 line): - line 42: // TODO: Support module kinds other than plain compiler/testData/codegen/box/ieee754/explicitCompareCall_AgainstCompiled.kt (1 line): - line 31: //TODO: KT-14989 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/InnerClassLowering.kt (1 line): - line 47: name = "this$0".synthesizedName // TODO: other backends have "$this" here. compiler/fir/resolve/src/org/jetbrains/kotlin/fir/scopes/ImportingScopes.kt (1 line): - line 116: // TODO: explicit simple importing scope should have highest priority (higher than inner scopes added in process) compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/cleanup/CleanupLowering.kt (1 line): - line 27: // TODO: merge passes together compiler/testData/diagnostics/testsWithStdLib/coroutines/inference/recursiveGenerators2.kt (1 line): - line 20: // TODO: KT-15185 compiler/testData/codegen/box/reflection/properties/localDelegated/localDelegatedProperty.kt (1 line): - line 45: // TODO: support getDelegate for local delegated properties core/descriptors/src/org/jetbrains/kotlin/resolve/sam/SamConversionResolverImpl.kt (1 line): - line 49: // TODO: prevent resolve re-entrance on architecture level, or (alternatively) ask data binding owners not to do it compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/stages/CreateFreshTypeVariableSubstitutorStage.kt (1 line): - line 142: * TODO: Get rid of this function once [LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible] is removed compiler/testData/codegen/box/escapeAnalysis/test1.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser kotlin-native/runtime/src/main/cpp/Arrays.cpp (1 line): - line 120: // TODO: those must be compiler intrinsics afterwards. compiler/psi/parser/buildLexer.xml (1 line): - line 6: kotlin-native/runtime/src/main/kotlin/kotlin/io/Serializable.kt (1 line): - line 8: // TODO: This interface is a temporary solution for common collections and not used in Native. compiler/testData/codegen/box/nothingValue/nothingValueException.kt (1 line): - line 16: // TODO check FQN compiler/testData/codegen/box/ranges/safeCallRangeTo.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/testData/diagnostics/testsWithJsStdLib/module/wrongCallToNonModule.ll.kt (1 line): - line 31: // TODO: it's hard to test @JsNonModule on file from an external module compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirConventionFunctionCallChecker.kt (1 line): - line 47: // KT-61905: TODO: Return also in case of error type. compiler/testData/psi/annotations.kt (1 line): - line 17: //TODO: accessor modifiers are lost compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/transformers/irToJs/JsNameLinkingNamer.kt (1 line): - line 83: // TODO this looks funny. Rethink. kotlin-native/Interop/Runtime/src/jvm/kotlin/kotlinx/cinterop/JvmStaticCFuntion.kt (1 line): - line 7: // TODO: generate automatically during build. plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/resolve/ScriptProvidedPropertyDescriptor.kt (1 line): - line 35: // TODO: consider delegation instead libraries/stdlib/jdk8/src/kotlin/random/jdk8/PlatformThreadLocalRandom.kt (1 line): - line 12: // TODO no bridge generated for covariant override compiler/testData/codegen/box/invokedynamic/sam/enhancedNullabilityMix.kt (1 line): - line 8: // TODO check why EnhancedNullabilityKt\$box\$t1\$1 is not synthetic js/js.translator/testData/box/enum/accessing.kt (1 line): - line 26: // TODO uncoment when KT-5605 will be fixed libraries/stdlib/js/runtime/coreRuntime.kt (1 line): - line 143: val length: Int = str.length // TODO: Implement WString.length kotlin-native/runtime/src/main/kotlin/kotlin/native/concurrent/Lock.kt (1 line): - line 26: // TODO: make it properly reschedule instead of spinning. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/declarations/KotlinStandaloneDeclarationProvider.kt (1 line): - line 74: return findFilesForFacadeByPackage(facadeFqName.parent()) //TODO Not work correctly for classes with JvmPackageName js/js.translator/src/org/jetbrains/kotlin/js/inline/clean/RedundantStatementElimination.kt (1 line): - line 180: // TODO: consider case like this one: cond ? se() + 1 : se() + 2 compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/jsCompiler.kt (1 line): - line 138: // TODO should be done incrementally compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/model/KotlinCallArguments.kt (1 line): - line 27: get() = false // TODO: add warning compiler/tests-common/testFixtures/org/jetbrains/kotlin/codegen/AbstractCheckLocalVariablesTableTest.kt (1 line): - line 284: // TODO: Implement these to extend coverage. compiler/tests-common/testFixtures/org/jetbrains/kotlin/TestHelperGenerator.kt (1 line): - line 68: // TODO: Find a way to check for tail-call optimization on JS and Native compiler/testData/codegen/box/wasm-new-exception-handling/tryCatchWithHandleResult.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved js/js.sourcemap/build.gradle.kts (1 line): - line 8: compileOnly(project(":js:js.parser")) // TODO remove, required for JSON AST compiler/fir/providers/src/org/jetbrains/kotlin/fir/extensions/FirExtensionDeclarationsSymbolProvider.kt (1 line): - line 105: // TODO: KT-81840 consider writing require(!classId.isLocal) here or supporting this case compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/transformations/InsertImplicitCasts.kt (1 line): - line 387: // TODO see KT-35849 compiler/fir/fir-deserialization/src/org/jetbrains/kotlin/fir/deserialization/FirMemberDeserializer.kt (1 line): - line 625: // TODO: introduce the similar changes for the other deserialized entities compiler/testData/codegen/box/wasm-new-exception-handling/nestedFinallyAndNonFinallyTry4.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/resolution/src/org/jetbrains/kotlin/resolve/calls/components/ResolutionParts.kt (1 line): - line 933: // TODO: consider reporting errors on bounded type variables by incompatible types but with other lower constraints kotlin-native/runtime/src/gc/cms/cpp/ConcurrentMark.cpp (1 line): - line 152: // 3. AND the last attempt at completing mark closure encountered 0 new objects // FIXME this is actually redundant native/swift/sir-providers/src/org/jetbrains/kotlin/sir/providers/SirSession.kt (1 line): - line 346: // TODO: SirChildrenProvider probably does not make much sense as a provider, kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/NativeInventNamesForLocalClasses.kt (1 line): - line 18: // TODO: consider replacing '$' by another delimeter that can't be used in class name specified with backticks (``) compiler/testData/codegen/box/primitiveTypes/kt2768.kt (1 line): - line 13: // TODO: KT-2780 compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/linkage/partial/PartialLinkageUtils.kt (1 line): - line 136: // A workaround for KT-58837 until KT-58904 is fixed. TODO: Merge with MessageCollector. compiler/backend/src/org/jetbrains/kotlin/codegen/inline/InplaceArgumentsMethodTransformer.kt (1 line): - line 259: // TODO investigate whether it's possible to lift these restrictions. libraries/stdlib/jvm/runtime/kotlin/jvm/internal/FunctionReference.java (1 line): - line 107: // TODO: consider adding the class name to toString() for constructors compiler/testData/codegen/bytecodeListing/sam/nonApproxToValidSupertype.kt (1 line): - line 19: g.check {} // (*) target SAM type: IFoo<{ X & Z }> (TODO: report a compile time error for this case) plugins/kapt/kapt-compiler/testData/converter/kt19700.kt (1 line): - line 2: // TODO: Re-enable metadata generation compiler/serialization/src/org/jetbrains/kotlin/serialization/ContractSerializer.kt (1 line): - line 86: // TODO: Add else and do something like reporting issue? core/reflection.jvm/src/kotlin/reflect/jvm/internal/KClassImpl.kt (1 line): - line 526: // TODO: use Kotlin semantics for mutable/read-only collections once KT-11754 is supported (see TypeIntrinsics) compiler/ir/ir.inline/src/org/jetbrains/kotlin/ir/inline/FunctionInlining.kt (1 line): - line 273: // TODO extract to common utils OR reuse ContractDSLRemoverLowering core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/descriptors/DeserializedMemberDescriptor.kt (1 line): - line 35: // TODO: merge with sourceElement of containingDeclaration kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/NativeGenerationState.kt (1 line): - line 55: // TODO: Get rid of this property completely once transition to the dynamic driver is complete. plugins/kotlin-dataframe/testData/box/groupBy_median.kt (1 line): - line 54: // TODO: not supported scenario compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/NewCallArguments.kt (1 line): - line 218: override fun getSpreadElement(): LeafPsiElement? = null // TODO callElement? libraries/kotlinx-metadata/src/kotlin/metadata/internal/common/BuiltInExtensionNodes.kt (1 line): - line 26: // TODO (KT-71235): annotations on enum entries kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/DataClassOperatorsLowering.kt (1 line): - line 54: // TODO: use more precise type arguments. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/symbols/impl/IrSymbolImpl.kt (1 line): - line 57: // TODO fix declaring/referencing value parameters: compute proper original descriptor compiler/testData/codegen/box/inlineClasses/overrideReturnNothing.kt (1 line): - line 2: // TODO: Fir2Ir generates overrides as finals. compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/ClassInfo.kt (1 line): - line 117: // TODO: Collect interface methods separately compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/SyntheticDeclarationsGenerator.kt (1 line): - line 134: // TODO: type parameters compiler/frontend/src/org/jetbrains/kotlin/resolve/DeclarationResolver.kt (1 line): - line 84: // TODO: report error on expected class and actual val, or vice versa plugins/kotlinx-serialization/testData/boxIr/KeepGeneratedSerializer.kt (1 line): - line 22: @file:Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE") // TODO: support common sources in the test infrastructure repo/gradle-build-conventions/buildsrc-compat/src/main/kotlin/setupIrJsBoxTests.kt (1 line): - line 23: dependsOn(":kotlin-stdlib:jsJarForTests") // TODO: think how to remove dependency on the artifact in this place compiler/testData/codegen/box/reflection/functions/genericOverriddenFunction.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not kotlin-native/runtime/src/main/cpp/FinalizerHooks.cpp (1 line): - line 24: // TODO: Consider some global registration. native/utils/src/org/jetbrains/kotlin/konan/library/SearchPathResolver.kt (1 line): - line 66: // TODO: We have a choice: either assume it is the CURRENT TARGET or a list of ALL KNOWN targets. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/overrides/FakeOverrideBuilderStrategy.kt (1 line): - line 205: // TODO: this is JS-specific functionality which should be moved out of the common ir.tree. compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/FirUpperBoundViolatedHelpers.kt (1 line): - line 220: * TODO: Get rid of this unwrapping once [LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible] is removed core/deserialization/src/org/jetbrains/kotlin/serialization/deserialization/MetadataPackageFragmentProvider.kt (1 line): - line 140: // TODO: check if the corresponding file exists compiler/testData/codegen/box/reflection/types/useSiteVariance.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/lower/IfNullExpressionsFusionLowering.kt (1 line): - line 211: // TODO other expressions may not require a temporary even if they read the variable. compiler/testData/codegen/box/wasm-new-exception-handling/breakAndOuterFinally.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/testData/codegen/box/escapeAnalysis/test12.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinChunk.kt (1 line): - line 66: .distinct() // TODO does this "distinct" really needed? compiler/testData/codegen/box/reified/reifiedTypeArgumentWithRecursion.kt (1 line): - line 11: // TODO check real effects to fix the behavior when we reach consensus libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/publishing/Publishing.kt (1 line): - line 83: // Android targets have their variants created in afterEvaluate; TODO handle this better? compiler/config.jvm/src/org/jetbrains/kotlin/platform/jvm/JvmPlatform.kt (1 line): - line 66: // TODO: temporarily conservative implementation; use the same approach as for TargetPlatform?.isNative() compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/dirtyFiles/DirtyFilesProvider.kt (1 line): - line 20: * //TODO: KT-74057 Investigate usage of dirty-sources.txt in Kotlin IC compiler/daemon/daemon-client/src/main/kotlin/RemoteReplCompilerState.kt (1 line): - line 25: // TODO: verify that locla lock doesn't lead to any synch problems libraries/stdlib/native-wasm/src/kotlin/text/regex/sets/BackReferenceSet.kt (1 line): - line 100: // TODO: investigate further; can the group value change in a way the backtracking is needed? compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/inference/model/FirConstraintPositionAndErrors.kt (1 line): - line 58: // TODO: This class is different from `ConeRegularLambdaArgumentConstraintPosition` to not inherit it from `OnlyInputTypesConstraintPosition` compiler/testData/codegen/box/wasm-new-exception-handling/catch8.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved kotlin-native/runtime/src/crashHandler/impl/cpp/CrashHandler.cpp (1 line): - line 17: // TODO include no_mach on TVOS/WATCHOS compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.fir.kt (1 line): - line 3: // TODO: https://youtrack.jetbrains.com/issue/KT-49862 plugins/lombok/lombok.k2/src/org/jetbrains/kotlin/lombok/k2/generators/AllArgsConstructorGeneratorPart.kt (1 line): - line 35: // TODO: consider adding `hasInitializer` property directly to java model analysis/low-level-api-fir/src/org/jetbrains/kotlin/analysis/low/level/api/fir/providers/LLFirIdePredicateBasedProvider.kt (1 line): - line 210: // FIXME we actually have a problem with KtFakeSourceElement sources compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/pipeline/web/WebBackendPipelinePhase.kt (1 line): - line 114: // TODO: One day, when we will lower IR and produce JS AST per module, js/js.translator/testData/box/native/passExtLambdaToNative.kt (1 line): - line 2: // TODO: Unmute when extension functions are supported in external declarations. core/deserialization.common.jvm/src/org/jetbrains/kotlin/load/kotlin/header/KotlinClassHeader.kt (1 line): - line 52: // TODO: use in incremental compilation compiler/testData/codegen/box/classes/kt2288.kt (1 line): - line 1: // TODO: Enable when JS backend supports Java class library plugins/assign-plugin/assign-plugin.k2/src/org/jetbrains/kotlin/assignment/plugin/k2/FirAssignAnnotationMatchingService.kt (1 line): - line 26: // TODO KT-83571 Reconsider meta-annotation support for assign plugin compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/JvmDefaultChecker.kt (1 line): - line 46: //TODO: maybe remove this check for JVM compatibility kotlin-native/endorsedLibraries/kotlinx.cli/src/main/kotlin/kotlinx/cli/Arguments.kt (1 line): - line 99: // TODO: investigate if we can collapse two inheritors into the single base class and specialize extensions by TResult upper bound compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/Properties.kt (1 line): - line 66: COMPILE_DAEMON_INITIATOR_MARKER_FILE("kotlin.daemon.initiator.marker.file"), // TODO: possibly remove this property after KT-72161 compiler/testData/codegen/boxInline/wasm-new-exception-handling/kt5863.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/annotations/jvmAnnotationUtil.kt (1 line): - line 34: // TODO add checks after fixes in diagnostics compiler/testData/codegen/box/reflection/supertypes/genericSubstitution.kt (1 line): - line 38: // TODO (KT-77700): no annotations on the supertypes. compiler/testData/codegen/box/wasm-new-exception-handling/continueAndOuterFinally.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved core/reflection.jvm/src/kotlin/reflect/jvm/internal/moduleByClassLoader.kt (1 line): - line 25: // TODO: collect nulls periodically libraries/stdlib/js/runtime/kotlinJsHacks.kt (1 line): - line 53: // TODO: remove after bootstrap update compiler/testData/diagnostics/testsWithStdLib/coroutines/suspendExternalFunctions.kt (1 line): - line 38: // TODO: should we allow somehow to call with passing continuation explicitly? wasm/wasm.ir/src/org/jetbrains/kotlin/wasm/ir/convertors/WasmIrToText.kt (1 line): - line 712: // TODO: SpiderMonkey js shell can't parse some of the compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/transformers/ConvertMemberToStatic.kt (1 line): - line 33: // TODO: move it inside createStaticFunctionWithReceivers compiler/testData/diagnostics/testsWithStdLib/experimental/constVal.kt (1 line): - line 34: // TODO: there should be no warning here compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/proxy/reflection/KClassProxy.kt (1 line): - line 68: // TODO fix problems with typealias and java classes subtype check libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/publishing/DefaultPomDependenciesRewriter.kt (1 line): - line 109: // TODO handle Android configuration names in a general way once we drop AGP < 3.0.0 compiler/backend/src/org/jetbrains/kotlin/codegen/inline/ObjectTransformer.kt (1 line): - line 60: //TODO add additional check that class is when mapping libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/utils/gradleUtils.kt (1 line): - line 59: // FIXME: replace with propper Compatibility service [VariantImplementationFactories] compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/proxy/reflection/KFunctionProxy.kt (1 line): - line 54: // TODO check arity analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/symbolLightUtils.kt (1 line): - line 248: boxPrimitiveType = false, /* TODO value.arrayNestedness > 0*/ kotlin-native/runtime/src/main/cpp/TestSupport.hpp (1 line): - line 20: // TODO: Figure out why creating many threads on windows is so slow. compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/AbstractFirOverrideScope.kt (1 line): - line 36: } // TODO: two or more overrides for one fun? kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CacheSupport.kt (1 line): - line 73: // TODO: consider using [FeaturedLibraries.kt]. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/references/fe10/base/KtFe10PolyVariantResolver.kt (1 line): - line 70: // TODO: Old impl from IDE side has this logic wrapped inside runWithCancellationCheck. Figure out what we should do here. compiler/testData/codegen/box/dataClasses/doubleParam.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/project/structure/impl/KaModuleUtils.kt (1 line): - line 95: // TODO: report or log [IOException]? libraries/stdlib/src/kotlin/reflect/KClasses.kt (1 line): - line 29: // TODO: replace with qualifiedName when it is fully supported in K/JS compiler/tests-common/testFixtures/org/jetbrains/kotlin/codegen/GenerateNotNullAssertionsTest.java (1 line): - line 30: // TODO Remove this class once general multi-module bytecode text tests are implemented. compiler/testData/codegen/boxInline/multiplatform/defaultArguments/receiversAndParametersInLambda.kt (1 line): - line 6: // TODO: replace all references on expected declarations and their members to actuals, libraries/stdlib/wasm/src/kotlin/util/PreconditionsWasm.kt (1 line): - line 13: // TODO: investigate other ways to achieve the same, preferably covering not stdlib only but user cases too. jps/jps-plugin/testData/incremental/multiModule/jvm/circularDependencyTopLevelFunctions/module1_a.kt (1 line): - line 6: // TODO: this call is compiled via package facade or package part depending on if callee comes from compiled or source compiler/testData/codegen/box/casts/functions/reifiedIsFunKBig.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/frontend.common.jvm/src/org/jetbrains/kotlin/load/java/structure/impl/classFiles/Types.kt (1 line): - line 57: // TODO: render arguments for presentable text compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/FunctionGenerator.kt (1 line): - line 410: // TODO: this can produce `$this$null` - expected? compiler/testData/codegen/box/escapeAnalysis/test8.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser build-common/src/org/jetbrains/kotlin/incremental/storage/RelocatableFileToPathConverter.kt (1 line): - line 23: // TODO: Re-design the code such that `baseDir` always contains the given file (also add a precondition check here). compiler/frontend/src/org/jetbrains/kotlin/resolve/bindingContextUtil/BindingContextUtils.kt (1 line): - line 95: //TODO: it's a hack because KotlinTypeInfo with wrong DataFlowInfo stored for call expression after qualifier compiler/backend/src/org/jetbrains/kotlin/codegen/inline/SamWrapperTransformer.kt (1 line): - line 43: //TODO consider to use package class instead of inliningContext.root.callSiteInfo.ownerClassName compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/compat.kt (1 line): - line 34: // TODO: Remove it once KT-81457 is fixed compiler/testData/codegen/box/wasm-new-exception-handling/kt3874.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/testData/codegen/box/casts/asForConstants.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/ir/serialization.common/src/org/jetbrains/kotlin/backend/common/serialization/IrFileUtils.kt (1 line): - line 21: // TODO: could be incorrect, if file is not in system's line terminator format. compiler/ir/ir.validation/src/org/jetbrains/kotlin/ir/validation/checkers/expression/IrGetFieldTypeChecker.kt (1 line): - line 18: // TODO: We don't have the proper type substitution yet, so skip generics for now. compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/declaration/FirOperatorOfChecker.kt (1 line): - line 145: // TODO: filter out deprecated declarations correctly (KT-83165) kotlin-native/runtime/src/alloc/common/cpp/FinalizerProcessor.hpp (1 line): - line 97: bool hasNewTasks(int64_t lastProcessedEpoch) noexcept { // FIXME name compiler/testData/codegen/boxInline/wasm-new-exception-handling/tryCatch2.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved kotlin-native/runtime/src/alloc/legacy/cpp/AllocatorImpl.cpp (1 line): - line 18: // TODO move to common compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/FirTypeResolver.kt (1 line): - line 24: // TODO: Consider putting other parameters to TypeResolutionConfiguration kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Cleaner.kt (1 line): - line 67: // TODO: Consider just annotating the lambda argument rather than hardcoding checking libraries/tools/required-reason-finder/required_reason_finder.py (1 line): - line 36: # TODO make it possible to use existing RC1/RC3/2.0.0 versions compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/GeneratorContext.kt (1 line): - line 66: // TODO: inject a correct StorageManager instance, or store NotFoundClasses inside ModuleDescriptor libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/uklibs/publication/SerializeMetadataFragmentsOnlyUklibManifest.kt (1 line): - line 32: // FIXME: Check for bamboo has to be somewhere in consumer's GMT compiler/util/src/org/jetbrains/kotlin/utils/KotlinPathsFromHomeDir.kt (1 line): - line 27: // TODO: extend when needed plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/services/Fir2IrScriptConfiguratorExtensionImpl.kt (1 line): - line 37: session.firProvider.getFirScriptByFilePath(it.locationId!!) // TODO: all !! should be converted to diagnostics plugins/compose/compiler-hosted/src/main/java/androidx/compose/compiler/plugins/kotlin/lower/IrInlineReferenceLocator.kt (1 line): - line 92: // TODO: There is a Kotlin command line option to disable inlining (-Xno-inline). The code kotlin-native/runtime/src/alloc/legacy/cpp/ObjectFactoryAllocator.hpp (1 line): - line 14: // TODO: Try to move from custom allocator interface to standard one. core/metadata.jvm/src/org/jetbrains/kotlin/metadata/jvm/deserialization/BitEncoding.java (1 line): - line 44: // TODO: try both encodings here and choose the best one (with the smallest size) compiler/ir/ir.tree/tree-generator/src/org/jetbrains/kotlin/ir/generator/print/DeepCopyIrTreeWithSymbolsPrinter.kt (1 line): - line 91: println("// TODO refactor") compiler/util-klib/src/org/jetbrains/kotlin/library/impl/KotlinLibraryWriterImpl.kt (1 line): - line 44: // TODO: figure out the proper policy here. core/compiler.common/src/org/jetbrains/kotlin/util/contextUtils.kt (1 line): - line 14: // TODO replace usages with stdlib functions and remove when KT-70247 is fixed. libraries/stdlib/js/src/org.w3c/org.w3c.files.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 libraries/stdlib/js/src/org.w3c/org.w3c.dom.parsing.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/fir/semantics/src/org/jetbrains/kotlin/fir/declarations/FirMustUseReturnValueStatusComponent.kt (1 line): - line 58: // FIXME (KTI-2545): One can't simply write errorprone package name, because whole com.google. package is relocated in kotlin-compiler-embeddable. libraries/stdlib/js/src/kotlin/math.kt (1 line): - line 1139: // TODO: remove manual 'or' when KT-19290 is fixed kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CheckExternalCalls.kt (1 line): - line 126: // TODO: Do we need this with fresh LLVM? jps/jps-plugin/src/org/jetbrains/kotlin/jps/build/KotlinCompileContext.kt (1 line): - line 96: * TODO: looks like it is not required since cache version checking are refactored libraries/stdlib/js/src/org.w3c/org.w3c.performance.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/fir/semantics/src/org/jetbrains/kotlin/fir/resolve/CallableIdUtils.kt (1 line): - line 19: // TODO: rename to `isFunctionOrKFunctionInvoke` when the compose builds will be stabilized, KT-67002 native/executors/src/main/kotlin/org/jetbrains/kotlin/native/executors/EmulatorExecutor.kt (1 line): - line 31: // TODO: Move these to konan.properties when when it will be possible plugins/scripting/scripting-compiler/src/org/jetbrains/kotlin/scripting/compiler/plugin/irLowerings/ReplSnippetLowering.kt (1 line): - line 126: // TODO: find out what problems could arise from copying annotations applicable to file only (KT-74176) js/js.translator/testData/box/reflection/kClassSimpleName.kt (1 line): - line 18: // TODO uncomment after KT-13338 is fixed compiler/fir/checkers/src/org/jetbrains/kotlin/fir/analysis/checkers/expression/FirNotNullAssertionChecker.kt (1 line): - line 38: // TODO: use of Unit is subject to change. compiler/testData/codegen/box/diagnostics/functions/tailRecursion/realIteratorFoldl.kt (1 line): - line 1: // TODO: muted automatically, investigate should it be ran for JS or not compiler/util-klib/src/org/jetbrains/kotlin/library/KotlinLibraryWriter.kt (1 line): - line 19: // TODO: Move SerializedIr here too to eliminate dependency on backend.common.serialization compiler/testData/codegen/box/wasm-new-exception-handling/finally4.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/dce/utils.kt (1 line): - line 19: // TODO: sanitize names plugins/kapt/kapt-compiler/src/org/jetbrains/kotlin/kapt/stubs/KaptStubConverter.kt (1 line): - line 1123: Annotations.EMPTY /* TODO */ compiler/fir/checkers/checkers.jvm/src/org/jetbrains/kotlin/fir/analysis/jvm/checkers/expression/FirJvmProtectedInSuperClassCompanionCallChecker.kt (1 line): - line 36: // TODO: consider what to do with it kotlin-native/runtime/src/main/cpp/ObjCExportCollectionUtils.mm (1 line): - line 62: // TODO: come up with a proper solution. kotlin-native/runtime/src/main/cpp/Logging.cpp (1 line): - line 93: // TODO: This might be suboptimal. libraries/tools/dukat/src/main/kotlin/org/jetbrains/kotlin/tools/dukat/wasm/convertToModel.kt (1 line): - line 248: //TODO: Check whether it makes sense to have nullable names in idl compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/FirJvmSerializerExtension.kt (1 line): - line 414: // TODO: make JvmStringTable implement NameResolver and use JvmProtoBufUtil#getJvmMethodSignature instead kotlin-native/runtime/src/main/kotlin/kotlin/Numbers.kt (1 line): - line 104: // TODO: Replace 32 and 64 literals with Int/Long.SIZE_BITS constants when constant propagation is working generators/ide-iml-to-gradle-generator/src/org/jetbrains/kotlin/generators/imltogradle/Main.kt (1 line): - line 99: // TODO remove hack (for some reason we have to specify :kotlin-stdlib-jdk7 explicitly, otherwise compilation doesn't pass) compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/wrappers/symbols/SymbolBasedMethod.kt (1 line): - line 39: // TODO: allow nullable names in Symbol-based annotation arguments and pass null instead of a synthetic name compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/modules/CoreJrtVirtualFile.kt (1 line): - line 37: // TODO: catch IOException? compiler/ir/ir.objcinterop/src/org/jetbrains/kotlin/ir/objcinterop/ObjCInterop.kt (1 line): - line 47: this.getAllSuperClassifiers().any { it.fqNameSafe == objCObjectFqName } // TODO: this is not cheap. Cache me! compiler/ir/backend.wasm/src/org/jetbrains/kotlin/backend/wasm/ir2wasm/TypeTransformer.kt (1 line): - line 38: // TODO: Lower blocks with Nothing type? libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/diagnostics/checkers/GradleDeprecatedPropertyChecker.kt (1 line): - line 93: // TODO: KT-82960 Remove deprecated enableKotlinToolingMetadataArtifact in 2.4.0 compiler/testData/codegen/box/wasm-new-exception-handling/finally1.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved js/js.translator/src/org/jetbrains/kotlin/js/inline/clean/FunctionPostProcessor.kt (1 line): - line 38: // TODO: reduce to A || B, A && B if possible compiler/fir/providers/src/org/jetbrains/kotlin/fir/expressions/ExplicitTypeArgumentIfMadeFlexibleSyntheticallyTypeAttribute.kt (1 line): - line 17: * TODO: Get rid of this class once [LanguageFeature.DontMakeExplicitJavaTypeArgumentsFlexible] is removed plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/utils.kt (1 line): - line 25: // TODO: consider checking for all registered extensions core/descriptors/src/org/jetbrains/kotlin/types/TypeWithEnhancement.kt (1 line): - line 98: // TODO: think about star projections with enhancement (e.g. came from Java: Foo<@NotNull ?>) plugins/atomicfu/atomicfu-compiler/testFixtures/org/jetbrains/kotlinx/atomicfu/runners/AbstractAtomicfuPluginTestRunners.kt (1 line): - line 49: // TODO temporarily disabled generation of FIR dumping tests, see: KT-79199 compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/tower/NewCallableReferenceResolvedCall.kt (1 line): - line 88: // TODO: Update context receivers analysis/analysis-api/testData/components/referenceShortener/shortenRange/typeParameters/typeParameterVsType_noConflict.kt (1 line): - line 8: // TODO this test has an error, MyType should not be resolved here. See KT-61959 plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/definitions/LazyScriptDefinitionProvider.kt (1 line): - line 80: // TODO: find a common place for storing kotlin-related extensions and reuse values from it everywhere plugins/kapt/kapt-base/src/org/jetbrains/kotlin/kapt/base/incremental/javacVisitors.kt (1 line): - line 175: // TODO (gavra): explore this for constant usage tracking compiler/testData/codegen/box/wasm-new-exception-handling/catch1.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/ir/ir.actualization/src/main/kotlin/org/jetbrains/kotlin/backend/common/actualizer/ExpectActualLinker.kt (1 line): - line 264: // TODO: Check this condition after KT-74200 fix compiler/testData/codegen/box/wasm-new-exception-handling/returnNullFromInlined.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved compiler/testData/codegen/bytecodeListing/coroutines/tcoContinuation.kt (1 line): - line 1: // TODO: KT-36987 KT-37093 compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/jarfs/ZipImplementation.kt (1 line): - line 48: // TODO: consider implementing (maybe JDK-specific) optimization that avoids unnecessary copying (see KT-69758) plugins/scripting/scripting-compiler-impl/src/org/jetbrains/kotlin/scripting/definitions/ScriptCompilationConfigurationFromLegacyTemplate.kt (1 line): - line 87: // TODO: remove this exception when gradle switches to the new definitions and sets the property accordingly compiler/ir/ir.actualization/src/main/kotlin/org/jetbrains/kotlin/backend/common/actualizer/ExpectActualCollector.kt (1 line): - line 292: if (actualClasses.containsKey(classId)) return // TODO: report actual classes collision, KT-67740 compiler/testData/codegen/box/regressions/kt2246.kt (1 line): - line 4: // TODO: muted automatically, investigate should it be ran for JS or not compiler/fir/tree/src/org/jetbrains/kotlin/fir/declarations/utils/declarationAttributes.kt (1 line): - line 59: * TODO: Revisit along with KT-75301 compiler/cli/src/com/intellij/openapi/progress/impl/CoreProgressManager.java (1 line): - line 53: * TODO: Remove it once KT-81457 is fixed compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/Fir2IrTypeConverter.kt (1 line): - line 343: // TODO: candidate for removal compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/JsPropertyAccessorInlineLowering.kt (1 line): - line 38: // TODO: teach the deserializer to load constant property initializers compiler/ir/backend.jvm/lower/src/org/jetbrains/kotlin/backend/jvm/lower/DirectInvokeLowering.kt (1 line): - line 39: // TODO deal with type parameters somehow? compiler/testData/codegen/box/wasm-new-exception-handling/tryFinallyWithHandleResult.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved libraries/stdlib/js/src/org.w3c/org.w3c.fetch.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 analysis/analysis-api-fe10/src/org/jetbrains/kotlin/references/fe10/KtFe10DestructuringDeclarationEntry.kt (1 line): - line 39: val bindingContext = KtFe10ReferenceResolutionHelper.getInstance().partialAnalyze(element) //TODO: should it use full body resolve? compiler/fir/providers/src/org/jetbrains/kotlin/fir/extensions/FirDeclarationGenerationExtension.kt (1 line): - line 22: * TODO: analysis/analysis-api/testData/components/referenceShortener/shortenRange/conflicts/aliasedConstructor_vs_function.kt (1 line): - line 19: // TODO This test is not correct, see KTIJ-33500 libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/dependencyResolutionTests/StdlibVersionAlignmentTest.kt (1 line): - line 188: * TODO: Fix in KT-58999, check jvmJdkVariantsAlignment.txt for the reference compiler/testData/codegen/box/wasm-new-exception-handling/kt3894.kt (1 line): - line 3: // TODO: remove the test when KT-66906 will be resolved kotlin-native/runtime/src/main/cpp/ClockTestSupport.hpp (1 line): - line 21: // TODO: Should be reset at the start of each test. compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/JsSymbols.kt (1 line): - line 31: // TODO KT-77388 rename to `BackendWebSymbolsImpl` libraries/stdlib/jvm/runtime/kotlin/jvm/internal/TypeIntrinsics.java (1 line): - line 340: // TODO should we instead inline bytecode for this in TypeIntrinsics.kt? compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/ir/IrArrayBuilder.kt (1 line): - line 107: // TODO consider using System.arraycopy if the requested array type is non-generic. kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/ExpectToActualDefaultValueCopier.kt (1 line): - line 32: // Note: local declarations aren't required here; TODO: use more lightweight index. compiler/testData/diagnostics/testsWithJsStdLib/module/wrongCallToNonModule.kt (1 line): - line 27: // TODO: it's hard to test @JsNonModule on file from an external module compiler/frontend/src/org/jetbrains/kotlin/resolve/resolveUtil.kt (1 line): - line 17: // backingField != null -> true // TODO: in case of DeserializedPropetyDescriptor this function returns incorrect result for FO field compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/lower/calls/NumberOperatorCallsTransformer.kt (1 line): - line 169: // TODO introduce doubleToHashCode? compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/IrBuiltIns.kt (1 line): - line 114: // TODO: consider removing to get rid of descriptor-related dependencies analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KaOriginalPsiProvider.kt (1 line): - line 14: * TODO: KT-73059 compiler/util-klib-abi/src/org/jetbrains/kotlin/library/abi/impl/FlagFieldEx.kt (1 line): - line 10: /** TODO: Think how to contribute it to [FlagField]. */ plugins/jvm-abi-gen/src/org/jetbrains/kotlin/jvm/abi/JvmAbiClassBuilderInterceptor.kt (1 line): - line 109: // TODO: Investigate whether there are cases where we can remove annotation classes from the ABI. core/compiler.common.jvm/src/org/jetbrains/kotlin/builtins/jvm/JavaToKotlinClassMap.kt (1 line): - line 158: // TODO: Simplify handling KFunction and KSuspendFunction, since they all map directly to kotlin.reflect.KFunction compiler/cli/cli-js/src/org/jetbrains/kotlin/cli/js/klib/TopDownAnalyzerFacadeForJSIR.kt (1 line): - line 21: // TODO: put it in separated module `frontend.js` compiler/frontend/src/org/jetbrains/kotlin/resolve/DescriptorResolver.java (1 line): - line 1163: type = propertyDescriptor.getType(); // TODO : this maybe unknown at this point kotlin-native/runtime/src/mm/cpp/ThreadLocalStorage.hpp (1 line): - line 69: // TODO: `std::unordered_map` is probably the wrong container here. compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/expressions/IrTypeOperator.kt (1 line): - line 35: NOT_INSTANCEOF, // TODO drop and replace with `INSTANCEOF(x).not()`? libraries/tools/kotlin-maven-plugin/src/main/java/org/jetbrains/kotlin/maven/KotlinTestCompileMojo.java (1 line): - line 49: // TODO it would be nice to avoid using 2 injected fields for sources core/descriptors/src/org/jetbrains/kotlin/types/checker/NewCapturedType.kt (1 line): - line 195: * TODO: interface D, D<*, List> -> D> plugins/kotlinx-serialization/kotlinx-serialization.backend/src/org/jetbrains/kotlinx/serialization/compiler/backend/ir/IrSerializableProperties.kt (1 line): - line 162: // FIXME: since descriptor from FIR does not have classProto in it(?), this line won't do anything compiler/util-klib/src/org/jetbrains/kotlin/library/KlibSizeInfo.kt (1 line): - line 134: // TODO: add file entries here! libraries/tools/kotlin-gradle-plugin-api/src/common/kotlin/org/jetbrains/kotlin/gradle/tasks/KotlinTaskConfigs.kt (1 line): - line 243: // TODO (Yahor): should not be a part of public api compiler/testData/codegen/boxInline/reified/checkCast/simple.kt (1 line): - line 3: // TODO: Reified generics required some design to unify behavior across all backends compiler/testData/codegen/box/escapeAnalysis/test4.kt (1 line): - line 1: // TODO: check mentioned debug output of escape analyser compiler/ir/ir.tree/src/org/jetbrains/kotlin/ir/overrides/IrFakeOverrideBuilder.kt (1 line): - line 94: // TODO KT-83545 Stop deserializing fake overrides build-common/src/org/jetbrains/kotlin/incremental/protoDifferenceUtils.kt (1 line): - line 348: // TODO: Consider adding COMPANION_OBJECT_NAME and NESTED_CLASS_NAME_LIST as they are also members of a class (see compiler/util-klib/src/org/jetbrains/kotlin/library/KotlinAbiVersion.kt (1 line): - line 29: // TODO: consider inheriting this class from BinaryVersion (but that requires a module structure refactoring.) native/commonizer/src/org/jetbrains/kotlin/commonizer/utils/CommonizerMemoryTracker.kt (1 line): - line 63: System.out.writer() // TODO: add ability to supply custom writer here kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/KonanConfig.kt (1 line): - line 95: // TODO: debug info generation mode and debug/release variant selection probably requires some refactoring. compiler/cli/cli-base/src/org/jetbrains/kotlin/cli/jvm/compiler/jarfs/FastJarHandler.kt (1 line): - line 37: // TODO: consider propagating to compiler error or warning, but take into account that both javac and K1 simply ignore invalid jars in such cases build-common/src/org/jetbrains/kotlin/build/report/ICReporter.kt (1 line): - line 27: //TODO check and remove? compiler/frontend/src/org/jetbrains/kotlin/resolve/lazy/ResolveSession.java (1 line): - line 536: // TODO: get inference session, otherwise, for instance, builder inference session is lost here compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/CallCompleter.kt (1 line): - line 176: // TODO: compute generic type argument for R in the kotlin.Function supertype (KT-12963) kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/KotlinStaticData.kt (1 line): - line 91: // TODO: handle padding here core/reflection.jvm/src/kotlin/reflect/jvm/internal/calls/CallerImpl.kt (1 line): - line 45: // TODO fix 'callBy' for bound (and non-bound) inner class constructor references kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/CStubsManager.kt (1 line): - line 29: ".m" // TODO: consider managing C and Objective-C stubs separately. compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JSCompilerArgumentsConfigurator.kt (1 line): - line 43: // TODO: Should be removed (see KT-80182) native/executors/src/main/kotlin/org/jetbrains/kotlin/native/executors/XCTestBundle.kt (1 line): - line 70: // TODO: Consider also check for other incorrect symbols and escaping them or use CDATA section. compiler/testData/codegen/box/functions/dataLocalVariable.kt (1 line): - line 1: // TODO: Enable when JS backend gets support of Java class library js/js.translator/testData/box/delegateProperty/capturedLocalVarNoInline.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/model/DataFlowInfoForArgumentsImpl.java (1 line): - line 75: //TODO assert resultInfo == null core/descriptors/src/org/jetbrains/kotlin/types/AbstractTypeConstructor.kt (1 line): - line 122: // TODO: overload in AbstractTypeParameterDescriptor? compiler/backend/src/org/jetbrains/kotlin/codegen/inline/coroutines/CoroutineTransformer.kt (1 line): - line 92: // TODO: this linenumbers might not be correct and since they are used only for step-over, check them. compiler/fir/tree/src/org/jetbrains/kotlin/fir/Utils.kt (1 line): - line 385: is FirReplSnippetSymbol -> FqName.ROOT // TODO: add package FQN to snippet symbol (KT-74126) compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/checkers/ApiVersionCallChecker.kt (1 line): - line 28: // TODO: consider combining with DeprecatedCallChecker somehow compiler/frontend/src/org/jetbrains/kotlin/resolve/calls/model/ArgumentMapping.kt (1 line): - line 66: //TODO: temporary hack until status.isSuccess is not always correct libraries/stdlib/js/src/org.w3c/org.w3c.dom.url.kt (1 line): - line 9: @file:Suppress("NO_EXPLICIT_VISIBILITY_IN_API_MODE", "NO_EXPLICIT_RETURN_TYPE_IN_API_MODE") // TODO: Fix in dukat: https://github.com/Kotlin/dukat/issues/124 compiler/resolution.common/src/org/jetbrains/kotlin/resolve/calls/mpp/AbstractExpectActualChecker.kt (1 line): - line 253: // TODO: check static scope? compiler/testData/codegen/box/unsignedTypes/evaluateConstructorOfUnsignedType.kt (1 line): - line 4: // TODO: it's not clear why compilation fails for Android libraries/tools/kotlin-gradle-plugin/src/functionalTest/kotlin/org/jetbrains/kotlin/gradle/unitTests/uklibs/UklibFromKGPFragmentsGMTTests.kt (1 line): - line 236: // FIXME: ... compiler/ir/serialization.native/src/org/jetbrains/kotlin/backend/konan/serialization/loadNativeKlibs.kt (1 line): - line 53: // TODO (KT-76785): Handling of duplicated names is a workaround that needs to be removed in the future. plugins/kotlinx-serialization/kotlinx-serialization.k2/src/org/jetbrains/kotlinx/serialization/compiler/fir/SerializationFirUtils.kt (1 line): - line 193: // TODO: rewrite me according to phase contracts (KT-76122) compiler/frontend/src/org/jetbrains/kotlin/resolve/codegen/DataClassMethodGenerator.kt (1 line): - line 28: * TODO: data class with zero components gets no toString/equals/hashCode methods. This is inconsistent and should be compiler/incremental-compilation-impl/src/org/jetbrains/kotlin/incremental/multiproject/ModulesApiHistory.kt (1 line): - line 58: // TODO: shouldn't jars and klibs be tracked separately? analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KaFe10Evaluator.kt (1 line): - line 29: // TODO: how to _not_ evaluate expressions with a compilation error, e.g., uninitialized property access analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/KaSymbol.kt (1 line): - line 95: // TODO: support Java sources after KT-53669 compiler/testData/psi/k1/annotations.kt (1 line): - line 18: //TODO: accessor modifiers are lost compiler/cli/src/com/intellij/openapi/fileTypes/BinaryFileTypeDecompilers.java (1 line): - line 11: * TODO: Remove when figure something out via KT-81715 compiler/frontend/src/org/jetbrains/kotlin/descriptors/annotations/AnnotationSplitter.kt (1 line): - line 98: // TODO: probably we should do ForceResolveUtil.forceResolveAllContents(annotation) here compiler/testData/codegen/box/sam/contravariantIntersectionType.kt (1 line): - line 3: // TODO support different bytecode text templates for FIR? compiler/ir/backend.js/src/org/jetbrains/kotlin/ir/backend/js/utils/JsMainFunctionDetector.kt (1 line): - line 47: // TODO: singleOrNull looks suspicious libraries/stdlib/jvm/runtime/kotlin/text/TypeAliases.kt (1 line): - line 12: @Suppress("ACTUAL_WITHOUT_EXPECT") // TODO: some supertypes are missing core/descriptors.runtime/src/org/jetbrains/kotlin/descriptors/runtime/structure/ReflectJavaWildcardType.kt (1 line): - line 41: // TODO: support type use annotations in reflection compiler/testData/codegen/box/wasm-new-exception-handling/finally8.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/build-tools/kotlin-build-tools-api/src/main/kotlin/org/jetbrains/kotlin/buildtools/api/cri/SubtypeEntry.kt (1 line): - line 10: // TODO (KT-81585): once the CRI schema is stable, document public interfaces compiler/testData/codegen/box/annotations/parameters.kt (1 line): - line 38: // TODO: problems with KClass/Class conversion in JVM_IR, unrelated to annotation codegen compiler/testData/codegen/box/casts/functions/isFunKBig.kt (1 line): - line 3: // TODO: muted automatically, investigate should it be ran for JS or not compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/InlinePlatformCompatibilityChecker.kt (1 line): - line 39: // TODO (KT-60971): distinguish the case when one property accessor is inline and the other isn't. compiler/fir/providers/src/org/jetbrains/kotlin/fir/scopes/impl/FirClassAnySynthesizedMemberScope.kt (1 line): - line 108: // TODO: should we handle fromDeclaredScope.origin == FirDeclarationOrigin.Delegated somehow? analysis/analysis-api-standalone/src/org/jetbrains/kotlin/analysis/api/standalone/StandaloneAnalysisAPISession.kt (1 line): - line 19: // TODO: better to limit exposure? Current usages are: addExtension, jarFileSystem libraries/scripting/jvm-host-test/build.gradle.kts (1 line): - line 18: testImplementation(project(":daemon-common")) // TODO: fix import (workaround for jps build) libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/diagnostics/ToolingDiagnosticRenderingOptions.kt (1 line): - line 76: //TODO: KT-74986 Support WarningMode.Summary mode for gradle diagnostics compiler/testData/codegen/box/classes/kt1120.kt (1 line): - line 3: // TODO: Consider rewriting this test without using threads, since the issue is not about threads at all. libraries/kotlin-dom-api-compat/build.gradle.kts (1 line): - line 53: // FIXME: Remove customized publication in KT-83065 compiler/testData/codegen/bytecodeText/interfaces/noNullCheckOnThisInDefaultMethod.kt (1 line): - line 12: // TODO: KT-75168 Do not generate parameter null checks on DefaultImpls methods in JVM default modes libraries/tools/kotlin-stdlib-gen/src/templates/dsl/MemberBuilder.kt (1 line): - line 80: // TODO: comparing versions as strings, will work only up until Kotlin 1.10 or Kotlin 10.0 kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/optimizations/DCE.kt (1 line): - line 59: // TODO: Generalize somehow, not that graceful. compiler/testData/codegen/box/classLiteral/java/javaPrimitiveType.kt (1 line): - line 58: // TODO: KT-15518 compiler/backend/src/org/jetbrains/kotlin/codegen/inline/ParametersBuilder.kt (1 line): - line 81: /*TODO use Parameters instead*/ compiler/testData/codegen/box/wasm-new-exception-handling/catch5.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved compiler/frontend.java/src/org/jetbrains/kotlin/resolve/jvm/checkers/WarningAwareUpperBoundChecker.kt (1 line): - line 25: // TODO: remove this checker after removing support LV < 1.6 compiler/testData/codegen/box/wasm-new-exception-handling/try1.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved native/swift/sir-printer/src/org/jetbrains/sir/printer/SirPrinter.kt (1 line): - line 58: // FIXME: turns out, some tests rely on bridge order to be always stable kotlin-native/runtime/src/mm/cpp/ThreadData.hpp (1 line): - line 67: // TODO: These use separate locks, which is inefficient. compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/substitution/SubstitutionUtilities.kt (1 line): - line 18: // TODO When the above is resolved, org.jetbrains.kotlin.fir.types.TypeUtilsKt#captureCapturedType can be changed to use kotlin-native/runtime/src/alloc/std/cpp/ObjectAlloc.cpp (1 line): - line 25: // TODO: Check that alignment to kObjectAlignment is satisfied. libraries/stdlib/js/builtins/Throwable.kt (1 line): - line 24: // TODO: add specialized version to runtime core/descriptors.jvm/src/org/jetbrains/kotlin/load/java/DescriptorsJvmAbiUtil.java (1 line): - line 37: // TODO: deduplicate this with org.jetbrains.kotlin.resolve.jvm.annotations.hasJvmFieldAnnotation kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/lower/EnumConstructorsLowering.kt (1 line): - line 288: // TODO local (non-enum) class in enum class constructor? compiler/incremental-compilation-impl/testFixtures/org/jetbrains/kotlin/incremental/AbstractIncrementalK2JvmCompilerRunnerTest.kt (1 line): - line 33: get() = BuildLogFinder(isGradleEnabled = true, isFirEnabled = true) // TODO: investigate cases that need isGradleEnabled - the combination looks fragile js/js.translator/testData/box/delegateProperty/localVar.kt (1 line): - line 1: //TODO: reuse same tests from JVM backend compiler/testData/codegen/box/wasm-new-exception-handling/finally10.kt (1 line): - line 4: // TODO: remove the test when KT-66906 will be resolved analysis/symbol-light-classes/testFixtures/org/jetbrains/kotlin/light/classes/symbol/base/AbstractSymbolLightClassesTestBase.kt (1 line): - line 154: // TODO: KT-78534 JavaElementFinder: support script search js/js.translator/testData/typescript-export/js/js-static/js-static.kt (1 line): - line 12: // TODO: we should discuss this moment compiler/light-classes/src/org/jetbrains/kotlin/asJava/classes/LightClassesLazyCreator.kt (1 line): - line 46: // TODO: NOTE: acquire lock for a several seconds to avoid dead-lock via resolve is a WORKAROUND js/js.translator/testData/box/crossModuleRefIR/topLevelProperty.kt (1 line): - line 16: // TODO: annotations like this are not serialized properly. Uncomment after KT-14529 gets fixed js/js.parser/src/main/antlr/JavaScriptParser.g4 (1 line): - line 444: // TODO: must be `= AssignmentExpression` and we have such label alredy but it doesn't respect the specification. kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/Boxing.kt (1 line): - line 52: // TODO: functions below are used for ObjCExport and CAdapterGenerator, move and rename them correspondingly. compiler/ir/ir.interpreter/src/org/jetbrains/kotlin/ir/interpreter/IrInterpreterConfiguration.kt (1 line): - line 18: // TODO maybe create some sort of builder compiler/javac-wrapper/src/org/jetbrains/kotlin/javac/wrappers/trees/TreeBasedAnnotation.kt (1 line): - line 68: // TODO: do not run resolve here