| // 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}); |