EntrySourceTransformer class
Pure source transformations used when preparing an application test entry.
Keeping these operations independent from filesystem mutation makes entry adaptation deterministic and keeps TestAppPatcher focused on lifecycle and rollback behavior.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
adaptEntryForIntegration(
String source) → String? - Converts a supported widget entry to an integration entry.
-
applicationIntegrationAdapterRelativePath(
String widgetEntryRelative) → String -
Adapter next to
widgetEntryRelativesoimport 'foo.dart'still works. -
applicationIntegrationWrapperContents(
String widgetEntryRelative) → String - Creates a thin integration entry that preserves imports from the source.
-
entryPointCallsAny(
String source, Iterable< String> functionNames) → bool - Returns whether source calls at least one supported entry point.
-
entryPointCallsFunction(
String source, String functionName) → bool -
Whether
sourceinvokesfunctionNameoutside comments. -
posixRelativeImportUri(
{required String fromFile, required String toFile}) → String -
Dart import URI from
fromFiletotoFile, both app-root relative. -
relocateDartImports(
{required String source, required String fromRelative, required String toRelative}) → String - Rewrites relative Dart imports when a file is copied to a new folder.
-
stripDartComments(
String source) → String -
Removes
//and/* */comments for entry-point validation.
Constants
-
applicationEntryPoints
→ const List<
String> -
applicationIntegrationEntryPoints
→ const List<
String> -
applicationWidgetEntryPoints
→ const List<
String> - Entry points accepted by the application and standalone launchers.
-
ensembleIntegrationEntryPoints
→ const List<
String> -
ensembleWidgetEntryPoints
→ const List<
String> -
integrationEntryPoints
→ const List<
String>