mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:51:29 +00:00
Macro. Move add_augment_declaration.dart out of single/.
Also, use `include` of the analyzer analysis_options.yaml Change-Id: I873906ea21de7479af4b5a73e62d0331c8ee37e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339740 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
parent
3b648e4635
commit
0651888204
|
@ -1,10 +1,6 @@
|
|||
include: package:lints/recommended.yaml
|
||||
include: ../../../../../analysis_options.yaml
|
||||
|
||||
analyzer:
|
||||
errors:
|
||||
# We use camel case file names in this directory.
|
||||
file_names: ignore
|
||||
|
||||
linter:
|
||||
rules:
|
||||
- unawaited_futures
|
||||
|
|
|
@ -2113,7 +2113,10 @@ class MacroDeclarationsTest_keepLinking extends MacroDeclarationsTest {
|
|||
|
||||
abstract class MacroDefinitionTest extends MacroElementsBaseTest {
|
||||
test_class_addConstructor_augmentConstructor() async {
|
||||
_addSingleMacro('addDeclaration_augmentDeclaration.dart');
|
||||
newFile(
|
||||
'$testPackageLibPath/a.dart',
|
||||
_getMacroCode('add_augment_declaration.dart'),
|
||||
);
|
||||
|
||||
var library = await buildLibrary(r'''
|
||||
import 'a.dart';
|
||||
|
@ -2177,7 +2180,10 @@ augment class A {
|
|||
}
|
||||
|
||||
test_class_addMethod_augmentMethod() async {
|
||||
_addSingleMacro('addDeclaration_augmentDeclaration.dart');
|
||||
newFile(
|
||||
'$testPackageLibPath/a.dart',
|
||||
_getMacroCode('add_augment_declaration.dart'),
|
||||
);
|
||||
|
||||
var library = await buildLibrary(r'''
|
||||
import 'a.dart';
|
||||
|
|
Loading…
Reference in a new issue