Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Dart 2.x ready, works with reflectable
- Loading branch information
1 parent
feb25a7
commit ab012d3
Showing
22 changed files
with
338 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
# ------------------------------------------------------------------------------ | |||
# Config for Analyzer | |||
# More: https://pub.dartlang.org/packages/analyzer | |||
# | |||
# Analyzer options: | |||
# https://www.dartlang.org/guides/language/analysis-options | |||
# | |||
|
|||
analyzer: | |||
strong-mode: true | |||
|
|||
# Exclude wegen https://github.com/dart-lang/sdk/issues/26420 | |||
# und https://github.com/dart-lang/test/issues/436 | |||
# exclude: | |||
# - test/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
// This file has been generated by the reflectable package. | |||
// https://github.com/dart-lang/reflectable. | |||
|
|||
import "dart:core"; | |||
import 'package:mustache/mustache.dart' as prefix0; | |||
|
|||
// ignore:unused_import | |||
import "package:reflectable/mirrors.dart" as m; | |||
// ignore:unused_import | |||
import "package:reflectable/src/reflectable_transformer_based.dart" as r; | |||
// ignore:unused_import | |||
import "package:reflectable/reflectable.dart" show isTransformed; | |||
|
|||
final _data = {const prefix0.MustacheMirrorsUsedAnnotation(): new r.ReflectorData(<m.TypeMirror>[], <m.DeclarationMirror>[], <m.ParameterMirror>[], <Type>[], 0, {}, {}, null, [])}; | |||
|
|||
|
|||
final _memberSymbolMap = null; | |||
|
|||
initializeReflectable() { | |||
if (!isTransformed) { | |||
throw new UnsupportedError( | |||
"The transformed code is running with the untransformed " | |||
"reflectable package. Remember to set your package-root to " | |||
"'build/.../packages'."); | |||
} | |||
r.data = _data; | |||
r.memberSymbolMap = _memberSymbolMap; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
// This file has been generated by the reflectable package. | |||
// https://github.com/dart-lang/reflectable. | |||
|
|||
import "dart:core"; | |||
import 'main.dart' as prefix1; | |||
import 'package:mustache/mustache.dart' as prefix0; | |||
|
|||
// ignore:unused_import | |||
import "package:reflectable/mirrors.dart" as m; | |||
// ignore:unused_import | |||
import "package:reflectable/src/reflectable_transformer_based.dart" as r; | |||
// ignore:unused_import | |||
import "package:reflectable/reflectable.dart" show isTransformed; | |||
|
|||
final _data = {const prefix0.MustacheMirrorsUsedAnnotation(): new r.ReflectorData(<m.TypeMirror>[new r.NonGenericClassMirrorImpl(r"Version", r".Version", 7, 0, const prefix0.MustacheMirrorsUsedAnnotation(), const <int>[0, 1, 7], const <int>[8, 9, 10, 11, 12, 5, 6], const <int>[], -1, {}, {}, {r"": (b) => (major, minor) => b ? new prefix1.Version(major, minor) : null}, -1, -1, const <int>[-1], null, null), new r.NonGenericClassMirrorImpl(r"DartLang", r".DartLang", 7, 1, const prefix0.MustacheMirrorsUsedAnnotation(), const <int>[2, 3, 4, 16], const <int>[8, 9, 10, 11, 12, 13, 14, 15], const <int>[], -1, {}, {}, {r"": (b) => (name, version, message) => b ? new prefix1.DartLang(name, version, message) : null}, -1, -1, const <int>[-1], null, null)], <m.DeclarationMirror>[new r.VariableMirrorImpl(r"major", 33797, 0, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 2, 2, null), new r.VariableMirrorImpl(r"minor", 33797, 0, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 2, 2, null), new r.VariableMirrorImpl(r"name", 33797, 1, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 3, 3, null), new r.VariableMirrorImpl(r"version", 33797, 1, const prefix0.MustacheMirrorsUsedAnnotation(), 0, 0, 0, null), new r.VariableMirrorImpl(r"message", 33797, 1, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 3, 3, null), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 0, 2, 2, 5), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 1, 2, 2, 6), new r.MethodMirrorImpl(r"", 0, 0, -1, 0, 0, const <int>[0, 1], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"==", 131074, null, -1, 4, 4, const <int>[2], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"toString", 131074, null, -1, 3, 3, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"noSuchMethod", 65538, null, null, null, null, const <int>[3], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"hashCode", 131075, null, -1, 2, 2, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"runtimeType", 131075, null, -1, 5, 5, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 2, 3, 3, 13), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 3, 0, 0, 14), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 4, 3, 3, 15), new r.MethodMirrorImpl(r"", 0, 1, -1, 1, 1, const <int>[4, 5, 6], const prefix0.MustacheMirrorsUsedAnnotation(), null)], <m.ParameterMirror>[new r.ParameterMirrorImpl(r"major", 32774, 7, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 2, 2, null, null, null), new r.ParameterMirrorImpl(r"minor", 32774, 7, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 2, 2, null, null, null), new r.ParameterMirrorImpl(r"other", 16390, 8, const prefix0.MustacheMirrorsUsedAnnotation(), null, null, null, null, null, null), new r.ParameterMirrorImpl(r"invocation", 32774, 10, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 6, 6, null, null, null), new r.ParameterMirrorImpl(r"name", 32774, 16, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 3, 3, null, null, null), new r.ParameterMirrorImpl(r"version", 32774, 16, const prefix0.MustacheMirrorsUsedAnnotation(), 0, 0, 0, null, null, null), new r.ParameterMirrorImpl(r"message", 32774, 16, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 3, 3, null, null, null)], <Type>[prefix1.Version, prefix1.DartLang, int, String, bool, Type, Invocation], 2, {r"==": (dynamic instance) => (x) => instance == x, r"toString": (dynamic instance) => instance.toString, r"noSuchMethod": (dynamic instance) => instance.noSuchMethod, r"hashCode": (dynamic instance) => instance.hashCode, r"runtimeType": (dynamic instance) => instance.runtimeType, r"major": (dynamic instance) => instance.major, r"minor": (dynamic instance) => instance.minor, r"name": (dynamic instance) => instance.name, r"version": (dynamic instance) => instance.version, r"message": (dynamic instance) => instance.message}, {}, null, [])}; | |||
|
|||
|
|||
final _memberSymbolMap = null; | |||
|
|||
initializeReflectable() { | |||
if (!isTransformed) { | |||
throw new UnsupportedError( | |||
"The transformed code is running with the untransformed " | |||
"reflectable package. Remember to set your package-root to " | |||
"'build/.../packages'."); | |||
} | |||
r.data = _data; | |||
r.memberSymbolMap = _memberSymbolMap; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
// This file has been generated by the reflectable package. | |||
// https://github.com/dart-lang/reflectable. | |||
|
|||
import "dart:core"; | |||
import 'package:mustache/mustache.dart' as prefix0; | |||
|
|||
// ignore:unused_import | |||
import "package:reflectable/mirrors.dart" as m; | |||
// ignore:unused_import | |||
import "package:reflectable/src/reflectable_transformer_based.dart" as r; | |||
// ignore:unused_import | |||
import "package:reflectable/reflectable.dart" show isTransformed; | |||
|
|||
final _data = {const prefix0.MustacheMirrorsUsedAnnotation(): new r.ReflectorData(<m.TypeMirror>[], <m.DeclarationMirror>[], <m.ParameterMirror>[], <Type>[], 0, {}, {}, null, [])}; | |||
|
|||
|
|||
final _memberSymbolMap = null; | |||
|
|||
initializeReflectable() { | |||
if (!isTransformed) { | |||
throw new UnsupportedError( | |||
"The transformed code is running with the untransformed " | |||
"reflectable package. Remember to set your package-root to " | |||
"'build/.../packages'."); | |||
} | |||
r.data = _data; | |||
r.memberSymbolMap = _memberSymbolMap; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
// This file has been generated by the reflectable package. | |||
// https://github.com/dart-lang/reflectable. | |||
|
|||
import "dart:core"; | |||
import 'package:mustache/mustache.dart' as prefix0; | |||
|
|||
// ignore:unused_import | |||
import "package:reflectable/mirrors.dart" as m; | |||
// ignore:unused_import | |||
import "package:reflectable/src/reflectable_transformer_based.dart" as r; | |||
// ignore:unused_import | |||
import "package:reflectable/reflectable.dart" show isTransformed; | |||
|
|||
final _data = {const prefix0.MustacheMirrorsUsedAnnotation(): new r.ReflectorData(<m.TypeMirror>[], <m.DeclarationMirror>[], <m.ParameterMirror>[], <Type>[], 0, {}, {}, null, [])}; | |||
|
|||
|
|||
final _memberSymbolMap = null; | |||
|
|||
initializeReflectable() { | |||
if (!isTransformed) { | |||
throw new UnsupportedError( | |||
"The transformed code is running with the untransformed " | |||
"reflectable package. Remember to set your package-root to " | |||
"'build/.../packages'."); | |||
} | |||
r.data = _data; | |||
r.memberSymbolMap = _memberSymbolMap; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,28 @@ | |||
// This file has been generated by the reflectable package. | |||
// https://github.com/dart-lang/reflectable. | |||
|
|||
import "dart:core"; | |||
import 'package:mustache/mustache.dart' as prefix0; | |||
|
|||
// ignore:unused_import | |||
import "package:reflectable/mirrors.dart" as m; | |||
// ignore:unused_import | |||
import "package:reflectable/src/reflectable_transformer_based.dart" as r; | |||
// ignore:unused_import | |||
import "package:reflectable/reflectable.dart" show isTransformed; | |||
|
|||
final _data = {const prefix0.MustacheMirrorsUsedAnnotation(): new r.ReflectorData(<m.TypeMirror>[], <m.DeclarationMirror>[], <m.ParameterMirror>[], <Type>[], 0, {}, {}, null, [])}; | |||
|
|||
|
|||
final _memberSymbolMap = null; | |||
|
|||
initializeReflectable() { | |||
if (!isTransformed) { | |||
throw new UnsupportedError( | |||
"The transformed code is running with the untransformed " | |||
"reflectable package. Remember to set your package-root to " | |||
"'build/.../packages'."); | |||
} | |||
r.data = _data; | |||
r.memberSymbolMap = _memberSymbolMap; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
// This file has been generated by the reflectable package. | |||
// https://github.com/dart-lang/reflectable. | |||
|
|||
import "dart:core"; | |||
import 'mustache_test.dart' as prefix1; | |||
import 'package:mustache/mustache.dart' as prefix0; | |||
|
|||
// ignore:unused_import | |||
import "package:reflectable/mirrors.dart" as m; | |||
// ignore:unused_import | |||
import "package:reflectable/src/reflectable_transformer_based.dart" as r; | |||
// ignore:unused_import | |||
import "package:reflectable/reflectable.dart" show isTransformed; | |||
|
|||
final _data = {const prefix0.MustacheMirrorsUsedAnnotation(): new r.ReflectorData(<m.TypeMirror>[new r.NonGenericClassMirrorImpl(r"Foo", r"mustache_test.Foo", 7, 0, const prefix0.MustacheMirrorsUsedAnnotation(), const <int>[0, 1, 2, 7], const <int>[8, 9, 10, 11, 12, 2, 3, 4, 5, 6], const <int>[], -1, {}, {}, {r"": (b) => () => b ? new prefix1.Foo() : null}, -1, -1, const <int>[-1], null, null)], <m.DeclarationMirror>[new r.VariableMirrorImpl(r"bar", 32773, 0, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 1, 1, null), new r.VariableMirrorImpl(r"lambda", 32773, 0, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 2, 2, null), new r.MethodMirrorImpl(r"jim", 65538, 0, null, null, null, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 0, 1, 1, 3), new r.ImplicitSetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 0, 1, 1, 4), new r.ImplicitGetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 1, 2, 2, 5), new r.ImplicitSetterMirrorImpl(const prefix0.MustacheMirrorsUsedAnnotation(), 1, 2, 2, 6), new r.MethodMirrorImpl(r"", 64, 0, -1, 0, 0, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"==", 131074, null, -1, 3, 3, const <int>[2], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"toString", 131074, null, -1, 1, 1, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"noSuchMethod", 65538, null, null, null, null, const <int>[3], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"hashCode", 131075, null, -1, 4, 4, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null), new r.MethodMirrorImpl(r"runtimeType", 131075, null, -1, 5, 5, const <int>[], const prefix0.MustacheMirrorsUsedAnnotation(), null)], <m.ParameterMirror>[new r.ParameterMirrorImpl(r"_bar", 32870, 4, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 1, 1, null, null, null), new r.ParameterMirrorImpl(r"_lambda", 32870, 6, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 2, 2, null, null, null), new r.ParameterMirrorImpl(r"other", 16390, 8, const prefix0.MustacheMirrorsUsedAnnotation(), null, null, null, null, null, null), new r.ParameterMirrorImpl(r"invocation", 32774, 10, const prefix0.MustacheMirrorsUsedAnnotation(), -1, 6, 6, null, null, null)], <Type>[prefix1.Foo, String, Function, bool, int, Type, Invocation], 1, {r"==": (dynamic instance) => (x) => instance == x, r"toString": (dynamic instance) => instance.toString, r"noSuchMethod": (dynamic instance) => instance.noSuchMethod, r"hashCode": (dynamic instance) => instance.hashCode, r"runtimeType": (dynamic instance) => instance.runtimeType, r"jim": (dynamic instance) => instance.jim, r"bar": (dynamic instance) => instance.bar, r"lambda": (dynamic instance) => instance.lambda}, {r"bar=": (dynamic instance, value) => instance.bar = value, r"lambda=": (dynamic instance, value) => instance.lambda = value}, null, [])}; | |||
|
|||
|
|||
final _memberSymbolMap = null; | |||
|
|||
initializeReflectable() { | |||
if (!isTransformed) { | |||
throw new UnsupportedError( | |||
"The transformed code is running with the untransformed " | |||
"reflectable package. Remember to set your package-root to " | |||
"'build/.../packages'."); | |||
} | |||
r.data = _data; | |||
r.memberSymbolMap = _memberSymbolMap; | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.