Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions source_gen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## 1.3.1-dev

## 1.3.0

* Add support for `build_extensions` configuration of builders producing multiple files. Eg:
`build_extensions: { '.dart': ['.stub.dart', '.web.dart', '.vm.dart'] }`
* Add support for `build_extensions` configuration of builders producing
multiple files. Eg: `build_extensions: { '.dart': ['.stub.dart', '.web.dart',
'.vm.dart'] }`

## 1.2.7

Expand Down Expand Up @@ -39,6 +42,7 @@
represents their type. Previously we checked this pattern only for enums,
however there are enum-like usages in classes which are not enums.
- Allow the latest version of `package:analyzer`.
>>>>>>> master
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>>>>>>> master

## 1.2.0

Expand Down
9 changes: 8 additions & 1 deletion source_gen/lib/src/generator_for_annotation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,14 @@ import 'type_checker.dart';
/// extension, are not searched for annotations. To operate on, for instance,
/// annotated fields of a class ensure that the class itself is annotated with
/// [T] and use the [Element] to iterate over fields. The [TypeChecker] utility
/// may be helpful to check which elements have a given annotation.
/// may be helpful to check which elements have a given annotation if the
/// generator should further filter it's target based on annotations.
///
/// If the annotation type cannot be imported on the Dart VM, for example if it
/// imports `dart:html` or `dart:ui`, then the default behavior of using
/// `TypeChecker.fromRuntime` is not feasible. In these cases extend
/// `GeneratorForAnnotation<void>` and override the [typeChecker] member with a
/// checker matching the annotation type.
abstract class GeneratorForAnnotation<T> extends Generator {
const GeneratorForAnnotation();

Expand Down
2 changes: 1 addition & 1 deletion source_gen/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: source_gen
version: 1.3.0
version: 1.3.1-dev
description: >-
Source code generation builders and utilities for the Dart build system
repository: https://github.com/dart-lang/source_gen/tree/master/source_gen
Expand Down