Files
sdk/pkg/analysis_server
Konstantin Shcheglov ad73b67f0d CQ. Fix NPE in DartUnitOccurrencesComputerVisitor when unresolved import prefix.
Saw a crash in logs:

  Null check operator used on a null value

  package:analysis_server/src/domains/analysis/occurrences_dart.dart 253:32  DartUnitOccurrencesComputerVisitor.visitImportPrefixReference
  package:analyzer/src/dart/ast/ast.dart 13353:15                            ImportPrefixReferenceImpl.accept
  package:analyzer/src/dart/ast/ast.dart 16897:19                            NamedTypeImpl.visitChildren
  package:analyzer/dart/ast/visitor.g.dart 474:10                            GeneralizingAstVisitor.visitNode
  package:analyzer/dart/ast/visitor.g.dart 687:50                            GeneralizingAstVisitor.visitTypeAnnotation
  package:analyzer/dart/ast/visitor.g.dart 456:40                            GeneralizingAstVisitor.visitNamedType
  package:analysis_server/src/domains/analysis/occurrences_dart.dart 282:11  DartUnitOccurrencesComputerVisitor.visitNamedType
Change-Id: I2b06026dad093187c74b4e1b6c7371aaf648a480
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/456121
Reviewed-by: Samuel Rawlins <srawlins@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
2025-10-20 16:32:15 -07:00
..
2025-10-10 11:30:11 -07:00
2025-10-10 09:50:30 -07:00
2025-09-03 12:56:29 -07:00

analysis_server

A long-running process that provides analysis results to other tools.

The analysis server is designed to provide on-going analysis of one or more code bases as those code bases are changing.

Using the server

The analysis server is not intended to be used stand-alone, and therefore does not have a human-friendly user interface.

Clients (typically tools, such as an editor) are expected to run the analysis server in a separate process and communicate with it using a JSON protocol. The original protocol is specified in the file analysis_server/doc/api.html and Language Server Protocol support is documented in tool/lsp_spec/README.md.

Features and bugs

Please file feature requests and bugs at the issue tracker.