diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-22 20:51:28 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-22 20:51:28 +0200 |
| commit | 285eefb1f36e2298af30d8e3df63792204a5b85d (patch) | |
| tree | 7fdc18a4184c6f5fea819af208c436368c67f85f /internal | |
| parent | f2ef5a1ca6322b7be07ca117d18172c233b762c8 (diff) | |
restyle
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/generated/nqc.raku | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/internal/generated/nqc.raku b/internal/generated/nqc.raku index c30e926..5e1ae1f 100644 --- a/internal/generated/nqc.raku +++ b/internal/generated/nqc.raku @@ -29,9 +29,9 @@ class NQCToGoActions { method TOP($/) { make "// This file was generated - don't change manually!\n" - ~ "package types\n\n" - ~ self!constant-go-string-method ~ "\n" - ~ $<construct>.map(*.made).join(''); + ~ "package types\n\n" + ~ self!constant-go-string-method ~ "\n" + ~ $<construct>.map(*.made).join(''); } method construct($/) { @@ -47,8 +47,8 @@ class NQCToGoActions { my $const-type = $<identifier>.ends-with('_OP_ID') ?? ' OpId' !! ''; make qq:to/END/; - const {$<identifier>}$const-type = {$<number>} - END + const {$<identifier>}$const-type = {$<number>} + END } method !constant-go-string-method returns Str { @@ -68,13 +68,13 @@ class NQCToGoActions { method struct($/) { make qq:to/END/; - type {$<identifier>.made} struct \{ - {$<member>.map(*.made).join('; ')} - \} - - {self!struct-go-string-method($/)} - {($<identifier>.made.ends-with('Event') ?? "\n" ~ self!struct-go-sync-pool($/) !! '')} - END + type {$<identifier>.made} struct \{ + {$<member>.map(*.made).join('; ')} + \} + + {self!struct-go-string-method($/)} + {($<identifier>.made.ends-with('Event') ?? "\n" ~ self!struct-go-sync-pool($/) !! '')} + END } # Generate String() method on the Go struct, for pretty printing. |
