Skip to content

Commit

Permalink
Add TODO for future direction in the value factory index
Browse files Browse the repository at this point in the history
  • Loading branch information
jbartok committed Feb 19, 2025
1 parent d59b830 commit fab2d86
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ private class ValueFactoryIndex(storeEntry: DocumentStoreEntry) {
indexValueFactories(schema, schema.topLevelReceiverType, "")
}

// TODO: currently this index contains all value factories from the whole schema
// going forward we should make it take into account which value factory is available
// in which block, because only the ones defined at the top level are available everywhere

fun factoriesForProperty(fqName: FqName): List<LabelAndInsertText>? = index[fqName]

private fun indexValueFactories(analysisSchema: AnalysisSchema, type: DataClass, namePrefix: String): Map<FqName, List<LabelAndInsertText>> {
Expand Down

0 comments on commit fab2d86

Please sign in to comment.