cc9b825974
Change-Id: I91b655170adaa567679a872ed6fe32f587b99c00 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/247550 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
60 lines
1.6 KiB
Dart
60 lines
1.6 KiB
Dart
// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/*library:
|
|
Definition Order:
|
|
topLevelFunction1:FunctionDefinitionMacro1.new()
|
|
topLevelFunction2:FunctionDefinitionMacro1.new()
|
|
topLevelFunction3:FunctionDefinitionMacro1.new()
|
|
topLevelFunction4:FunctionDefinitionMacro1.new()
|
|
Definitions:
|
|
import 'dart:core' as prefix0;
|
|
|
|
augment void topLevelFunction1(prefix0.int a, ) {
|
|
throw 42;
|
|
}
|
|
augment void topLevelFunction2(prefix0.int a, prefix0.int b, ) {
|
|
throw 42;
|
|
}
|
|
augment void topLevelFunction3(prefix0.int a, [prefix0.int? b, ]) {
|
|
throw 42;
|
|
}
|
|
augment void topLevelFunction4(prefix0.int a, {prefix0.int? b, prefix0.int? c, }) {
|
|
throw 42;
|
|
}*/
|
|
|
|
import 'package:macro/macro.dart';
|
|
|
|
/*member: topLevelFunction1:
|
|
definitions:
|
|
augment void topLevelFunction1(int a, ) {
|
|
throw 42;
|
|
}*/
|
|
@FunctionDefinitionMacro1()
|
|
external void topLevelFunction1(int a);
|
|
|
|
/*member: topLevelFunction2:
|
|
definitions:
|
|
augment void topLevelFunction2(int a, int b, ) {
|
|
throw 42;
|
|
}*/
|
|
@FunctionDefinitionMacro1()
|
|
external void topLevelFunction2(int a, int b);
|
|
|
|
/*member: topLevelFunction3:
|
|
definitions:
|
|
augment void topLevelFunction3(int a, [int? b, ]) {
|
|
throw 42;
|
|
}*/
|
|
@FunctionDefinitionMacro1()
|
|
external void topLevelFunction3(int a, [int? b]);
|
|
|
|
/*member: topLevelFunction4:
|
|
definitions:
|
|
augment void topLevelFunction4(int a, {int? b, int? c, }) {
|
|
throw 42;
|
|
}*/
|
|
@FunctionDefinitionMacro1()
|
|
external void topLevelFunction4(int a, {int? b, int? c});
|