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:
Konstantin Shcheglov 2023-12-04 21:16:37 +00:00 committed by Commit Queue
parent 3b648e4635
commit 0651888204
3 changed files with 9 additions and 7 deletions

View file

@ -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

View file

@ -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';