Skip to content

Write to cutomized file during DartFix #185

@matl-swissas

Description

@matl-swissas

We need to be able to write to cutomized files when a QuickFix is performed.
For that reason we did a fork and added a parameter named "String? customPath" to the "addGenericFileEdit" from abstract class "ChangeBuilder".
The implementation of the method "addGenericFileEdit" looks like this:
@override void addGenericFileEdit( void Function(analyzer_plugin.FileEditBuilder builder) buildFileEdit, { String? customPath, }) { _operations.add( _innerChangeBuilder.addGenericFileEdit(customPath ?? path, buildFileEdit), ); }

Would it be possible to generally allow writing to customized files.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions