Skip to content

Commit

Permalink
[Compiler plugin] Fix another exception triggered by incomplete code …
Browse files Browse the repository at this point in the history
…in IDE
  • Loading branch information
koperagen committed Jul 18, 2024
1 parent 65c53e0 commit 3590f91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ fun KotlinTypeFacade.pluginDataFrameSchema(schemaTypeArg: ConeTypeProjection): P
}

fun KotlinTypeFacade.pluginDataFrameSchema(coneClassLikeType: ConeClassLikeType): PluginDataFrameSchema {
val symbol = coneClassLikeType.toSymbol(session) as FirRegularClassSymbol
val symbol = coneClassLikeType.toSymbol(session) as? FirRegularClassSymbol ?: return PluginDataFrameSchema(emptyList())
val declarationSymbols = if (symbol.isLocal && symbol.resolvedSuperTypes.firstOrNull() != session.builtinTypes.anyType.type) {
val rootSchemaSymbol = symbol.resolvedSuperTypes.first().toSymbol(session) as FirRegularClassSymbol
rootSchemaSymbol.declaredMemberScope(session, FirResolvePhase.DECLARATIONS)
Expand Down

0 comments on commit 3590f91

Please sign in to comment.