summary refs log tree commit diff stats
path: root/tests/macros/tstructuredlogging.nim
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-08-09 08:18:47 +0800
committerGitHub <noreply@github.com>2023-08-09 08:18:47 +0800
commitd136af012298b58be5abfb5e095cabd158feeb2e (patch)
treeca11fb31c3d2836a1398b96e4fbab34155aea22a /tests/macros/tstructuredlogging.nim
parent73e661d01bdde815a5f388b960cd4d0593f7accc (diff)
downloadNim-d136af012298b58be5abfb5e095cabd158feeb2e.tar.gz
modernize lineinfos; it seems that array access hinders strict def analysis like field access (#22420)
modernize lineinfos; array access hinders strict def analysis like field access

A bug ?

```nim
proc computeNotesVerbosity(): array[0..3, TNoteKinds] =
  result[3] = {low(TNoteKind)..high(TNoteKind)} - {warnObservableStores, warnResultUsed, warnAnyEnumConv, warnBareExcept}
  result[2] = result[3] - {hintStackTrace, hintExtendedContext, hintDeclaredLoc, hintProcessingStmt}
  result[1] = result[2] - {warnProveField, warnProveIndex,
    warnGcUnsafe, hintPath, hintDependency, hintCodeBegin, hintCodeEnd,
    hintSource, hintGlobalVar, hintGCStats, hintMsgOrigin, hintPerformance}
  result[0] = result[1] - {hintSuccessX, hintSuccess, hintConf,
    hintProcessing, hintPattern, hintExecuting, hintLinking, hintCC}
```
Diffstat (limited to 'tests/macros/tstructuredlogging.nim')
0 files changed, 0 insertions, 0 deletions