dart_parser_helper 0.1.0 copy "dart_parser_helper: ^0.1.0" to clipboard
dart_parser_helper: ^0.1.0 copied to clipboard

Dart parser helper is a wrapper over the Dart SDK analyzer parser

0
likes
70/ 160
pub points
24
downloads

We analyzed this package 23 hours ago, and awarded it 70 pub points (of a possible 160):

failed
Follow Dart file conventions
20 / 30trigger folding of the section

0/10 points: Provide a valid pubspec.yaml

Failed to verify repository URL.

Please provide a valid repository URL in pubspec.yaml, such that:

  • repository can be cloned,
  • a clone of the repository contains a pubspec.yaml, which:,
    • contains name: dart_parser_helper,
    • contains a version property, and,
    • does not contain a publish_to property.

pubspec.yaml from the repository has no repository or homepage URL.

5/5 points: Provide a valid README.md

5/5 points: Provide a valid CHANGELOG.md

10/10 points: Use an OSI-approved license

Detected license: BSD-3-Clause.

failed
Provide documentation
10 / 20trigger folding of the section

10/10 points: 20% or more of the public API has dartdoc comments

1242 out of 2651 API elements (46.9 %) have documentation comments.

Some symbols that are missing documentation: dart_parser_helper, dart_parser_helper.AstVisitor.visitAdjacentStrings, dart_parser_helper.AstVisitor.visitAnnotation, dart_parser_helper.AstVisitor.visitArgumentList, dart_parser_helper.AstVisitor.visitAsExpression.

0/10 points: Package has an example

No example found.

See package layout guidelines on how to add an example.

failed
Platform support
20 / 20trigger folding of the section

20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)

  • ✓ Android

  • ✓ iOS

  • ✓ Windows

  • ✓ Linux

  • ✓ macOS

These platforms are not supported:

Package not compatible with platform Web

Because:

  • package:dart_parser_helper/dart_parser_helper.dart that imports:
  • package:analyzer/dart/ast/visitor.dart that imports:
  • package:analyzer/dart/ast/ast.dart that imports:
  • package:analyzer/src/dart/ast/ast.dart that imports:
  • package:analyzer/src/utilities/extensions/element.dart that imports:
  • package:analyzer/src/dart/element/member.dart that imports:
  • package:analyzer/src/generated/utilities_dart.dart that imports:
  • package:analyzer/src/dart/element/element.dart that imports:
  • package:analyzer/src/summary2/reference.dart that imports:
  • package:analyzer/dart/element/element2.dart that imports:
  • package:analyzer/src/dart/resolver/scope.dart that imports:
  • package:analyzer/src/generated/engine.dart that imports:
  • package:analyzer/src/dart/analysis/analysis_options.dart that imports:
  • package:analyzer/src/task/options.dart that imports:
  • package:analyzer/src/plugin/options.dart that imports:
  • package:analyzer/error/listener.dart that imports:
  • package:analyzer/src/dart/element/type.dart that imports:
  • package:analyzer/src/dart/element/type_system.dart that imports:
  • package:analyzer/src/generated/inference_log.dart that imports:
  • package:analyzer/src/generated/resolver.dart that imports:
  • package:analyzer/src/generated/variable_type_provider.dart that imports:
  • package:analyzer/dart/element/type.dart that imports:
  • package:analyzer/dart/element/element.dart that imports:
  • package:analyzer/src/dart/constant/evaluation.dart that imports:
  • package:analyzer/src/dart/element/type_algebra.dart that imports:
  • package:analyzer/src/summary2/record_type_builder.dart that imports:
  • package:analyzer/src/dart/element/type_visitor.dart that imports:
  • package:analyzer/src/summary2/named_type_builder.dart that imports:
  • package:analyzer/src/summary2/link.dart that imports:
  • package:analyzer/src/summary2/top_level_inference.dart that imports:
  • package:analyzer/src/summary2/library_builder.dart that imports:
  • package:analyzer/src/summary2/metadata_resolver.dart that imports:
  • package:analyzer/src/summary2/ast_resolver.dart that imports:
  • package:analyzer/dart/analysis/analysis_options.dart that imports:
  • package:analyzer/src/lint/linter.dart that imports:
  • package:analyzer/src/workspace/workspace.dart that imports:
  • package:analyzer/src/workspace/blaze.dart that imports:
  • package:analyzer/src/workspace/blaze_watcher.dart that imports:
  • package:watcher/watcher.dart that imports:
  • package:watcher/src/file_watcher/polling.dart that imports:
  • package:watcher/src/stat.dart that imports:
  • dart:io

0/0 points: WASM compatibility

Unable to detect compatibility with runtime wasm, and this package will not be rewarded full points in a future version of the scoring model.

See https://dart.dev/web/wasm for details.

failed
Pass static analysis
0 / 50trigger folding of the section

0/50 points: code has no errors, warnings, lints, or formatting issues

ERROR: The named parameter 'languageVersion' is required, but there's no corresponding argument.

lib/dart_parser_helper.dart:83:18

   ╷
83 │   final parser = Parser(
   │                  ^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/dart_parser_helper.dart

ERROR: The class 'AnalysisError' doesn't have an unnamed constructor.

lib/dart_parser_helper.dart:94:19

   ╷
94 │     final error = AnalysisError(
   │                   ^^^^^^^^^^^^^
   ╵

To reproduce make sure you are using the lints_core and run dart analyze lib/dart_parser_helper.dart

failed
Support up-to-date dependencies
20 / 40trigger folding of the section

10/10 points: All of the package dependencies are supported in the latest version

Package Constraint Compatible Latest
analyzer any 7.1.0 7.1.0
source_span any 1.10.1 1.10.1
Transitive dependencies
Package Constraint Compatible Latest
_fe_analyzer_shared - 78.0.0 78.0.0
_macros - 0.3.3 0.3.3
async - 2.12.0 2.12.0
collection - 1.19.1 1.19.1
convert - 3.1.2 3.1.2
crypto - 3.0.6 3.0.6
file - 7.0.1 7.0.1
glob - 2.1.2 2.1.2
macros - 0.1.3-main.0 0.1.3-main.0
meta - 1.16.0 1.16.0
package_config - 2.1.1 2.1.1
path - 1.9.1 1.9.1
pub_semver - 2.1.5 2.1.5
string_scanner - 1.4.1 1.4.1
term_glyph - 1.2.2 1.2.2
typed_data - 1.4.0 1.4.0
watcher - 1.1.1 1.1.1
yaml - 3.1.3 3.1.3

To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides.

10/10 points: Package supports latest stable Dart and Flutter SDKs

0/20 points: Compatible with dependency constraint lower bounds

downgrade analysis failed failed with 3 errors:

  • URI_HAS_NOT_BEEN_GENERATED - lib/dart_parser_helper.dart:8:8 - Target of URI hasn't been generated: 'package:analyzer/src/analysis_options/error/option_codes.g.dart'.
  • UNDEFINED_NAMED_PARAMETER - lib/dart_parser_helper.dart:87:5 - The named parameter 'lineInfo' isn't defined.
  • UNDEFINED_IDENTIFIER - lib/dart_parser_helper.dart:98:9 - Undefined name 'AnalysisOptionsErrorCode'.

Run dart pub downgrade and then dart analyze to reproduce the above problem.

You may run dart pub upgrade --tighten to update your dependency constraints, see dart.dev/go/downgrade-testing for details.

Analyzed with Pana 0.22.17, Dart 3.6.0.

Check the analysis log for details.

0
likes
70
points
24
downloads

Publisher

unverified uploader

Weekly Downloads

Dart parser helper is a wrapper over the Dart SDK analyzer parser

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

analyzer, source_span

More

Packages that depend on dart_parser_helper