declaresNitroModule function

bool declaresNitroModule(
  1. String source
)

The annotation itself, not a mention in a comment ("type-only, no @NitroModule").

Implementation

bool declaresNitroModule(String source) => RegExp(r'^\s*@NitroModule\s*\(', multiLine: true).hasMatch(source);