Files
Nim/compiler/lineinfos.html
github-actions[bot] c7440eccf2 Deploy to GitHub pages
2025-09-27 04:02:34 +00:00

888 lines
88 KiB
HTML

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="en" lang="en" data-theme="auto">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>lineinfos</title>
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="nimdoc.out.css?v=2.3.1">
<!-- JS -->
<script type="text/javascript" src="dochack.js?v=2.3.1"></script>
</head>
<body>
<div class="document" id="documentId">
<div class="container">
<h1 class="title">lineinfos</h1>
<div class="row">
<div class="three columns">
<div class="theme-select-wrapper">
<label for="theme-select">Theme:&nbsp;</label>
<select id="theme-select" onchange="setTheme(this.value)">
<option value="auto">🌗 Match OS</option>
<option value="dark">🌑 Dark</option>
<option value="light">🌕 Light</option>
</select>
</div>
<div id="global-links">
<ul class="simple">
<li><a id="indexLink" href="theindex.html">Index</a></li>
</ul>
</div>
<div id="searchInputDiv">
Search: <input type="search" id="searchInput" oninput="search()"/>
</div>
<div>
Group by:
<select onchange="groupBy(this.value)">
<option value="section">Section</option>
<option value="type">Type</option>
</select>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#6" id="56">Imports</a>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#7" id="57">Types</a></summary>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#ERecoverableError" title="ERecoverableError = object of ValueError">ERecoverableError</a></li>
<li><a class="reference" href="#ESuggestDone" title="ESuggestDone = object of ValueError">ESuggestDone</a></li>
<li><a class="reference" href="#FileIndex" title="FileIndex = distinct int32">FileIndex</a></li>
<li><a class="reference" href="#MsgConfig" title="MsgConfig = object
trackPos*: TLineInfo
trackPosAttached*: bool ## whether the tracking position was attached to
## some close token.
errorOutputs*: TErrorOutputs
msgContext*: seq[tuple[info: TLineInfo, detail: string]]
lastError*: TLineInfo
filenameToIndexTbl*: Table[string, FileIndex]
fileInfos*: seq[TFileInfo]
systemFileIdx*: FileIndex">MsgConfig</a></li>
<li><a class="reference" href="#Severity" title="Severity {.pure.} = enum
Hint, Warning, Error">Severity</a></li>
<li><a class="reference" href="#TErrorOutput" title="TErrorOutput = enum
eStdOut, eStdErr">TErrorOutput</a></li>
<li><a class="reference" href="#TErrorOutputs" title="TErrorOutputs = set[TErrorOutput]">TErrorOutputs</a></li>
<li><a class="reference" href="#TFileInfo" title="TFileInfo = object
fullPath*: AbsoluteFile
projPath*: RelativeFile
shortName*: string
quotedName*: Rope
quotedFullName*: Rope
lines*: seq[string]
dirtyFile*: AbsoluteFile
hash*: string
dirty*: bool
when defined(nimpretty):
fullContent*: string">TFileInfo</a></li>
<li><a class="reference" href="#TLineInfo" title="TLineInfo = object
line*: uint16
col*: int16
fileIndex*: FileIndex
when defined(nimpretty):
offsetA*, offsetB*: int
commentOffsetA*, commentOffsetB*: int">TLineInfo</a></li>
<li><a class="reference" href="#TMsgKind" title="TMsgKind = enum
errUnknown, errFatal, errInternal, errIllFormedAstX, errCannotOpenFile,
errXExpected, errRstMissingClosing, errRstGridTableNotImplemented,
errRstMarkdownIllformedTable, errRstIllformedTable, errRstNewSectionExpected,
errRstGeneralParseError, errRstInvalidDirectiveX, errRstInvalidField,
errRstFootnoteMismatch, errRstSandboxedDirective, errProveInit, errGenerated,
errFailedMove, errUser, warnCannotOpenFile = &quot;CannotOpenFile&quot;,
warnOctalEscape = &quot;OctalEscape&quot;, warnXIsNeverRead = &quot;XIsNeverRead&quot;,
warnXmightNotBeenInit = &quot;XmightNotBeenInit&quot;, warnDeprecated = &quot;Deprecated&quot;,
warnConfigDeprecated = &quot;ConfigDeprecated&quot;, warnDotLikeOps = &quot;DotLikeOps&quot;,
warnSmallLshouldNotBeUsed = &quot;SmallLshouldNotBeUsed&quot;,
warnUnknownMagic = &quot;UnknownMagic&quot;,
warnRstRedefinitionOfLabel = &quot;RedefinitionOfLabel&quot;,
warnRstUnknownSubstitutionX = &quot;UnknownSubstitutionX&quot;,
warnRstAmbiguousLink = &quot;AmbiguousLink&quot;, warnRstBrokenLink = &quot;BrokenLink&quot;,
warnRstLanguageXNotSupported = &quot;LanguageXNotSupported&quot;,
warnRstFieldXNotSupported = &quot;FieldXNotSupported&quot;,
warnRstUnusedImportdoc = &quot;UnusedImportdoc&quot;, warnRstStyle = &quot;warnRstStyle&quot;,
warnCommentXIgnored = &quot;CommentXIgnored&quot;, warnTypelessParam = &quot;TypelessParam&quot;,
warnUseBase = &quot;UseBase&quot;, warnWriteToForeignHeap = &quot;WriteToForeignHeap&quot;,
warnUnsafeCode = &quot;UnsafeCode&quot;, warnUnusedImportX = &quot;UnusedImport&quot;,
warnInheritFromException = &quot;InheritFromException&quot;,
warnEachIdentIsTuple = &quot;EachIdentIsTuple&quot;, warnUnsafeSetLen = &quot;UnsafeSetLen&quot;,
warnUnsafeDefault = &quot;UnsafeDefault&quot;, warnProveInit = &quot;ProveInit&quot;,
warnProveField = &quot;ProveField&quot;, warnProveIndex = &quot;ProveIndex&quot;,
warnUnreachableElse = &quot;UnreachableElse&quot;,
warnUnreachableCode = &quot;UnreachableCode&quot;, warnStaticIndexCheck = &quot;IndexCheck&quot;,
warnGcUnsafe = &quot;GcUnsafe&quot;, warnGcUnsafe2 = &quot;GcUnsafe2&quot;, warnUninit = &quot;Uninit&quot;,
warnGcMem = &quot;GcMem&quot;, warnDestructor = &quot;Destructor&quot;,
warnLockLevel = &quot;LockLevel&quot;, warnResultShadowed = &quot;ResultShadowed&quot;,
warnInconsistentSpacing = &quot;Spacing&quot;, warnCaseTransition = &quot;CaseTransition&quot;,
warnCycleCreated = &quot;CycleCreated&quot;, warnObservableStores = &quot;ObservableStores&quot;,
warnStrictNotNil = &quot;StrictNotNil&quot;, warnResultUsed = &quot;ResultUsed&quot;,
warnCannotOpen = &quot;CannotOpen&quot;, warnFileChanged = &quot;FileChanged&quot;,
warnSuspiciousEnumConv = &quot;EnumConv&quot;, warnAnyEnumConv = &quot;AnyEnumConv&quot;,
warnHoleEnumConv = &quot;HoleEnumConv&quot;, warnCstringConv = &quot;CStringConv&quot;,
warnPtrToCstringConv = &quot;PtrToCstringConv&quot;, warnEffect = &quot;Effect&quot;,
warnCastSizes = &quot;CastSizes&quot;, warnAboveMaxSizeSet = &quot;AboveMaxSizeSet&quot;,
warnImplicitTemplateRedefinition = &quot;ImplicitTemplateRedefinition&quot;,
warnUnnamedBreak = &quot;UnnamedBreak&quot;, warnStmtListLambda = &quot;StmtListLambda&quot;,
warnBareExcept = &quot;BareExcept&quot;,
warnImplicitDefaultValue = &quot;ImplicitDefaultValue&quot;,
warnIgnoredSymbolInjection = &quot;IgnoredSymbolInjection&quot;,
warnStdPrefix = &quot;StdPrefix&quot;, warnUnknownNotes = &quot;UnknownNotes&quot;,
warnUser = &quot;User&quot;,
warnGlobalVarConstructorTemporary = &quot;GlobalVarConstructorTemporary&quot;,
hintSuccess = &quot;Success&quot;, hintSuccessX = &quot;SuccessX&quot;, hintCC = &quot;CC&quot;,
hintXDeclaredButNotUsed = &quot;XDeclaredButNotUsed&quot;,
hintDuplicateModuleImport = &quot;DuplicateModuleImport&quot;,
hintXCannotRaiseY = &quot;XCannotRaiseY&quot;,
hintConvToBaseNotNeeded = &quot;ConvToBaseNotNeeded&quot;,
hintConvFromXtoItselfNotNeeded = &quot;ConvFromXtoItselfNotNeeded&quot;,
hintExprAlwaysX = &quot;ExprAlwaysX&quot;, hintQuitCalled = &quot;QuitCalled&quot;,
hintProcessing = &quot;Processing&quot;, hintProcessingStmt = &quot;ProcessingStmt&quot;,
hintCodeBegin = &quot;CodeBegin&quot;, hintCodeEnd = &quot;CodeEnd&quot;, hintConf = &quot;Conf&quot;,
hintPath = &quot;Path&quot;, hintConditionAlwaysTrue = &quot;CondTrue&quot;,
hintConditionAlwaysFalse = &quot;CondFalse&quot;, hintName = &quot;Name&quot;,
hintPattern = &quot;Pattern&quot;, hintExecuting = &quot;Exec&quot;, hintLinking = &quot;Link&quot;,
hintDependency = &quot;Dependency&quot;, hintSource = &quot;Source&quot;,
hintPerformance = &quot;Performance&quot;, hintStackTrace = &quot;StackTrace&quot;,
hintGCStats = &quot;GCStats&quot;, hintGlobalVar = &quot;GlobalVar&quot;,
hintExpandMacro = &quot;ExpandMacro&quot;, hintUser = &quot;User&quot;, hintUserRaw = &quot;UserRaw&quot;,
hintExtendedContext = &quot;ExtendedContext&quot;, hintUnknownRaises = &quot;UnknownRaises&quot;,
hintMsgOrigin = &quot;MsgOrigin&quot;, hintDeclaredLoc = &quot;DeclaredLoc&quot;">TMsgKind</a></li>
<li><a class="reference" href="#TNoteKind" title="TNoteKind = range[warnMin .. hintMax]">TNoteKind</a></li>
<li><a class="reference" href="#TNoteKinds" title="TNoteKinds = set[TNoteKind]">TNoteKinds</a></li>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#10" id="60">Consts</a></summary>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#commandLineIdx" title="commandLineIdx = -3'i32">commandLineIdx</a></li>
<li><a class="reference" href="#errArgsNeedRunOption" title="errArgsNeedRunOption = &quot;arguments can only be given if the \'--run\' option is selected&quot;">errArgsNeedRunOption</a></li>
<li><a class="reference" href="#errFloatToString" title="errFloatToString = &quot;cannot convert \'$1\' to \'$2\'&quot;">errFloatToString</a></li>
<li><a class="reference" href="#errMax" title="errMax = errUser">errMax</a></li>
<li><a class="reference" href="#errMin" title="errMin = errUnknown">errMin</a></li>
<li><a class="reference" href="#errXMustBeCompileTime" title="errXMustBeCompileTime = &quot;\'$1\' can only be used in compile-time context&quot;">errXMustBeCompileTime</a></li>
<li><a class="reference" href="#explanationsBaseUrl" title="explanationsBaseUrl = &quot;https://nim-lang.github.io/Nim&quot;">explanationsBaseUrl</a></li>
<li><a class="reference" href="#fatalMsgs" title="fatalMsgs = {errUnknown..errInternal}">fatalMsgs</a></li>
<li><a class="reference" href="#hintMax" title="hintMax = hintDeclaredLoc">hintMax</a></li>
<li><a class="reference" href="#hintMin" title="hintMin = hintSuccess">hintMin</a></li>
<li><a class="reference" href="#InvalidFileIdx" title="InvalidFileIdx = -1'i32">InvalidFileIdx</a></li>
<li><a class="reference" href="#MsgKindToStr" title="MsgKindToStr: array[TMsgKind, string] = [&quot;unknown error&quot;, &quot;fatal error: $1&quot;,
&quot;internal error: $1&quot;, &quot;illformed AST: $1&quot;, &quot;cannot open \'$1\'&quot;,
&quot;\'$1\' expected&quot;, &quot;$1&quot;, &quot;grid table is not implemented&quot;,
&quot;illformed delimiter row of a markdown table&quot;, &quot;Illformed table: $1&quot;,
&quot;new section expected $1&quot;, &quot;general parse error&quot;,
&quot;invalid directive: \'$1\'&quot;, &quot;invalid field: $1&quot;,
&quot;number of footnotes and their references don\'t match: $1&quot;,
&quot;disabled directive: \'$1\'&quot;, &quot;Cannot prove that \'$1\' is initialized.&quot;,
&quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;cannot open \'$1\'&quot;,
&quot;octal escape sequences do not exist; leading zero is ignored&quot;,
&quot;\'$1\' is never read&quot;, &quot;\'$1\' might not have been initialized&quot;, &quot;$1&quot;,
&quot;config file \'$1\' is deprecated&quot;, &quot;$1&quot;,
&quot;\'l\' should not be used as an identifier; may look like \'1\' (one)&quot;,
&quot;unknown magic \'$1\' might crash the compiler&quot;,
&quot;redefinition of label \'$1\'&quot;, &quot;unknown substitution \'$1\'&quot;,
&quot;ambiguous doc link $1&quot;, &quot;broken link \'$1\'&quot;,
&quot;language \'$1\' not supported&quot;, &quot;field \'$1\' not supported&quot;,
&quot;importdoc for \'$1\' is not used&quot;, &quot;RST style: $1&quot;,
&quot;comment \'$1\' ignored&quot;, &quot;&quot;,
&quot;use {.base.} for base methods; baseless methods are deprecated&quot;,
&quot;write to foreign heap&quot;, &quot;unsafe code: \'$1\'&quot;,
&quot;imported and not used: \'$1\'&quot;, &quot;inherit from a more precise exception type like ValueError, IOError or OSError. If these don\'t suit, inherit from CatchableError or Defect.&quot;,
&quot;each identifier is a tuple&quot;, &quot;setLen can potentially expand the sequence, but the element type \'$1\' doesn\'t have a valid default value&quot;,
&quot;The \'$1\' type doesn\'t have a valid default value&quot;, &quot;Cannot prove that \'$1\' is initialized. This will become a compile time error in the future.&quot;,
&quot;cannot prove that field \'$1\' is accessible&quot;,
&quot;cannot prove index \'$1\' is valid&quot;,
&quot;unreachable else, all cases are already covered&quot;,
&quot;unreachable code after \'return\' statement or \'{.noReturn.}\' proc&quot;,
&quot;$1&quot;, &quot;not GC-safe: \'$1\'&quot;, &quot;$1&quot;,
&quot;use explicit initialization of \'$1\' for clarity&quot;,
&quot;\'$1\' uses GC\'ed memory&quot;, &quot;usage of a type with a destructor in a non destructible context. This will become a compile time error in the future.&quot;,
&quot;$1&quot;, &quot;Special variable \'result\' is shadowed.&quot;,
&quot;Number of spaces around \'$#\' is not consistent&quot;,
&quot;Potential object case transition, instantiate new object instead&quot;, &quot;$1&quot;,
&quot;observable stores to \'$1\'&quot;, &quot;$1&quot;, &quot;used \'result\' variable&quot;,
&quot;cannot open: $1&quot;, &quot;file changed: $1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;unsafe conversion to \'cstring\' from \'$1\'; Use a `cast` operation like `cast[cstring](x)`; this will become a compile time error in the future&quot;,
&quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;template \'$1\' is implicitly redefined; this is deprecated, add an explicit .redefine pragma&quot;, &quot;Using an unnamed break in a block is deprecated; Use a named block with a named break instead&quot;, &quot;statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead&quot;,
&quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1 needs the \'std\' prefix&quot;, &quot;$1&quot;, &quot;$1&quot;,
&quot;global variable \'$1\' initialization requires a temporary variable&quot;,
&quot;operation successful: $#&quot;,
&quot;$build\n$loc lines; ${sec}s; $mem; proj: $project; out: $output&quot;, &quot;CC: $1&quot;,
&quot;\'$1\' is declared but not used&quot;, &quot;$1&quot;, &quot;$1&quot;,
&quot;conversion to base object is not needed&quot;,
&quot;conversion from $1 to itself is pointless&quot;,
&quot;expression evaluates always to \'$1\'&quot;, &quot;quit() called&quot;, &quot;$1&quot;, &quot;$1&quot;,
&quot;generated code listing:&quot;, &quot;end of listing&quot;, &quot;used config file \'$1\'&quot;,
&quot;added path: \'$1\'&quot;, &quot;condition is always true: \'$1\'&quot;,
&quot;condition is always false: \'$1\'&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;,
&quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;global variable declared here&quot;, &quot;expanded macro: $1&quot;,
&quot;$1&quot;, &quot;$1&quot;, &quot;$1&quot;, &quot;$1 is a forward declaration without explicit .raises, assuming it can raise anything&quot;,
&quot;$1&quot;, &quot;$1&quot;]">MsgKindToStr</a></li>
<li><a class="reference" href="#NotesVerbosity" title="NotesVerbosity = [{warnCannotOpenFile..warnProveInit,
warnUnreachableElse..warnStaticIndexCheck,
warnGcUnsafe2..warnCycleCreated, warnStrictNotNil,
warnCannotOpen..warnSuspiciousEnumConv,
warnHoleEnumConv..warnStmtListLambda,
warnImplicitDefaultValue..warnIgnoredSymbolInjection,
warnUnknownNotes..warnGlobalVarConstructorTemporary,
hintXDeclaredButNotUsed..hintQuitCalled,
hintConditionAlwaysTrue..hintName,
hintExpandMacro..hintUserRaw, hintUnknownRaises}, {
warnCannotOpenFile..warnProveInit,
warnUnreachableElse..warnStaticIndexCheck, warnGcUnsafe2..warnCycleCreated,
warnStrictNotNil, warnCannotOpen..warnSuspiciousEnumConv,
warnHoleEnumConv..warnStmtListLambda,
warnImplicitDefaultValue..warnIgnoredSymbolInjection,
warnUnknownNotes..hintProcessing, hintConf,
hintConditionAlwaysTrue..hintLinking, hintExpandMacro..hintUserRaw,
hintUnknownRaises}, {warnCannotOpenFile..warnCycleCreated, warnStrictNotNil,
warnCannotOpen..warnSuspiciousEnumConv,
warnHoleEnumConv..warnStmtListLambda,
warnImplicitDefaultValue..warnIgnoredSymbolInjection,
warnUnknownNotes..hintProcessing,
hintCodeBegin..hintPerformance,
hintGCStats..hintUserRaw,
hintUnknownRaises..hintMsgOrigin}, {
warnCannotOpenFile..warnCycleCreated, warnStrictNotNil,
warnCannotOpen..warnSuspiciousEnumConv,
warnHoleEnumConv..warnStmtListLambda,
warnImplicitDefaultValue..warnIgnoredSymbolInjection,
warnUnknownNotes..hintDeclaredLoc}]">NotesVerbosity</a></li>
<li><a class="reference" href="#rstWarnings" title="rstWarnings = {warnRstRedefinitionOfLabel..warnRstStyle}">rstWarnings</a></li>
<li><a class="reference" href="#trackPosInvalidFileIdx" title="trackPosInvalidFileIdx = -2'i32">trackPosInvalidFileIdx</a></li>
<li><a class="reference" href="#unknownLineInfo" title="unknownLineInfo = (line: 0'u, col: -1, fileIndex: -1)">unknownLineInfo</a></li>
<li><a class="reference" href="#warnMax" title="warnMax = warnGlobalVarConstructorTemporary">warnMax</a></li>
<li><a class="reference" href="#warnMin" title="warnMin = warnCannotOpenFile">warnMin</a></li>
</ul>
</details>
</li>
<li>
<details open>
<summary><a class="reference reference-toplevel" href="#12" id="62">Procs</a></summary>
<ul class="simple simple-toc-section">
<ul class="simple nested-toc-section">==
<li><a class="reference" href="#%3D%3D%2CFileIndex%2CFileIndex" title="`==`(a, b: FileIndex): bool">`==`(a, b: FileIndex): bool</a></li>
</ul>
<ul class="simple nested-toc-section">createDocLink
<li><a class="reference" href="#createDocLink%2Cstring" title="createDocLink(urlSuffix: string): string">createDocLink(urlSuffix: string): string</a></li>
</ul>
<ul class="simple nested-toc-section">hash
<li><a class="reference" href="#hash%2CTLineInfo" title="hash(i: TLineInfo): Hash">hash(i: TLineInfo): Hash</a></li>
</ul>
<ul class="simple nested-toc-section">initMsgConfig
<li><a class="reference" href="#initMsgConfig" title="initMsgConfig(): MsgConfig">initMsgConfig(): MsgConfig</a></li>
</ul>
<ul class="simple nested-toc-section">raiseRecoverableError
<li><a class="reference" href="#raiseRecoverableError%2Cstring" title="raiseRecoverableError(msg: string)">raiseRecoverableError(msg: string)</a></li>
</ul>
</ul>
</details>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L1" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L1" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
<div id="tocRoot"></div>
<p class="module-desc">This module contains the <tt class="docutils literal"><span class="pre"><span class="Identifier">TMsgKind</span></span></tt> enum as well as the <tt class="docutils literal"><span class="pre"><span class="Identifier">TLineInfo</span></span></tt> object.</p>
<div class="section" id="6">
<h1><a class="toc-backref" href="#6">Imports</a></h1>
<dl class="item">
<a class="reference external" href="ropes.html">ropes</a>, <a class="reference external" href="pathutils.html">pathutils</a>
</dl>
</div>
<div class="section" id="7">
<h1><a class="toc-backref" href="#7">Types</a></h1>
<dl class="item">
<div id="ERecoverableError">
<dt><pre><a href="lineinfos.html#ERecoverableError"><span class="Identifier">ERecoverableError</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <span class="Identifier">ValueError</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L316" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L316" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="ESuggestDone">
<dt><pre><a href="lineinfos.html#ESuggestDone"><span class="Identifier">ESuggestDone</span></a> <span class="Other">=</span> <span class="Keyword">object</span> <span class="Keyword">of</span> <span class="Identifier">ValueError</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L317" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L317" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="FileIndex">
<dt><pre><a href="lineinfos.html#FileIndex"><span class="Identifier">FileIndex</span></a> <span class="Other">=</span> <span class="Keyword">distinct</span> <span class="Identifier">int32</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L296" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L296" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="MsgConfig">
<dt><pre><a href="lineinfos.html#MsgConfig"><span class="Identifier">MsgConfig</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
<span class="Identifier">trackPos</span><span class="Operator">*</span><span class="Other">:</span> <a href="lineinfos.html#TLineInfo"><span class="Identifier">TLineInfo</span></a>
<span class="Identifier">trackPosAttached</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span> <span class="Comment">## whether the tracking position was attached to</span>
<span class="Comment">## some close token.</span>
<span class="Identifier">errorOutputs</span><span class="Operator">*</span><span class="Other">:</span> <a href="lineinfos.html#TErrorOutputs"><span class="Identifier">TErrorOutputs</span></a>
<span class="Identifier">msgContext</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Keyword">tuple</span><span class="Other">[</span><span class="Identifier">info</span><span class="Other">:</span> <a href="lineinfos.html#TLineInfo"><span class="Identifier">TLineInfo</span></a><span class="Other">,</span> <span class="Identifier">detail</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">]</span><span class="Other">]</span>
<span class="Identifier">lastError</span><span class="Operator">*</span><span class="Other">:</span> <a href="lineinfos.html#TLineInfo"><span class="Identifier">TLineInfo</span></a>
<span class="Identifier">filenameToIndexTbl</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">Table</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">,</span> <a href="lineinfos.html#FileIndex"><span class="Identifier">FileIndex</span></a><span class="Other">]</span>
<span class="Identifier">fileInfos</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><a href="lineinfos.html#TFileInfo"><span class="Identifier">TFileInfo</span></a><span class="Other">]</span>
<span class="Identifier">systemFileIdx</span><span class="Operator">*</span><span class="Other">:</span> <a href="lineinfos.html#FileIndex"><span class="Identifier">FileIndex</span></a></pre></dt>
<dd>
does not need to be stored in the incremental cache
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L341" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L341" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="Severity">
<dt><pre><a href="lineinfos.html#Severity"><span class="Identifier">Severity</span></a> {.<span class="Identifier">pure</span>.} <span class="Other">=</span> <span class="Keyword">enum</span>
<span class="Identifier">Hint</span><span class="Other">,</span> <span class="Identifier">Warning</span><span class="Other">,</span> <span class="Identifier">Error</span></pre></dt>
<dd>
VS Code only supports these three
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L332" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L332" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TErrorOutput">
<dt><pre><a href="lineinfos.html#TErrorOutput"><span class="Identifier">TErrorOutput</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
<span class="Identifier">eStdOut</span><span class="Other">,</span> <span class="Identifier">eStdErr</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L310" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L310" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TErrorOutputs">
<dt><pre><a href="lineinfos.html#TErrorOutputs"><span class="Identifier">TErrorOutputs</span></a> <span class="Other">=</span> <span class="Identifier">set</span><span class="Other">[</span><a href="lineinfos.html#TErrorOutput"><span class="Identifier">TErrorOutput</span></a><span class="Other">]</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L314" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L314" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TFileInfo">
<dt><pre><a href="lineinfos.html#TFileInfo"><span class="Identifier">TFileInfo</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
<span class="Identifier">fullPath</span><span class="Operator">*</span><span class="Other">:</span> <a href="pathutils.html#AbsoluteFile"><span class="Identifier">AbsoluteFile</span></a>
<span class="Identifier">projPath</span><span class="Operator">*</span><span class="Other">:</span> <a href="pathutils.html#RelativeFile"><span class="Identifier">RelativeFile</span></a>
<span class="Identifier">shortName</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span>
<span class="Identifier">quotedName</span><span class="Operator">*</span><span class="Other">:</span> <a href="ropes.html#Rope"><span class="Identifier">Rope</span></a>
<span class="Identifier">quotedFullName</span><span class="Operator">*</span><span class="Other">:</span> <a href="ropes.html#Rope"><span class="Identifier">Rope</span></a>
<span class="Identifier">lines</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">seq</span><span class="Other">[</span><span class="Identifier">string</span><span class="Other">]</span>
<span class="Identifier">dirtyFile</span><span class="Operator">*</span><span class="Other">:</span> <a href="pathutils.html#AbsoluteFile"><span class="Identifier">AbsoluteFile</span></a>
<span class="Identifier">hash</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span>
<span class="Identifier">dirty</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">bool</span>
<span class="Keyword">when</span> <span class="Identifier">defined</span><span class="Other">(</span><span class="Identifier">nimpretty</span><span class="Other">)</span><span class="Other">:</span>
<span class="Identifier">fullContent</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">string</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L276" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L276" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TLineInfo">
<dt><pre><a href="lineinfos.html#TLineInfo"><span class="Identifier">TLineInfo</span></a> <span class="Other">=</span> <span class="Keyword">object</span>
<span class="Identifier">line</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">uint16</span>
<span class="Identifier">col</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int16</span>
<span class="Identifier">fileIndex</span><span class="Operator">*</span><span class="Other">:</span> <a href="lineinfos.html#FileIndex"><span class="Identifier">FileIndex</span></a>
<span class="Keyword">when</span> <span class="Identifier">defined</span><span class="Other">(</span><span class="Identifier">nimpretty</span><span class="Other">)</span><span class="Other">:</span>
<span class="Identifier">offsetA</span><span class="Operator">*</span><span class="Other">,</span> <span class="Identifier">offsetB</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span>
<span class="Identifier">commentOffsetA</span><span class="Operator">*</span><span class="Other">,</span> <span class="Identifier">commentOffsetB</span><span class="Operator">*</span><span class="Other">:</span> <span class="Identifier">int</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L297" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L297" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TMsgKind">
<dt><pre><a href="lineinfos.html#TMsgKind"><span class="Identifier">TMsgKind</span></a> <span class="Other">=</span> <span class="Keyword">enum</span>
<span class="Identifier">errUnknown</span><span class="Other">,</span> <span class="Identifier">errFatal</span><span class="Other">,</span> <span class="Identifier">errInternal</span><span class="Other">,</span> <span class="Identifier">errIllFormedAstX</span><span class="Other">,</span> <span class="Identifier">errCannotOpenFile</span><span class="Other">,</span>
<span class="Identifier">errXExpected</span><span class="Other">,</span> <span class="Identifier">errRstMissingClosing</span><span class="Other">,</span> <span class="Identifier">errRstGridTableNotImplemented</span><span class="Other">,</span>
<span class="Identifier">errRstMarkdownIllformedTable</span><span class="Other">,</span> <span class="Identifier">errRstIllformedTable</span><span class="Other">,</span> <span class="Identifier">errRstNewSectionExpected</span><span class="Other">,</span>
<span class="Identifier">errRstGeneralParseError</span><span class="Other">,</span> <span class="Identifier">errRstInvalidDirectiveX</span><span class="Other">,</span> <span class="Identifier">errRstInvalidField</span><span class="Other">,</span>
<span class="Identifier">errRstFootnoteMismatch</span><span class="Other">,</span> <span class="Identifier">errRstSandboxedDirective</span><span class="Other">,</span> <span class="Identifier">errProveInit</span><span class="Other">,</span> <span class="Identifier">errGenerated</span><span class="Other">,</span>
<span class="Identifier">errFailedMove</span><span class="Other">,</span> <span class="Identifier">errUser</span><span class="Other">,</span> <span class="Identifier">warnCannotOpenFile</span> <span class="Other">=</span> <span class="StringLit">&quot;CannotOpenFile&quot;</span><span class="Other">,</span>
<span class="Identifier">warnOctalEscape</span> <span class="Other">=</span> <span class="StringLit">&quot;OctalEscape&quot;</span><span class="Other">,</span> <span class="Identifier">warnXIsNeverRead</span> <span class="Other">=</span> <span class="StringLit">&quot;XIsNeverRead&quot;</span><span class="Other">,</span>
<span class="Identifier">warnXmightNotBeenInit</span> <span class="Other">=</span> <span class="StringLit">&quot;XmightNotBeenInit&quot;</span><span class="Other">,</span> <span class="Identifier">warnDeprecated</span> <span class="Other">=</span> <span class="StringLit">&quot;Deprecated&quot;</span><span class="Other">,</span>
<span class="Identifier">warnConfigDeprecated</span> <span class="Other">=</span> <span class="StringLit">&quot;ConfigDeprecated&quot;</span><span class="Other">,</span> <span class="Identifier">warnDotLikeOps</span> <span class="Other">=</span> <span class="StringLit">&quot;DotLikeOps&quot;</span><span class="Other">,</span>
<span class="Identifier">warnSmallLshouldNotBeUsed</span> <span class="Other">=</span> <span class="StringLit">&quot;SmallLshouldNotBeUsed&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUnknownMagic</span> <span class="Other">=</span> <span class="StringLit">&quot;UnknownMagic&quot;</span><span class="Other">,</span>
<span class="Identifier">warnRstRedefinitionOfLabel</span> <span class="Other">=</span> <span class="StringLit">&quot;RedefinitionOfLabel&quot;</span><span class="Other">,</span>
<span class="Identifier">warnRstUnknownSubstitutionX</span> <span class="Other">=</span> <span class="StringLit">&quot;UnknownSubstitutionX&quot;</span><span class="Other">,</span>
<span class="Identifier">warnRstAmbiguousLink</span> <span class="Other">=</span> <span class="StringLit">&quot;AmbiguousLink&quot;</span><span class="Other">,</span> <span class="Identifier">warnRstBrokenLink</span> <span class="Other">=</span> <span class="StringLit">&quot;BrokenLink&quot;</span><span class="Other">,</span>
<span class="Identifier">warnRstLanguageXNotSupported</span> <span class="Other">=</span> <span class="StringLit">&quot;LanguageXNotSupported&quot;</span><span class="Other">,</span>
<span class="Identifier">warnRstFieldXNotSupported</span> <span class="Other">=</span> <span class="StringLit">&quot;FieldXNotSupported&quot;</span><span class="Other">,</span>
<span class="Identifier">warnRstUnusedImportdoc</span> <span class="Other">=</span> <span class="StringLit">&quot;UnusedImportdoc&quot;</span><span class="Other">,</span> <span class="Identifier">warnRstStyle</span> <span class="Other">=</span> <span class="StringLit">&quot;warnRstStyle&quot;</span><span class="Other">,</span>
<span class="Identifier">warnCommentXIgnored</span> <span class="Other">=</span> <span class="StringLit">&quot;CommentXIgnored&quot;</span><span class="Other">,</span> <span class="Identifier">warnTypelessParam</span> <span class="Other">=</span> <span class="StringLit">&quot;TypelessParam&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUseBase</span> <span class="Other">=</span> <span class="StringLit">&quot;UseBase&quot;</span><span class="Other">,</span> <span class="Identifier">warnWriteToForeignHeap</span> <span class="Other">=</span> <span class="StringLit">&quot;WriteToForeignHeap&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUnsafeCode</span> <span class="Other">=</span> <span class="StringLit">&quot;UnsafeCode&quot;</span><span class="Other">,</span> <span class="Identifier">warnUnusedImportX</span> <span class="Other">=</span> <span class="StringLit">&quot;UnusedImport&quot;</span><span class="Other">,</span>
<span class="Identifier">warnInheritFromException</span> <span class="Other">=</span> <span class="StringLit">&quot;InheritFromException&quot;</span><span class="Other">,</span>
<span class="Identifier">warnEachIdentIsTuple</span> <span class="Other">=</span> <span class="StringLit">&quot;EachIdentIsTuple&quot;</span><span class="Other">,</span> <span class="Identifier">warnUnsafeSetLen</span> <span class="Other">=</span> <span class="StringLit">&quot;UnsafeSetLen&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUnsafeDefault</span> <span class="Other">=</span> <span class="StringLit">&quot;UnsafeDefault&quot;</span><span class="Other">,</span> <span class="Identifier">warnProveInit</span> <span class="Other">=</span> <span class="StringLit">&quot;ProveInit&quot;</span><span class="Other">,</span>
<span class="Identifier">warnProveField</span> <span class="Other">=</span> <span class="StringLit">&quot;ProveField&quot;</span><span class="Other">,</span> <span class="Identifier">warnProveIndex</span> <span class="Other">=</span> <span class="StringLit">&quot;ProveIndex&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUnreachableElse</span> <span class="Other">=</span> <span class="StringLit">&quot;UnreachableElse&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUnreachableCode</span> <span class="Other">=</span> <span class="StringLit">&quot;UnreachableCode&quot;</span><span class="Other">,</span> <span class="Identifier">warnStaticIndexCheck</span> <span class="Other">=</span> <span class="StringLit">&quot;IndexCheck&quot;</span><span class="Other">,</span>
<span class="Identifier">warnGcUnsafe</span> <span class="Other">=</span> <span class="StringLit">&quot;GcUnsafe&quot;</span><span class="Other">,</span> <span class="Identifier">warnGcUnsafe2</span> <span class="Other">=</span> <span class="StringLit">&quot;GcUnsafe2&quot;</span><span class="Other">,</span> <span class="Identifier">warnUninit</span> <span class="Other">=</span> <span class="StringLit">&quot;Uninit&quot;</span><span class="Other">,</span>
<span class="Identifier">warnGcMem</span> <span class="Other">=</span> <span class="StringLit">&quot;GcMem&quot;</span><span class="Other">,</span> <span class="Identifier">warnDestructor</span> <span class="Other">=</span> <span class="StringLit">&quot;Destructor&quot;</span><span class="Other">,</span>
<span class="Identifier">warnLockLevel</span> <span class="Other">=</span> <span class="StringLit">&quot;LockLevel&quot;</span><span class="Other">,</span> <span class="Identifier">warnResultShadowed</span> <span class="Other">=</span> <span class="StringLit">&quot;ResultShadowed&quot;</span><span class="Other">,</span>
<span class="Identifier">warnInconsistentSpacing</span> <span class="Other">=</span> <span class="StringLit">&quot;Spacing&quot;</span><span class="Other">,</span> <span class="Identifier">warnCaseTransition</span> <span class="Other">=</span> <span class="StringLit">&quot;CaseTransition&quot;</span><span class="Other">,</span>
<span class="Identifier">warnCycleCreated</span> <span class="Other">=</span> <span class="StringLit">&quot;CycleCreated&quot;</span><span class="Other">,</span> <span class="Identifier">warnObservableStores</span> <span class="Other">=</span> <span class="StringLit">&quot;ObservableStores&quot;</span><span class="Other">,</span>
<span class="Identifier">warnStrictNotNil</span> <span class="Other">=</span> <span class="StringLit">&quot;StrictNotNil&quot;</span><span class="Other">,</span> <span class="Identifier">warnResultUsed</span> <span class="Other">=</span> <span class="StringLit">&quot;ResultUsed&quot;</span><span class="Other">,</span>
<span class="Identifier">warnCannotOpen</span> <span class="Other">=</span> <span class="StringLit">&quot;CannotOpen&quot;</span><span class="Other">,</span> <span class="Identifier">warnFileChanged</span> <span class="Other">=</span> <span class="StringLit">&quot;FileChanged&quot;</span><span class="Other">,</span>
<span class="Identifier">warnSuspiciousEnumConv</span> <span class="Other">=</span> <span class="StringLit">&quot;EnumConv&quot;</span><span class="Other">,</span> <span class="Identifier">warnAnyEnumConv</span> <span class="Other">=</span> <span class="StringLit">&quot;AnyEnumConv&quot;</span><span class="Other">,</span>
<span class="Identifier">warnHoleEnumConv</span> <span class="Other">=</span> <span class="StringLit">&quot;HoleEnumConv&quot;</span><span class="Other">,</span> <span class="Identifier">warnCstringConv</span> <span class="Other">=</span> <span class="StringLit">&quot;CStringConv&quot;</span><span class="Other">,</span>
<span class="Identifier">warnPtrToCstringConv</span> <span class="Other">=</span> <span class="StringLit">&quot;PtrToCstringConv&quot;</span><span class="Other">,</span> <span class="Identifier">warnEffect</span> <span class="Other">=</span> <span class="StringLit">&quot;Effect&quot;</span><span class="Other">,</span>
<span class="Identifier">warnCastSizes</span> <span class="Other">=</span> <span class="StringLit">&quot;CastSizes&quot;</span><span class="Other">,</span> <span class="Identifier">warnAboveMaxSizeSet</span> <span class="Other">=</span> <span class="StringLit">&quot;AboveMaxSizeSet&quot;</span><span class="Other">,</span>
<span class="Identifier">warnImplicitTemplateRedefinition</span> <span class="Other">=</span> <span class="StringLit">&quot;ImplicitTemplateRedefinition&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUnnamedBreak</span> <span class="Other">=</span> <span class="StringLit">&quot;UnnamedBreak&quot;</span><span class="Other">,</span> <span class="Identifier">warnStmtListLambda</span> <span class="Other">=</span> <span class="StringLit">&quot;StmtListLambda&quot;</span><span class="Other">,</span>
<span class="Identifier">warnBareExcept</span> <span class="Other">=</span> <span class="StringLit">&quot;BareExcept&quot;</span><span class="Other">,</span>
<span class="Identifier">warnImplicitDefaultValue</span> <span class="Other">=</span> <span class="StringLit">&quot;ImplicitDefaultValue&quot;</span><span class="Other">,</span>
<span class="Identifier">warnIgnoredSymbolInjection</span> <span class="Other">=</span> <span class="StringLit">&quot;IgnoredSymbolInjection&quot;</span><span class="Other">,</span>
<span class="Identifier">warnStdPrefix</span> <span class="Other">=</span> <span class="StringLit">&quot;StdPrefix&quot;</span><span class="Other">,</span> <span class="Identifier">warnUnknownNotes</span> <span class="Other">=</span> <span class="StringLit">&quot;UnknownNotes&quot;</span><span class="Other">,</span>
<span class="Identifier">warnUser</span> <span class="Other">=</span> <span class="StringLit">&quot;User&quot;</span><span class="Other">,</span>
<span class="Identifier">warnGlobalVarConstructorTemporary</span> <span class="Other">=</span> <span class="StringLit">&quot;GlobalVarConstructorTemporary&quot;</span><span class="Other">,</span>
<span class="Identifier">hintSuccess</span> <span class="Other">=</span> <span class="StringLit">&quot;Success&quot;</span><span class="Other">,</span> <span class="Identifier">hintSuccessX</span> <span class="Other">=</span> <span class="StringLit">&quot;SuccessX&quot;</span><span class="Other">,</span> <span class="Identifier">hintCC</span> <span class="Other">=</span> <span class="StringLit">&quot;CC&quot;</span><span class="Other">,</span>
<span class="Identifier">hintXDeclaredButNotUsed</span> <span class="Other">=</span> <span class="StringLit">&quot;XDeclaredButNotUsed&quot;</span><span class="Other">,</span>
<span class="Identifier">hintDuplicateModuleImport</span> <span class="Other">=</span> <span class="StringLit">&quot;DuplicateModuleImport&quot;</span><span class="Other">,</span>
<span class="Identifier">hintXCannotRaiseY</span> <span class="Other">=</span> <span class="StringLit">&quot;XCannotRaiseY&quot;</span><span class="Other">,</span>
<span class="Identifier">hintConvToBaseNotNeeded</span> <span class="Other">=</span> <span class="StringLit">&quot;ConvToBaseNotNeeded&quot;</span><span class="Other">,</span>
<span class="Identifier">hintConvFromXtoItselfNotNeeded</span> <span class="Other">=</span> <span class="StringLit">&quot;ConvFromXtoItselfNotNeeded&quot;</span><span class="Other">,</span>
<span class="Identifier">hintExprAlwaysX</span> <span class="Other">=</span> <span class="StringLit">&quot;ExprAlwaysX&quot;</span><span class="Other">,</span> <span class="Identifier">hintQuitCalled</span> <span class="Other">=</span> <span class="StringLit">&quot;QuitCalled&quot;</span><span class="Other">,</span>
<span class="Identifier">hintProcessing</span> <span class="Other">=</span> <span class="StringLit">&quot;Processing&quot;</span><span class="Other">,</span> <span class="Identifier">hintProcessingStmt</span> <span class="Other">=</span> <span class="StringLit">&quot;ProcessingStmt&quot;</span><span class="Other">,</span>
<span class="Identifier">hintCodeBegin</span> <span class="Other">=</span> <span class="StringLit">&quot;CodeBegin&quot;</span><span class="Other">,</span> <span class="Identifier">hintCodeEnd</span> <span class="Other">=</span> <span class="StringLit">&quot;CodeEnd&quot;</span><span class="Other">,</span> <span class="Identifier">hintConf</span> <span class="Other">=</span> <span class="StringLit">&quot;Conf&quot;</span><span class="Other">,</span>
<span class="Identifier">hintPath</span> <span class="Other">=</span> <span class="StringLit">&quot;Path&quot;</span><span class="Other">,</span> <span class="Identifier">hintConditionAlwaysTrue</span> <span class="Other">=</span> <span class="StringLit">&quot;CondTrue&quot;</span><span class="Other">,</span>
<span class="Identifier">hintConditionAlwaysFalse</span> <span class="Other">=</span> <span class="StringLit">&quot;CondFalse&quot;</span><span class="Other">,</span> <span class="Identifier">hintName</span> <span class="Other">=</span> <span class="StringLit">&quot;Name&quot;</span><span class="Other">,</span>
<span class="Identifier">hintPattern</span> <span class="Other">=</span> <span class="StringLit">&quot;Pattern&quot;</span><span class="Other">,</span> <span class="Identifier">hintExecuting</span> <span class="Other">=</span> <span class="StringLit">&quot;Exec&quot;</span><span class="Other">,</span> <span class="Identifier">hintLinking</span> <span class="Other">=</span> <span class="StringLit">&quot;Link&quot;</span><span class="Other">,</span>
<span class="Identifier">hintDependency</span> <span class="Other">=</span> <span class="StringLit">&quot;Dependency&quot;</span><span class="Other">,</span> <span class="Identifier">hintSource</span> <span class="Other">=</span> <span class="StringLit">&quot;Source&quot;</span><span class="Other">,</span>
<span class="Identifier">hintPerformance</span> <span class="Other">=</span> <span class="StringLit">&quot;Performance&quot;</span><span class="Other">,</span> <span class="Identifier">hintStackTrace</span> <span class="Other">=</span> <span class="StringLit">&quot;StackTrace&quot;</span><span class="Other">,</span>
<span class="Identifier">hintGCStats</span> <span class="Other">=</span> <span class="StringLit">&quot;GCStats&quot;</span><span class="Other">,</span> <span class="Identifier">hintGlobalVar</span> <span class="Other">=</span> <span class="StringLit">&quot;GlobalVar&quot;</span><span class="Other">,</span>
<span class="Identifier">hintExpandMacro</span> <span class="Other">=</span> <span class="StringLit">&quot;ExpandMacro&quot;</span><span class="Other">,</span> <span class="Identifier">hintUser</span> <span class="Other">=</span> <span class="StringLit">&quot;User&quot;</span><span class="Other">,</span> <span class="Identifier">hintUserRaw</span> <span class="Other">=</span> <span class="StringLit">&quot;UserRaw&quot;</span><span class="Other">,</span>
<span class="Identifier">hintExtendedContext</span> <span class="Other">=</span> <span class="StringLit">&quot;ExtendedContext&quot;</span><span class="Other">,</span> <span class="Identifier">hintUnknownRaises</span> <span class="Other">=</span> <span class="StringLit">&quot;UnknownRaises&quot;</span><span class="Other">,</span>
<span class="Identifier">hintMsgOrigin</span> <span class="Other">=</span> <span class="StringLit">&quot;MsgOrigin&quot;</span><span class="Other">,</span> <span class="Identifier">hintDeclaredLoc</span> <span class="Other">=</span> <span class="StringLit">&quot;DeclaredLoc&quot;</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L30" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L30" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TNoteKind">
<dt><pre><a href="lineinfos.html#TNoteKind"><span class="Identifier">TNoteKind</span></a> <span class="Other">=</span> <span class="Identifier">range</span><span class="Other">[</span><span class="Identifier">warnMin</span> <span class="Operator">..</span> <span class="Identifier">hintMax</span><span class="Other">]</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L256" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L256" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="TNoteKinds">
<dt><pre><a href="lineinfos.html#TNoteKinds"><span class="Identifier">TNoteKinds</span></a> <span class="Other">=</span> <span class="Identifier">set</span><span class="Other">[</span><a href="lineinfos.html#TNoteKind"><span class="Identifier">TNoteKind</span></a><span class="Other">]</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L257" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L257" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</dl>
</div>
<div class="section" id="10">
<h1><a class="toc-backref" href="#10">Consts</a></h1>
<dl class="item">
<div id="commandLineIdx">
<dt><pre><a href="lineinfos.html#commandLineIdx"><span class="Identifier">commandLineIdx</span></a> <span class="Other">=</span> <span class="DecNumber">-3'i32</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L338" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L338" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="errArgsNeedRunOption">
<dt><pre><a href="lineinfos.html#errArgsNeedRunOption"><span class="Identifier">errArgsNeedRunOption</span></a> <span class="Other">=</span> <span class="StringLit">&quot;arguments can only be given if the \'--run\' option is selected&quot;</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L272" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L272" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="errFloatToString">
<dt><pre><a href="lineinfos.html#errFloatToString"><span class="Identifier">errFloatToString</span></a> <span class="Other">=</span> <span class="StringLit">&quot;cannot convert \'$1\' to \'$2\'&quot;</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L273" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L273" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="errMax">
<dt><pre><a href="lineinfos.html#errMax"><span class="Identifier">errMax</span></a> <span class="Other">=</span> <span class="DecNumber">errUser</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L248" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L248" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="errMin">
<dt><pre><a href="lineinfos.html#errMin"><span class="Identifier">errMin</span></a> <span class="Other">=</span> <span class="DecNumber">errUnknown</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L247" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L247" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="errXMustBeCompileTime">
<dt><pre><a href="lineinfos.html#errXMustBeCompileTime"><span class="Identifier">errXMustBeCompileTime</span></a> <span class="Other">=</span> <span class="StringLit">&quot;\'$1\' can only be used in compile-time context&quot;</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L271" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L271" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="explanationsBaseUrl">
<dt><pre><a href="lineinfos.html#explanationsBaseUrl"><span class="Identifier">explanationsBaseUrl</span></a> <span class="Other">=</span> <span class="StringLit">&quot;https://nim-lang.github.io/Nim&quot;</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L17" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L17" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="fatalMsgs">
<dt><pre><a href="lineinfos.html#fatalMsgs"><span class="Identifier">fatalMsgs</span></a> <span class="Other">=</span> <span class="Other">{</span><span class="DecNumber">errUnknown</span><span class="Other">..</span><span class="DecNumber">errInternal</span><span class="Other">}</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L246" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L246" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="hintMax">
<dt><pre><a href="lineinfos.html#hintMax"><span class="Identifier">hintMax</span></a> <span class="Other">=</span> <span class="DecNumber">hintDeclaredLoc</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L252" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L252" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="hintMin">
<dt><pre><a href="lineinfos.html#hintMin"><span class="Identifier">hintMin</span></a> <span class="Other">=</span> <span class="DecNumber">hintSuccess</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L251" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L251" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="InvalidFileIdx">
<dt><pre><a href="lineinfos.html#InvalidFileIdx"><span class="Identifier">InvalidFileIdx</span></a> <span class="Other">=</span> <span class="DecNumber">-1'i32</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L328" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L328" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="MsgKindToStr">
<dt><pre><a href="lineinfos.html#MsgKindToStr"><span class="Identifier">MsgKindToStr</span></a><span class="Other">:</span> <span class="Identifier">array</span><span class="Other">[</span><span class="Identifier">TMsgKind</span><span class="Other">,</span> <span class="Identifier">string</span><span class="Other">]</span> <span class="Other">=</span> <span class="Other">[</span><span class="StringLit">&quot;unknown error&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;fatal error: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;internal error: $1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;illformed AST: $1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;cannot open \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;\'$1\' expected&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;grid table is not implemented&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;illformed delimiter row of a markdown table&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;Illformed table: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;new section expected $1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;general parse error&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;invalid directive: \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;invalid field: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;number of footnotes and their references don\'t match: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;disabled directive: \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;Cannot prove that \'$1\' is initialized.&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;cannot open \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;octal escape sequences do not exist; leading zero is ignored&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;\'$1\' is never read&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;\'$1\' might not have been initialized&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;config file \'$1\' is deprecated&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;\'l\' should not be used as an identifier; may look like \'1\' (one)&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;unknown magic \'$1\' might crash the compiler&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;redefinition of label \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;unknown substitution \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;ambiguous doc link $1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;broken link \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;language \'$1\' not supported&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;field \'$1\' not supported&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;importdoc for \'$1\' is not used&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;RST style: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;comment \'$1\' ignored&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;use {.base.} for base methods; baseless methods are deprecated&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;write to foreign heap&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;unsafe code: \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;imported and not used: \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;inherit from a more precise exception type like ValueError, IOError or OSError. If these don\'t suit, inherit from CatchableError or Defect.&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;each identifier is a tuple&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;setLen can potentially expand the sequence, but the element type \'$1\' doesn\'t have a valid default value&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;The \'$1\' type doesn\'t have a valid default value&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;Cannot prove that \'$1\' is initialized. This will become a compile time error in the future.&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;cannot prove that field \'$1\' is accessible&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;cannot prove index \'$1\' is valid&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;unreachable else, all cases are already covered&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;unreachable code after \'return\' statement or \'{.noReturn.}\' proc&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;not GC-safe: \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;use explicit initialization of \'$1\' for clarity&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;\'$1\' uses GC\'ed memory&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;usage of a type with a destructor in a non destructible context. This will become a compile time error in the future.&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;Special variable \'result\' is shadowed.&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;Number of spaces around \'$#\' is not consistent&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;Potential object case transition, instantiate new object instead&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;observable stores to \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;used \'result\' variable&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;cannot open: $1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;file changed: $1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;unsafe conversion to \'cstring\' from \'$1\'; Use a `cast` operation like `cast[cstring](x)`; this will become a compile time error in the future&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;template \'$1\' is implicitly redefined; this is deprecated, add an explicit .redefine pragma&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;Using an unnamed break in a block is deprecated; Use a named block with a named break instead&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1 needs the \'std\' prefix&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;global variable \'$1\' initialization requires a temporary variable&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;operation successful: $#&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$build\n$loc lines; ${sec}s; $mem; proj: $project; out: $output&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;CC: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;\'$1\' is declared but not used&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;conversion to base object is not needed&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;conversion from $1 to itself is pointless&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;expression evaluates always to \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;quit() called&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;generated code listing:&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;end of listing&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;used config file \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;added path: \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;condition is always true: \'$1\'&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;condition is always false: \'$1\'&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;global variable declared here&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;expanded macro: $1&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1 is a forward declaration without explicit .raises, assuming it can raise anything&quot;</span><span class="Other">,</span>
<span class="StringLit">&quot;$1&quot;</span><span class="Other">,</span> <span class="StringLit">&quot;$1&quot;</span><span class="Other">]</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L118" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L118" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="NotesVerbosity">
<dt><pre><a href="lineinfos.html#NotesVerbosity"><span class="Identifier">NotesVerbosity</span></a> <span class="Other">=</span> <span class="Other">[</span><span class="Other">{</span><span class="DecNumber">warnCannotOpenFile</span><span class="Other">..</span><span class="DecNumber">warnProveInit</span><span class="Other">,</span>
<span class="DecNumber">warnUnreachableElse</span><span class="Other">..</span><span class="DecNumber">warnStaticIndexCheck</span><span class="Other">,</span>
<span class="DecNumber">warnGcUnsafe2</span><span class="Other">..</span><span class="DecNumber">warnCycleCreated</span><span class="Other">,</span> <span class="DecNumber">warnStrictNotNil</span><span class="Other">,</span>
<span class="DecNumber">warnCannotOpen</span><span class="Other">..</span><span class="DecNumber">warnSuspiciousEnumConv</span><span class="Other">,</span>
<span class="DecNumber">warnHoleEnumConv</span><span class="Other">..</span><span class="DecNumber">warnStmtListLambda</span><span class="Other">,</span>
<span class="DecNumber">warnImplicitDefaultValue</span><span class="Other">..</span><span class="DecNumber">warnIgnoredSymbolInjection</span><span class="Other">,</span>
<span class="DecNumber">warnUnknownNotes</span><span class="Other">..</span><span class="DecNumber">warnGlobalVarConstructorTemporary</span><span class="Other">,</span>
<span class="DecNumber">hintXDeclaredButNotUsed</span><span class="Other">..</span><span class="DecNumber">hintQuitCalled</span><span class="Other">,</span>
<span class="DecNumber">hintConditionAlwaysTrue</span><span class="Other">..</span><span class="DecNumber">hintName</span><span class="Other">,</span>
<span class="DecNumber">hintExpandMacro</span><span class="Other">..</span><span class="DecNumber">hintUserRaw</span><span class="Other">,</span> <span class="DecNumber">hintUnknownRaises</span><span class="Other">}</span><span class="Other">,</span> <span class="Other">{</span>
<span class="DecNumber">warnCannotOpenFile</span><span class="Other">..</span><span class="DecNumber">warnProveInit</span><span class="Other">,</span>
<span class="DecNumber">warnUnreachableElse</span><span class="Other">..</span><span class="DecNumber">warnStaticIndexCheck</span><span class="Other">,</span> <span class="DecNumber">warnGcUnsafe2</span><span class="Other">..</span><span class="DecNumber">warnCycleCreated</span><span class="Other">,</span>
<span class="DecNumber">warnStrictNotNil</span><span class="Other">,</span> <span class="DecNumber">warnCannotOpen</span><span class="Other">..</span><span class="DecNumber">warnSuspiciousEnumConv</span><span class="Other">,</span>
<span class="DecNumber">warnHoleEnumConv</span><span class="Other">..</span><span class="DecNumber">warnStmtListLambda</span><span class="Other">,</span>
<span class="DecNumber">warnImplicitDefaultValue</span><span class="Other">..</span><span class="DecNumber">warnIgnoredSymbolInjection</span><span class="Other">,</span>
<span class="DecNumber">warnUnknownNotes</span><span class="Other">..</span><span class="DecNumber">hintProcessing</span><span class="Other">,</span> <span class="DecNumber">hintConf</span><span class="Other">,</span>
<span class="DecNumber">hintConditionAlwaysTrue</span><span class="Other">..</span><span class="DecNumber">hintLinking</span><span class="Other">,</span> <span class="DecNumber">hintExpandMacro</span><span class="Other">..</span><span class="DecNumber">hintUserRaw</span><span class="Other">,</span>
<span class="DecNumber">hintUnknownRaises</span><span class="Other">}</span><span class="Other">,</span> <span class="Other">{</span><span class="DecNumber">warnCannotOpenFile</span><span class="Other">..</span><span class="DecNumber">warnCycleCreated</span><span class="Other">,</span> <span class="DecNumber">warnStrictNotNil</span><span class="Other">,</span>
<span class="DecNumber">warnCannotOpen</span><span class="Other">..</span><span class="DecNumber">warnSuspiciousEnumConv</span><span class="Other">,</span>
<span class="DecNumber">warnHoleEnumConv</span><span class="Other">..</span><span class="DecNumber">warnStmtListLambda</span><span class="Other">,</span>
<span class="DecNumber">warnImplicitDefaultValue</span><span class="Other">..</span><span class="DecNumber">warnIgnoredSymbolInjection</span><span class="Other">,</span>
<span class="DecNumber">warnUnknownNotes</span><span class="Other">..</span><span class="DecNumber">hintProcessing</span><span class="Other">,</span>
<span class="DecNumber">hintCodeBegin</span><span class="Other">..</span><span class="DecNumber">hintPerformance</span><span class="Other">,</span>
<span class="DecNumber">hintGCStats</span><span class="Other">..</span><span class="DecNumber">hintUserRaw</span><span class="Other">,</span>
<span class="DecNumber">hintUnknownRaises</span><span class="Other">..</span><span class="DecNumber">hintMsgOrigin</span><span class="Other">}</span><span class="Other">,</span> <span class="Other">{</span>
<span class="DecNumber">warnCannotOpenFile</span><span class="Other">..</span><span class="DecNumber">warnCycleCreated</span><span class="Other">,</span> <span class="DecNumber">warnStrictNotNil</span><span class="Other">,</span>
<span class="DecNumber">warnCannotOpen</span><span class="Other">..</span><span class="DecNumber">warnSuspiciousEnumConv</span><span class="Other">,</span>
<span class="DecNumber">warnHoleEnumConv</span><span class="Other">..</span><span class="DecNumber">warnStmtListLambda</span><span class="Other">,</span>
<span class="DecNumber">warnImplicitDefaultValue</span><span class="Other">..</span><span class="DecNumber">warnIgnoredSymbolInjection</span><span class="Other">,</span>
<span class="DecNumber">warnUnknownNotes</span><span class="Other">..</span><span class="DecNumber">hintDeclaredLoc</span><span class="Other">}</span><span class="Other">]</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L270" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L270" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="rstWarnings">
<dt><pre><a href="lineinfos.html#rstWarnings"><span class="Identifier">rstWarnings</span></a> <span class="Other">=</span> <span class="Other">{</span><span class="DecNumber">warnRstRedefinitionOfLabel</span><span class="Other">..</span><span class="DecNumber">warnRstStyle</span><span class="Other">}</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L253" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L253" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="trackPosInvalidFileIdx">
<dt><pre><a href="lineinfos.html#trackPosInvalidFileIdx"><span class="Identifier">trackPosInvalidFileIdx</span></a> <span class="Other">=</span> <span class="DecNumber">-2'i32</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L336" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L336" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="unknownLineInfo">
<dt><pre><a href="lineinfos.html#unknownLineInfo"><span class="Identifier">unknownLineInfo</span></a> <span class="Other">=</span> <span class="Other">(</span><span class="Identifier">line</span><span class="Other">:</span> <span class="DecNumber">0'u</span><span class="Other">,</span> <span class="Identifier">col</span><span class="Other">:</span> <span class="DecNumber">-1</span><span class="Other">,</span> <span class="Identifier">fileIndex</span><span class="Other">:</span> <span class="DecNumber">-1</span><span class="Other">)</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L329" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L329" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="warnMax">
<dt><pre><a href="lineinfos.html#warnMax"><span class="Identifier">warnMax</span></a> <span class="Other">=</span> <span class="DecNumber">warnGlobalVarConstructorTemporary</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L250" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L250" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
<div id="warnMin">
<dt><pre><a href="lineinfos.html#warnMin"><span class="Identifier">warnMin</span></a> <span class="Other">=</span> <span class="DecNumber">warnCannotOpenFile</span></pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L249" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L249" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</dl>
</div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<div id="==-procs-all">
<div id="==,FileIndex,FileIndex">
<dt><pre><span class="Keyword">proc</span> <a href="#%3D%3D%2CFileIndex%2CFileIndex"><span class="Identifier">`==`</span></a><span class="Other">(</span><span class="Identifier">a</span><span class="Other">,</span> <span class="Identifier">b</span><span class="Other">:</span> <a href="lineinfos.html#FileIndex"><span class="Identifier">FileIndex</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</span> {.<span class="Identifier">borrow</span><span class="Other">,</span> <span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L319" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L319" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
<div id="createDocLink-procs-all">
<div id="createDocLink,string">
<dt><pre><span class="Keyword">proc</span> <a href="#createDocLink%2Cstring"><span class="Identifier">createDocLink</span></a><span class="Other">(</span><span class="Identifier">urlSuffix</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L21" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L21" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
<div id="hash-procs-all">
<div id="hash,TLineInfo">
<dt><pre><span class="Keyword">proc</span> <a href="#hash%2CTLineInfo"><span class="Identifier">hash</span></a><span class="Other">(</span><span class="Identifier">i</span><span class="Other">:</span> <a href="lineinfos.html#TLineInfo"><span class="Identifier">TLineInfo</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">Hash</span> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L321" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L321" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
<div id="initMsgConfig-procs-all">
<div id="initMsgConfig">
<dt><pre><span class="Keyword">proc</span> <a href="#initMsgConfig"><span class="Identifier">initMsgConfig</span></a><span class="Other">(</span><span class="Other">)</span><span class="Other">:</span> <a href="lineinfos.html#MsgConfig"><span class="Identifier">MsgConfig</span></a> {.<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L354" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L354" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
<div id="raiseRecoverableError-procs-all">
<div id="raiseRecoverableError,string">
<dt><pre><span class="Keyword">proc</span> <a href="#raiseRecoverableError%2Cstring"><span class="Identifier">raiseRecoverableError</span></a><span class="Other">(</span><span class="Identifier">msg</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> {.<span class="Identifier">noinline</span><span class="Other">,</span> <span class="Identifier">noreturn</span><span class="Other">,</span>
<span><span class="Other pragmadots">...</span></span><span class="pragmawrap"><span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">ERecoverableError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">forbids</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span>.}</pre></dt>
<dd>
<a href="https://github.com/nim-lang/Nim/tree/devel/compiler/lineinfos.nim#L324" class="link-seesrc" target="_blank">Source</a>&nbsp;&nbsp;
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L324" class="link-seesrc" target="_blank" >Edit</a>&nbsp;&nbsp;
</dd>
</div>
</div>
</dl>
</div>
</div>
</div>
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br>
<small style="color: var(--hint);">Made with Nim. Generated: 2025-09-27 04:02:27 UTC</small>
</div>
</div>
</div>
<script defer data-domain="nim-lang.org" src="https://plausible.io/js/plausible.js"></script>
</body>
</html>