front_end 0.1.7

  • README.md
  • Installing
  • Versions
  • 54

Front end for Dart

This package provides a low-level API for use by compiler back ends that wish to implement the Dart language. It is intended for eventual use by dev_compiler, dart2js, and the Dart VM. In addition, it will share implementation details with the analyzer package--this will be accomplished by having the analyzer package import (and re-export) parts of this package's private implementation.

End-users should use the [dartanalyzer][analyzercli] command-line tool to analyze their Dart code.

Integrators that want to write tools that analyze Dart code should use the [analyzer] package.

Note: The APIs in this package are in an early state; developers should be careful about depending on this package. In particular, there is no semver contract for release versions of this package. Please depend directly on individual versions.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  front_end: ^0.1.7

2. Install it

You can install packages from the command line:

with pub:


$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

Version Uploaded Documentation Archive
0.1.7 Nov 29, 2018 Go to the documentation of front_end 0.1.7 Download front_end 0.1.7 archive
0.1.6+9 Dec 11, 2018 Go to the documentation of front_end 0.1.6+9 Download front_end 0.1.6+9 archive
0.1.6+8 Nov 29, 2018 Go to the documentation of front_end 0.1.6+8 Download front_end 0.1.6+8 archive
0.1.6+7 Nov 28, 2018 Go to the documentation of front_end 0.1.6+7 Download front_end 0.1.6+7 archive
0.1.6+6 Nov 21, 2018 Go to the documentation of front_end 0.1.6+6 Download front_end 0.1.6+6 archive
0.1.6+5 Nov 14, 2018 Go to the documentation of front_end 0.1.6+5 Download front_end 0.1.6+5 archive
0.1.6+4 Nov 14, 2018 Go to the documentation of front_end 0.1.6+4 Download front_end 0.1.6+4 archive
0.1.6+3 Nov 6, 2018 Go to the documentation of front_end 0.1.6+3 Download front_end 0.1.6+3 archive
0.1.6+2 Nov 2, 2018 Go to the documentation of front_end 0.1.6+2 Download front_end 0.1.6+2 archive
0.1.6+1 Oct 25, 2018 Go to the documentation of front_end 0.1.6+1 Download front_end 0.1.6+1 archive

All 33 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
96
Health:
Code health derived from static analysis. [more]
0
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
30
Overall:
Weighted score of the above. [more]
54
Learn more about scoring.

We analyzed this package on Dec 11, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.7

Platforms

Detected platforms:

Low code quality prevents platform classification.

Health issues and suggestions

Fix lib/src/fasta/testing/scanner_chain.dart. (-98.66 points)

Analysis of lib/src/fasta/testing/scanner_chain.dart failed with 15 errors, including:

line 7 col 8: Target of URI doesn't exist: 'package:testing/testing.dart'.

line 29 col 20: Classes can only extend other classes.

line 29 col 20: Undefined class 'Step'.

line 29 col 25: The name 'TestDescription' isn't a type so it can't be used as a type argument.

line 29 col 52: The name 'ChainContext' isn't a type so it can't be used as a type argument.

Fix lib/src/fasta/testing/kernel_chain.dart. (-95.78 points)

Analysis of lib/src/fasta/testing/kernel_chain.dart failed with 11 errors, including:

line 28 col 8: Target of URI doesn't exist: 'package:testing/testing.dart'.

line 57 col 12: The method 'pass' isn't defined for the class 'Print'.

line 84 col 16: The method 'pass' isn't defined for the class 'Verify'.

line 105 col 14: The method 'pass' isn't defined for the class 'TypeCheck'.

line 175 col 16: The method 'pass' isn't defined for the class 'MatchExpectation'.

Fix lib/src/base/errors.dart. (-1 points)

Analysis of lib/src/base/errors.dart reported 2 hints:

line 127 col 11: Always override hashCode if overriding ==.

line 235 col 11: Always override hashCode if overriding ==.

Fix additional 5 files with analysis or formatting issues. (-2 points)

Additional issues in the following files:

  • lib/src/api_prototype/terminal_color_support.dart (1 hint)
  • lib/src/fasta/colors.dart (1 hint)
  • lib/src/fasta/crash.dart (1 hint)
  • lib/src/fasta/type_inference/type_schema.dart (1 hint)
  • lib/src/fasta/scanner/scanner_main.dart (Run dartfmt to format lib/src/fasta/scanner/scanner_main.dart.)

Maintenance issues and suggestions

Fix platform conflicts. (-20 points)

Low code quality prevents platform classification.

Maintain CHANGELOG.md. (-20 points)

Changelog entries help clients to follow the progress in your code.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use front_end.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0-dev.5.0 <3.0.0
charcode ^1.1.1 1.1.2
convert ^2.0.1 2.0.2
crypto ^2.0.2 2.0.6
kernel 0.3.7 0.3.7
meta ^1.1.1 1.1.6
package_config ^1.0.1 1.0.5
path ^1.3.9 1.6.2
source_span ^1.2.3 1.4.1
yaml ^2.1.12 2.1.15
Transitive dependencies
collection 1.14.11
string_scanner 1.0.4
typed_data 1.1.6
Dev dependencies
analyzer 0.34.0
args >=0.13.0 <2.0.0 1.5.1
build_integration
dart_style ^1.0.7
json_rpc_2 ^2.0.9
mockito ^2.0.2
stream_channel ^1.6.1
test ^1.3.4
test_reflective_loader ^0.1.0
web_socket_channel ^1.0.4