Exception in ConvertToIfCaseStatementChain #52146
Labels
analyzer-assist
Issues with analysis server assists
analyzer-server
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
Bad state: No element
at ListBase.first(dart:collection)
at ConvertToIfCaseStatementChain._writeStatements(convert_to_if_case_statement_chain.dart:79)
at ConvertToIfCaseStatementChain.compute..(convert_to_if_case_statement_chain.dart:61)
at DartFileEditBuilderImpl.addReplacement.(change_builder_dart.dart:1453)
at FileEditBuilderImpl.addReplacement(change_builder_core.dart:515)
at DartFileEditBuilderImpl.addReplacement(change_builder_dart.dart:1452)
at ConvertToIfCaseStatementChain.compute.(convert_to_if_case_statement_chain.dart:42)
at ChangeBuilderImpl.addDartFileEdit(change_builder_core.dart:151)
at (async)
at ConvertToIfCaseStatementChain.compute(convert_to_if_case_statement_chain.dart:41)
at (async)
at AssistProcessor._addFromProducers.compute(assist_internal.dart:213)
at (async)
at AssistProcessor._addFromProducers(assist_internal.dart:231)
at (async)
at AssistProcessor.compute(assist_internal.dart:182)
at (async)
at DartCodeActionsProducer.getAssistActions(dart.dart:118)
at (async)
at OperationPerformanceImpl.runAsync(operation_performance.dart:172)
at (async)
at CodeActionHandler.handle(handler_code_actions.dart:210)
at (async)
at ServerStateMessageHandler.handleMessage(handlers.dart:267)
at (async)
at LspAnalysisServer._handleRequestMessage(lsp_analysis_server.dart:989)
at (async)
at LspAnalysisServer.handleMessage..(lsp_analysis_server.dart:454)
at (async)
at OperationPerformanceImpl.runAsync(operation_performance.dart:172)
at (async)
at LspAnalysisServer.handleMessage.(lsp_analysis_server.dart:437)
The text was updated successfully, but these errors were encountered: