source_transformer 0.1.1 copy "source_transformer: ^0.1.1" to clipboard
source_transformer: ^0.1.1 copied to clipboard

discontinued
Dart 1 only

Patterns for easily re-writing source code

source_transformer #

NOTE: This project is not an official Google or dart-lang project

This package is currently in development

Not to be confused with code_transformers or source_gen, source_transformer is a library for building and applying modifications to existing files, primarily .dart source files, and to commit the results of those changes.

Example uses:

  • Writing tools to automatically upgrade deprecated APIs
  • Writing tools to perform mass refactorings
  • Writing tools to perform macros as part of writing new code

An example of creating a binary that removes duplicate imports/exports:

import 'package:source_transformer/source_transformer.dart';

main(List<String> paths) async {
  await runTransformer(const DeduplicateDirectives(), paths);
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Patterns for easily re-writing source code

Repository
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

analyzer, collection, meta, quiver, source_span

More

Packages that depend on source_transformer