Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemac53 committed Oct 11, 2024
1 parent bc5de7b commit 1171371
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkgs/_macro_client/lib/macro_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class MacroClient {
macro, _host, augmentRequest)
: null,
3 => macro.description.runsInPhases.contains(3)
? await executeDefinitionMacro(
? await executeDefinitionsMacro(
macro, _host, augmentRequest)
: null,
_ => throw StateError(
Expand Down
8 changes: 4 additions & 4 deletions pkgs/_macro_client/lib/src/execute_macro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:dart_model/dart_model.dart';
import 'package:macro/macro.dart';
import 'package:macro_service/macro_service.dart';

/// Runs [macro] in the types phase and returns a [AugmentResponse].
/// Runs [macro] in the types phase and returns an [AugmentResponse].
Future<AugmentResponse> executeTypesMacro(
Macro macro, Host host, AugmentRequest request) async {
final target = request.target;
Expand Down Expand Up @@ -38,7 +38,7 @@ Future<AugmentResponse> executeTypesMacro(
}
}

/// Runs [macro] in the declaration phase and returns a [AugmentResponse].
/// Runs [macro] in the declarations phase and returns an [AugmentResponse].
Future<AugmentResponse> executeDeclarationsMacro(
Macro macro, Host host, AugmentRequest request) async {
final target = request.target;
Expand Down Expand Up @@ -69,8 +69,8 @@ Future<AugmentResponse> executeDeclarationsMacro(
}
}

/// Runs [macro] in the definition phase and returns a [AugmentResponse].
Future<AugmentResponse> executeDefinitionMacro(
/// Runs [macro] in the definitions phase and returns an [AugmentResponse].
Future<AugmentResponse> executeDefinitionsMacro(
Macro macro, Host host, AugmentRequest request) async {
final target = request.target;
// TODO: https://github.com/dart-lang/macros/issues/100.
Expand Down

0 comments on commit 1171371

Please sign in to comment.