diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-12-06 09:43:19 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-12-11 15:22:17 +0000 |
| commit | bfb4b3275371a3b53cd6562fa06e5a9dfb5627b7 (patch) | |
| tree | 36d9f70965d8cf1080480c0d56de0b49f096cae5 /pkg/compiler/consts.go | |
| parent | a9a0ffed7ef93dd86695100cf081438a918d6026 (diff) | |
pkg/compiler: add automatic meta
Mark the whole file with "meta automatic" instead of marking each syscall.
This reduces size of descriptions + allows to do special things
with the whole file (e.g. we already treat auto consts specially).
Diffstat (limited to 'pkg/compiler/consts.go')
| -rw-r--r-- | pkg/compiler/consts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/compiler/consts.go b/pkg/compiler/consts.go index 5e1ed9188..bcbd40e52 100644 --- a/pkg/compiler/consts.go +++ b/pkg/compiler/consts.go @@ -119,7 +119,7 @@ func (comp *compiler) extractConsts() map[string]*ConstInfo { comp.extractTypeConsts(ctx, decl) } } - return convertConstInfo(ctx, comp.fileMeta) + return convertConstInfo(ctx, comp.fileMetas) } func foreachFieldAttrConst(n *ast.Struct, cb func(*ast.Type)) { |
