From c472f008f74265fac11d1c3f67c9a0b52db822b3 Mon Sep 17 00:00:00 2001 From: Liam Appelbe Date: Wed, 9 Oct 2024 17:17:40 +1100 Subject: [PATCH] fmt --- pkgs/ffigen/lib/src/code_generator/ast.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/ffigen/lib/src/code_generator/ast.dart b/pkgs/ffigen/lib/src/code_generator/ast.dart index 7efc96273..a3be627ad 100644 --- a/pkgs/ffigen/lib/src/code_generator/ast.dart +++ b/pkgs/ffigen/lib/src/code_generator/ast.dart @@ -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 = {}; @@ -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?; }