This repository was archived by the owner on Jul 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 4
4
5
5
* feat: add new command flag ` --no-congratulate ` .
6
6
* feat: add ` --version ` flag to print current version of the package.
7
+ * feat: improve ` check-unused-files ` and ` check-unused-code ` commands, add support for flutter internal entry functions.
7
8
* fix: make ` check-unused-l10n ` also cover supertype member calls.
8
9
* fix: cyclomatic complexity calculation for functions with internal lambdas.
9
10
* chore: restrict ` analyzer ` version to ` >=2.4.0 <3.3.0 ` .
Original file line number Diff line number Diff line change @@ -37,7 +37,11 @@ SourceSpan nodeLocation({
37
37
}
38
38
39
39
bool isEntrypoint (String name, NodeList <Annotation > metadata) =>
40
- name == 'main' || _hasPragmaAnnotation (metadata);
40
+ name == 'main' ||
41
+ _hasPragmaAnnotation (metadata) ||
42
+ _flutterInternalEntryFunctions.contains (name);
43
+
44
+ const _flutterInternalEntryFunctions = {'registerPlugins' , 'testExecutable' };
41
45
42
46
/// See https://github.com/dart-lang/sdk/blob/master/runtime/docs/compiler/aot/entry_point_pragma.md
43
47
bool _hasPragmaAnnotation (Iterable <Annotation > metadata) =>
You can’t perform that action at this time.
0 commit comments