Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed Oct 9, 2024
1 parent 5b58433 commit c472f00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkgs/ffigen/lib/src/code_generator/ast.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ abstract class AstNode {

/// Wrapper around [Transformation] to be used by callers.
final class Transformer {
Transformer(this._transformation) { _transformation._transformer = this; }
Transformer(this._transformation) {
_transformation._transformer = this;
}

final Transformation _transformation;
final _seen = <AstNode, AstNode?>{};
Expand All @@ -126,7 +128,7 @@ final class Transformer {
if (_seen.containsKey(node)) return _seen[node] as T?;
final result = node.transform(_transformation);
_seen[node] = result;
if (result != null) _seen[result] = result; // For idempotence.
if (result != null) _seen[result] = result; // For idempotence.
return result as T?;
}

Expand Down

0 comments on commit c472f00

Please sign in to comment.