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.
Use this package as a library
1. Depend on it
Add this to your package's pubspec.yaml file:
dependencies: front_end: ^0.1.0-alpha.2
2. Install it
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
3. Import it
Now in your Dart code, you can use:
import 'package:front_end/compilation_error.dart'; import 'package:front_end/compiler_options.dart'; import 'package:front_end/dependency_grapher.dart'; import 'package:front_end/file_system.dart'; import 'package:front_end/incremental_kernel_generator.dart'; import 'package:front_end/incremental_resolved_ast_generator.dart'; import 'package:front_end/kernel_generator.dart'; import 'package:front_end/memory_file_system.dart'; import 'package:front_end/physical_file_system.dart'; import 'package:front_end/resolved_ast_generator.dart'; import 'package:front_end/summary_generator.dart';