mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
888 lines
88 KiB
HTML
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: </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 = "CannotOpenFile",
|
|
warnOctalEscape = "OctalEscape", warnXIsNeverRead = "XIsNeverRead",
|
|
warnXmightNotBeenInit = "XmightNotBeenInit", warnDeprecated = "Deprecated",
|
|
warnConfigDeprecated = "ConfigDeprecated", warnDotLikeOps = "DotLikeOps",
|
|
warnSmallLshouldNotBeUsed = "SmallLshouldNotBeUsed",
|
|
warnUnknownMagic = "UnknownMagic",
|
|
warnRstRedefinitionOfLabel = "RedefinitionOfLabel",
|
|
warnRstUnknownSubstitutionX = "UnknownSubstitutionX",
|
|
warnRstAmbiguousLink = "AmbiguousLink", warnRstBrokenLink = "BrokenLink",
|
|
warnRstLanguageXNotSupported = "LanguageXNotSupported",
|
|
warnRstFieldXNotSupported = "FieldXNotSupported",
|
|
warnRstUnusedImportdoc = "UnusedImportdoc", warnRstStyle = "warnRstStyle",
|
|
warnCommentXIgnored = "CommentXIgnored", warnTypelessParam = "TypelessParam",
|
|
warnUseBase = "UseBase", warnWriteToForeignHeap = "WriteToForeignHeap",
|
|
warnUnsafeCode = "UnsafeCode", warnUnusedImportX = "UnusedImport",
|
|
warnInheritFromException = "InheritFromException",
|
|
warnEachIdentIsTuple = "EachIdentIsTuple", warnUnsafeSetLen = "UnsafeSetLen",
|
|
warnUnsafeDefault = "UnsafeDefault", warnProveInit = "ProveInit",
|
|
warnProveField = "ProveField", warnProveIndex = "ProveIndex",
|
|
warnUnreachableElse = "UnreachableElse",
|
|
warnUnreachableCode = "UnreachableCode", warnStaticIndexCheck = "IndexCheck",
|
|
warnGcUnsafe = "GcUnsafe", warnGcUnsafe2 = "GcUnsafe2", warnUninit = "Uninit",
|
|
warnGcMem = "GcMem", warnDestructor = "Destructor",
|
|
warnLockLevel = "LockLevel", warnResultShadowed = "ResultShadowed",
|
|
warnInconsistentSpacing = "Spacing", warnCaseTransition = "CaseTransition",
|
|
warnCycleCreated = "CycleCreated", warnObservableStores = "ObservableStores",
|
|
warnStrictNotNil = "StrictNotNil", warnResultUsed = "ResultUsed",
|
|
warnCannotOpen = "CannotOpen", warnFileChanged = "FileChanged",
|
|
warnSuspiciousEnumConv = "EnumConv", warnAnyEnumConv = "AnyEnumConv",
|
|
warnHoleEnumConv = "HoleEnumConv", warnCstringConv = "CStringConv",
|
|
warnPtrToCstringConv = "PtrToCstringConv", warnEffect = "Effect",
|
|
warnCastSizes = "CastSizes", warnAboveMaxSizeSet = "AboveMaxSizeSet",
|
|
warnImplicitTemplateRedefinition = "ImplicitTemplateRedefinition",
|
|
warnUnnamedBreak = "UnnamedBreak", warnStmtListLambda = "StmtListLambda",
|
|
warnBareExcept = "BareExcept",
|
|
warnImplicitDefaultValue = "ImplicitDefaultValue",
|
|
warnIgnoredSymbolInjection = "IgnoredSymbolInjection",
|
|
warnStdPrefix = "StdPrefix", warnUnknownNotes = "UnknownNotes",
|
|
warnUser = "User",
|
|
warnGlobalVarConstructorTemporary = "GlobalVarConstructorTemporary",
|
|
hintSuccess = "Success", hintSuccessX = "SuccessX", hintCC = "CC",
|
|
hintXDeclaredButNotUsed = "XDeclaredButNotUsed",
|
|
hintDuplicateModuleImport = "DuplicateModuleImport",
|
|
hintXCannotRaiseY = "XCannotRaiseY",
|
|
hintConvToBaseNotNeeded = "ConvToBaseNotNeeded",
|
|
hintConvFromXtoItselfNotNeeded = "ConvFromXtoItselfNotNeeded",
|
|
hintExprAlwaysX = "ExprAlwaysX", hintQuitCalled = "QuitCalled",
|
|
hintProcessing = "Processing", hintProcessingStmt = "ProcessingStmt",
|
|
hintCodeBegin = "CodeBegin", hintCodeEnd = "CodeEnd", hintConf = "Conf",
|
|
hintPath = "Path", hintConditionAlwaysTrue = "CondTrue",
|
|
hintConditionAlwaysFalse = "CondFalse", hintName = "Name",
|
|
hintPattern = "Pattern", hintExecuting = "Exec", hintLinking = "Link",
|
|
hintDependency = "Dependency", hintSource = "Source",
|
|
hintPerformance = "Performance", hintStackTrace = "StackTrace",
|
|
hintGCStats = "GCStats", hintGlobalVar = "GlobalVar",
|
|
hintExpandMacro = "ExpandMacro", hintUser = "User", hintUserRaw = "UserRaw",
|
|
hintExtendedContext = "ExtendedContext", hintUnknownRaises = "UnknownRaises",
|
|
hintMsgOrigin = "MsgOrigin", hintDeclaredLoc = "DeclaredLoc"">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 = "arguments can only be given if the \'--run\' option is selected"">errArgsNeedRunOption</a></li>
|
|
<li><a class="reference" href="#errFloatToString" title="errFloatToString = "cannot convert \'$1\' to \'$2\'"">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 = "\'$1\' can only be used in compile-time context"">errXMustBeCompileTime</a></li>
|
|
<li><a class="reference" href="#explanationsBaseUrl" title="explanationsBaseUrl = "https://nim-lang.github.io/Nim"">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] = ["unknown error", "fatal error: $1",
|
|
"internal error: $1", "illformed AST: $1", "cannot open \'$1\'",
|
|
"\'$1\' expected", "$1", "grid table is not implemented",
|
|
"illformed delimiter row of a markdown table", "Illformed table: $1",
|
|
"new section expected $1", "general parse error",
|
|
"invalid directive: \'$1\'", "invalid field: $1",
|
|
"number of footnotes and their references don\'t match: $1",
|
|
"disabled directive: \'$1\'", "Cannot prove that \'$1\' is initialized.",
|
|
"$1", "$1", "$1", "cannot open \'$1\'",
|
|
"octal escape sequences do not exist; leading zero is ignored",
|
|
"\'$1\' is never read", "\'$1\' might not have been initialized", "$1",
|
|
"config file \'$1\' is deprecated", "$1",
|
|
"\'l\' should not be used as an identifier; may look like \'1\' (one)",
|
|
"unknown magic \'$1\' might crash the compiler",
|
|
"redefinition of label \'$1\'", "unknown substitution \'$1\'",
|
|
"ambiguous doc link $1", "broken link \'$1\'",
|
|
"language \'$1\' not supported", "field \'$1\' not supported",
|
|
"importdoc for \'$1\' is not used", "RST style: $1",
|
|
"comment \'$1\' ignored", "",
|
|
"use {.base.} for base methods; baseless methods are deprecated",
|
|
"write to foreign heap", "unsafe code: \'$1\'",
|
|
"imported and not used: \'$1\'", "inherit from a more precise exception type like ValueError, IOError or OSError. If these don\'t suit, inherit from CatchableError or Defect.",
|
|
"each identifier is a tuple", "setLen can potentially expand the sequence, but the element type \'$1\' doesn\'t have a valid default value",
|
|
"The \'$1\' type doesn\'t have a valid default value", "Cannot prove that \'$1\' is initialized. This will become a compile time error in the future.",
|
|
"cannot prove that field \'$1\' is accessible",
|
|
"cannot prove index \'$1\' is valid",
|
|
"unreachable else, all cases are already covered",
|
|
"unreachable code after \'return\' statement or \'{.noReturn.}\' proc",
|
|
"$1", "not GC-safe: \'$1\'", "$1",
|
|
"use explicit initialization of \'$1\' for clarity",
|
|
"\'$1\' uses GC\'ed memory", "usage of a type with a destructor in a non destructible context. This will become a compile time error in the future.",
|
|
"$1", "Special variable \'result\' is shadowed.",
|
|
"Number of spaces around \'$#\' is not consistent",
|
|
"Potential object case transition, instantiate new object instead", "$1",
|
|
"observable stores to \'$1\'", "$1", "used \'result\' variable",
|
|
"cannot open: $1", "file changed: $1", "$1", "$1", "$1", "$1", "unsafe conversion to \'cstring\' from \'$1\'; Use a `cast` operation like `cast[cstring](x)`; this will become a compile time error in the future",
|
|
"$1", "$1", "$1", "template \'$1\' is implicitly redefined; this is deprecated, add an explicit .redefine pragma", "Using an unnamed break in a block is deprecated; Use a named block with a named break instead", "statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead",
|
|
"$1", "$1", "$1", "$1 needs the \'std\' prefix", "$1", "$1",
|
|
"global variable \'$1\' initialization requires a temporary variable",
|
|
"operation successful: $#",
|
|
"$build\n$loc lines; ${sec}s; $mem; proj: $project; out: $output", "CC: $1",
|
|
"\'$1\' is declared but not used", "$1", "$1",
|
|
"conversion to base object is not needed",
|
|
"conversion from $1 to itself is pointless",
|
|
"expression evaluates always to \'$1\'", "quit() called", "$1", "$1",
|
|
"generated code listing:", "end of listing", "used config file \'$1\'",
|
|
"added path: \'$1\'", "condition is always true: \'$1\'",
|
|
"condition is always false: \'$1\'", "$1", "$1", "$1", "$1", "$1", "$1",
|
|
"$1", "$1", "$1", "global variable declared here", "expanded macro: $1",
|
|
"$1", "$1", "$1", "$1 is a forward declaration without explicit .raises, assuming it can raise anything",
|
|
"$1", "$1"]">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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L1" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
<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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L316" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L317" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L296" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L341" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L332" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L310" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L314" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L276" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L297" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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">"CannotOpenFile"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnOctalEscape</span> <span class="Other">=</span> <span class="StringLit">"OctalEscape"</span><span class="Other">,</span> <span class="Identifier">warnXIsNeverRead</span> <span class="Other">=</span> <span class="StringLit">"XIsNeverRead"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnXmightNotBeenInit</span> <span class="Other">=</span> <span class="StringLit">"XmightNotBeenInit"</span><span class="Other">,</span> <span class="Identifier">warnDeprecated</span> <span class="Other">=</span> <span class="StringLit">"Deprecated"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnConfigDeprecated</span> <span class="Other">=</span> <span class="StringLit">"ConfigDeprecated"</span><span class="Other">,</span> <span class="Identifier">warnDotLikeOps</span> <span class="Other">=</span> <span class="StringLit">"DotLikeOps"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnSmallLshouldNotBeUsed</span> <span class="Other">=</span> <span class="StringLit">"SmallLshouldNotBeUsed"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUnknownMagic</span> <span class="Other">=</span> <span class="StringLit">"UnknownMagic"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnRstRedefinitionOfLabel</span> <span class="Other">=</span> <span class="StringLit">"RedefinitionOfLabel"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnRstUnknownSubstitutionX</span> <span class="Other">=</span> <span class="StringLit">"UnknownSubstitutionX"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnRstAmbiguousLink</span> <span class="Other">=</span> <span class="StringLit">"AmbiguousLink"</span><span class="Other">,</span> <span class="Identifier">warnRstBrokenLink</span> <span class="Other">=</span> <span class="StringLit">"BrokenLink"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnRstLanguageXNotSupported</span> <span class="Other">=</span> <span class="StringLit">"LanguageXNotSupported"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnRstFieldXNotSupported</span> <span class="Other">=</span> <span class="StringLit">"FieldXNotSupported"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnRstUnusedImportdoc</span> <span class="Other">=</span> <span class="StringLit">"UnusedImportdoc"</span><span class="Other">,</span> <span class="Identifier">warnRstStyle</span> <span class="Other">=</span> <span class="StringLit">"warnRstStyle"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnCommentXIgnored</span> <span class="Other">=</span> <span class="StringLit">"CommentXIgnored"</span><span class="Other">,</span> <span class="Identifier">warnTypelessParam</span> <span class="Other">=</span> <span class="StringLit">"TypelessParam"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUseBase</span> <span class="Other">=</span> <span class="StringLit">"UseBase"</span><span class="Other">,</span> <span class="Identifier">warnWriteToForeignHeap</span> <span class="Other">=</span> <span class="StringLit">"WriteToForeignHeap"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUnsafeCode</span> <span class="Other">=</span> <span class="StringLit">"UnsafeCode"</span><span class="Other">,</span> <span class="Identifier">warnUnusedImportX</span> <span class="Other">=</span> <span class="StringLit">"UnusedImport"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnInheritFromException</span> <span class="Other">=</span> <span class="StringLit">"InheritFromException"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnEachIdentIsTuple</span> <span class="Other">=</span> <span class="StringLit">"EachIdentIsTuple"</span><span class="Other">,</span> <span class="Identifier">warnUnsafeSetLen</span> <span class="Other">=</span> <span class="StringLit">"UnsafeSetLen"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUnsafeDefault</span> <span class="Other">=</span> <span class="StringLit">"UnsafeDefault"</span><span class="Other">,</span> <span class="Identifier">warnProveInit</span> <span class="Other">=</span> <span class="StringLit">"ProveInit"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnProveField</span> <span class="Other">=</span> <span class="StringLit">"ProveField"</span><span class="Other">,</span> <span class="Identifier">warnProveIndex</span> <span class="Other">=</span> <span class="StringLit">"ProveIndex"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUnreachableElse</span> <span class="Other">=</span> <span class="StringLit">"UnreachableElse"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUnreachableCode</span> <span class="Other">=</span> <span class="StringLit">"UnreachableCode"</span><span class="Other">,</span> <span class="Identifier">warnStaticIndexCheck</span> <span class="Other">=</span> <span class="StringLit">"IndexCheck"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnGcUnsafe</span> <span class="Other">=</span> <span class="StringLit">"GcUnsafe"</span><span class="Other">,</span> <span class="Identifier">warnGcUnsafe2</span> <span class="Other">=</span> <span class="StringLit">"GcUnsafe2"</span><span class="Other">,</span> <span class="Identifier">warnUninit</span> <span class="Other">=</span> <span class="StringLit">"Uninit"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnGcMem</span> <span class="Other">=</span> <span class="StringLit">"GcMem"</span><span class="Other">,</span> <span class="Identifier">warnDestructor</span> <span class="Other">=</span> <span class="StringLit">"Destructor"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnLockLevel</span> <span class="Other">=</span> <span class="StringLit">"LockLevel"</span><span class="Other">,</span> <span class="Identifier">warnResultShadowed</span> <span class="Other">=</span> <span class="StringLit">"ResultShadowed"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnInconsistentSpacing</span> <span class="Other">=</span> <span class="StringLit">"Spacing"</span><span class="Other">,</span> <span class="Identifier">warnCaseTransition</span> <span class="Other">=</span> <span class="StringLit">"CaseTransition"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnCycleCreated</span> <span class="Other">=</span> <span class="StringLit">"CycleCreated"</span><span class="Other">,</span> <span class="Identifier">warnObservableStores</span> <span class="Other">=</span> <span class="StringLit">"ObservableStores"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnStrictNotNil</span> <span class="Other">=</span> <span class="StringLit">"StrictNotNil"</span><span class="Other">,</span> <span class="Identifier">warnResultUsed</span> <span class="Other">=</span> <span class="StringLit">"ResultUsed"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnCannotOpen</span> <span class="Other">=</span> <span class="StringLit">"CannotOpen"</span><span class="Other">,</span> <span class="Identifier">warnFileChanged</span> <span class="Other">=</span> <span class="StringLit">"FileChanged"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnSuspiciousEnumConv</span> <span class="Other">=</span> <span class="StringLit">"EnumConv"</span><span class="Other">,</span> <span class="Identifier">warnAnyEnumConv</span> <span class="Other">=</span> <span class="StringLit">"AnyEnumConv"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnHoleEnumConv</span> <span class="Other">=</span> <span class="StringLit">"HoleEnumConv"</span><span class="Other">,</span> <span class="Identifier">warnCstringConv</span> <span class="Other">=</span> <span class="StringLit">"CStringConv"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnPtrToCstringConv</span> <span class="Other">=</span> <span class="StringLit">"PtrToCstringConv"</span><span class="Other">,</span> <span class="Identifier">warnEffect</span> <span class="Other">=</span> <span class="StringLit">"Effect"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnCastSizes</span> <span class="Other">=</span> <span class="StringLit">"CastSizes"</span><span class="Other">,</span> <span class="Identifier">warnAboveMaxSizeSet</span> <span class="Other">=</span> <span class="StringLit">"AboveMaxSizeSet"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnImplicitTemplateRedefinition</span> <span class="Other">=</span> <span class="StringLit">"ImplicitTemplateRedefinition"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUnnamedBreak</span> <span class="Other">=</span> <span class="StringLit">"UnnamedBreak"</span><span class="Other">,</span> <span class="Identifier">warnStmtListLambda</span> <span class="Other">=</span> <span class="StringLit">"StmtListLambda"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnBareExcept</span> <span class="Other">=</span> <span class="StringLit">"BareExcept"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnImplicitDefaultValue</span> <span class="Other">=</span> <span class="StringLit">"ImplicitDefaultValue"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnIgnoredSymbolInjection</span> <span class="Other">=</span> <span class="StringLit">"IgnoredSymbolInjection"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnStdPrefix</span> <span class="Other">=</span> <span class="StringLit">"StdPrefix"</span><span class="Other">,</span> <span class="Identifier">warnUnknownNotes</span> <span class="Other">=</span> <span class="StringLit">"UnknownNotes"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnUser</span> <span class="Other">=</span> <span class="StringLit">"User"</span><span class="Other">,</span>
|
|
<span class="Identifier">warnGlobalVarConstructorTemporary</span> <span class="Other">=</span> <span class="StringLit">"GlobalVarConstructorTemporary"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintSuccess</span> <span class="Other">=</span> <span class="StringLit">"Success"</span><span class="Other">,</span> <span class="Identifier">hintSuccessX</span> <span class="Other">=</span> <span class="StringLit">"SuccessX"</span><span class="Other">,</span> <span class="Identifier">hintCC</span> <span class="Other">=</span> <span class="StringLit">"CC"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintXDeclaredButNotUsed</span> <span class="Other">=</span> <span class="StringLit">"XDeclaredButNotUsed"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintDuplicateModuleImport</span> <span class="Other">=</span> <span class="StringLit">"DuplicateModuleImport"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintXCannotRaiseY</span> <span class="Other">=</span> <span class="StringLit">"XCannotRaiseY"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintConvToBaseNotNeeded</span> <span class="Other">=</span> <span class="StringLit">"ConvToBaseNotNeeded"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintConvFromXtoItselfNotNeeded</span> <span class="Other">=</span> <span class="StringLit">"ConvFromXtoItselfNotNeeded"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintExprAlwaysX</span> <span class="Other">=</span> <span class="StringLit">"ExprAlwaysX"</span><span class="Other">,</span> <span class="Identifier">hintQuitCalled</span> <span class="Other">=</span> <span class="StringLit">"QuitCalled"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintProcessing</span> <span class="Other">=</span> <span class="StringLit">"Processing"</span><span class="Other">,</span> <span class="Identifier">hintProcessingStmt</span> <span class="Other">=</span> <span class="StringLit">"ProcessingStmt"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintCodeBegin</span> <span class="Other">=</span> <span class="StringLit">"CodeBegin"</span><span class="Other">,</span> <span class="Identifier">hintCodeEnd</span> <span class="Other">=</span> <span class="StringLit">"CodeEnd"</span><span class="Other">,</span> <span class="Identifier">hintConf</span> <span class="Other">=</span> <span class="StringLit">"Conf"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintPath</span> <span class="Other">=</span> <span class="StringLit">"Path"</span><span class="Other">,</span> <span class="Identifier">hintConditionAlwaysTrue</span> <span class="Other">=</span> <span class="StringLit">"CondTrue"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintConditionAlwaysFalse</span> <span class="Other">=</span> <span class="StringLit">"CondFalse"</span><span class="Other">,</span> <span class="Identifier">hintName</span> <span class="Other">=</span> <span class="StringLit">"Name"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintPattern</span> <span class="Other">=</span> <span class="StringLit">"Pattern"</span><span class="Other">,</span> <span class="Identifier">hintExecuting</span> <span class="Other">=</span> <span class="StringLit">"Exec"</span><span class="Other">,</span> <span class="Identifier">hintLinking</span> <span class="Other">=</span> <span class="StringLit">"Link"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintDependency</span> <span class="Other">=</span> <span class="StringLit">"Dependency"</span><span class="Other">,</span> <span class="Identifier">hintSource</span> <span class="Other">=</span> <span class="StringLit">"Source"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintPerformance</span> <span class="Other">=</span> <span class="StringLit">"Performance"</span><span class="Other">,</span> <span class="Identifier">hintStackTrace</span> <span class="Other">=</span> <span class="StringLit">"StackTrace"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintGCStats</span> <span class="Other">=</span> <span class="StringLit">"GCStats"</span><span class="Other">,</span> <span class="Identifier">hintGlobalVar</span> <span class="Other">=</span> <span class="StringLit">"GlobalVar"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintExpandMacro</span> <span class="Other">=</span> <span class="StringLit">"ExpandMacro"</span><span class="Other">,</span> <span class="Identifier">hintUser</span> <span class="Other">=</span> <span class="StringLit">"User"</span><span class="Other">,</span> <span class="Identifier">hintUserRaw</span> <span class="Other">=</span> <span class="StringLit">"UserRaw"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintExtendedContext</span> <span class="Other">=</span> <span class="StringLit">"ExtendedContext"</span><span class="Other">,</span> <span class="Identifier">hintUnknownRaises</span> <span class="Other">=</span> <span class="StringLit">"UnknownRaises"</span><span class="Other">,</span>
|
|
<span class="Identifier">hintMsgOrigin</span> <span class="Other">=</span> <span class="StringLit">"MsgOrigin"</span><span class="Other">,</span> <span class="Identifier">hintDeclaredLoc</span> <span class="Other">=</span> <span class="StringLit">"DeclaredLoc"</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L30" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L256" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L257" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L338" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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">"arguments can only be given if the \'--run\' option is selected"</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L272" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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">"cannot convert \'$1\' to \'$2\'"</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L273" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L248" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L247" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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">"\'$1\' can only be used in compile-time context"</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L271" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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">"https://nim-lang.github.io/Nim"</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L17" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L246" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L252" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L251" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L328" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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">"unknown error"</span><span class="Other">,</span> <span class="StringLit">"fatal error: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"internal error: $1"</span><span class="Other">,</span> <span class="StringLit">"illformed AST: $1"</span><span class="Other">,</span> <span class="StringLit">"cannot open \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"\'$1\' expected"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"grid table is not implemented"</span><span class="Other">,</span>
|
|
<span class="StringLit">"illformed delimiter row of a markdown table"</span><span class="Other">,</span> <span class="StringLit">"Illformed table: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"new section expected $1"</span><span class="Other">,</span> <span class="StringLit">"general parse error"</span><span class="Other">,</span>
|
|
<span class="StringLit">"invalid directive: \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"invalid field: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"number of footnotes and their references don\'t match: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"disabled directive: \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"Cannot prove that \'$1\' is initialized."</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"cannot open \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"octal escape sequences do not exist; leading zero is ignored"</span><span class="Other">,</span>
|
|
<span class="StringLit">"\'$1\' is never read"</span><span class="Other">,</span> <span class="StringLit">"\'$1\' might not have been initialized"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"config file \'$1\' is deprecated"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"\'l\' should not be used as an identifier; may look like \'1\' (one)"</span><span class="Other">,</span>
|
|
<span class="StringLit">"unknown magic \'$1\' might crash the compiler"</span><span class="Other">,</span>
|
|
<span class="StringLit">"redefinition of label \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"unknown substitution \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"ambiguous doc link $1"</span><span class="Other">,</span> <span class="StringLit">"broken link \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"language \'$1\' not supported"</span><span class="Other">,</span> <span class="StringLit">"field \'$1\' not supported"</span><span class="Other">,</span>
|
|
<span class="StringLit">"importdoc for \'$1\' is not used"</span><span class="Other">,</span> <span class="StringLit">"RST style: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"comment \'$1\' ignored"</span><span class="Other">,</span> <span class="StringLit">""</span><span class="Other">,</span>
|
|
<span class="StringLit">"use {.base.} for base methods; baseless methods are deprecated"</span><span class="Other">,</span>
|
|
<span class="StringLit">"write to foreign heap"</span><span class="Other">,</span> <span class="StringLit">"unsafe code: \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"imported and not used: \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"inherit from a more precise exception type like ValueError, IOError or OSError. If these don\'t suit, inherit from CatchableError or Defect."</span><span class="Other">,</span>
|
|
<span class="StringLit">"each identifier is a tuple"</span><span class="Other">,</span> <span class="StringLit">"setLen can potentially expand the sequence, but the element type \'$1\' doesn\'t have a valid default value"</span><span class="Other">,</span>
|
|
<span class="StringLit">"The \'$1\' type doesn\'t have a valid default value"</span><span class="Other">,</span> <span class="StringLit">"Cannot prove that \'$1\' is initialized. This will become a compile time error in the future."</span><span class="Other">,</span>
|
|
<span class="StringLit">"cannot prove that field \'$1\' is accessible"</span><span class="Other">,</span>
|
|
<span class="StringLit">"cannot prove index \'$1\' is valid"</span><span class="Other">,</span>
|
|
<span class="StringLit">"unreachable else, all cases are already covered"</span><span class="Other">,</span>
|
|
<span class="StringLit">"unreachable code after \'return\' statement or \'{.noReturn.}\' proc"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"not GC-safe: \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"use explicit initialization of \'$1\' for clarity"</span><span class="Other">,</span>
|
|
<span class="StringLit">"\'$1\' uses GC\'ed memory"</span><span class="Other">,</span> <span class="StringLit">"usage of a type with a destructor in a non destructible context. This will become a compile time error in the future."</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"Special variable \'result\' is shadowed."</span><span class="Other">,</span>
|
|
<span class="StringLit">"Number of spaces around \'$#\' is not consistent"</span><span class="Other">,</span>
|
|
<span class="StringLit">"Potential object case transition, instantiate new object instead"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"observable stores to \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"used \'result\' variable"</span><span class="Other">,</span>
|
|
<span class="StringLit">"cannot open: $1"</span><span class="Other">,</span> <span class="StringLit">"file changed: $1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"unsafe conversion to \'cstring\' from \'$1\'; Use a `cast` operation like `cast[cstring](x)`; this will become a compile time error in the future"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"template \'$1\' is implicitly redefined; this is deprecated, add an explicit .redefine pragma"</span><span class="Other">,</span> <span class="StringLit">"Using an unnamed break in a block is deprecated; Use a named block with a named break instead"</span><span class="Other">,</span> <span class="StringLit">"statement list expression assumed to be anonymous proc; this is deprecated, use `do (): ...` or `proc () = ...` instead"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1 needs the \'std\' prefix"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"global variable \'$1\' initialization requires a temporary variable"</span><span class="Other">,</span>
|
|
<span class="StringLit">"operation successful: $#"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$build\n$loc lines; ${sec}s; $mem; proj: $project; out: $output"</span><span class="Other">,</span> <span class="StringLit">"CC: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"\'$1\' is declared but not used"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"conversion to base object is not needed"</span><span class="Other">,</span>
|
|
<span class="StringLit">"conversion from $1 to itself is pointless"</span><span class="Other">,</span>
|
|
<span class="StringLit">"expression evaluates always to \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"quit() called"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"generated code listing:"</span><span class="Other">,</span> <span class="StringLit">"end of listing"</span><span class="Other">,</span> <span class="StringLit">"used config file \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"added path: \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"condition is always true: \'$1\'"</span><span class="Other">,</span>
|
|
<span class="StringLit">"condition is always false: \'$1\'"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"global variable declared here"</span><span class="Other">,</span> <span class="StringLit">"expanded macro: $1"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1 is a forward declaration without explicit .raises, assuming it can raise anything"</span><span class="Other">,</span>
|
|
<span class="StringLit">"$1"</span><span class="Other">,</span> <span class="StringLit">"$1"</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L118" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L270" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L253" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L336" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L329" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L250" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L249" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L319" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L21" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L321" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L354" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|
|
<a href="https://github.com/nim-lang/Nim/edit/devel/compiler/lineinfos.nim#L324" class="link-seesrc" target="_blank" >Edit</a>
|
|
|
|
</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>
|