Skip to content
svallory edited this page Nov 13, 2014 · 13 revisions

CompilerOptions

boolean fullTypeCheckMode default: false

Diagnostic

[[SourceFile|Interfaces#sourcefile-interface]] file
number start
number length
string messageText
[[DiagnosticCategory|]] category
number code

Map<TValue>

TValue some_key TValue another_key TValue . . .

    Works just like an object where values are of type TValue

SourceFile interface

string filename
string text
string[] amdDependencies
FileReference[] referencedFiles
[[Diagnostic[]|Interfaces#diagnostic]] syntacticErrors
[[Diagnostic[]|Interfaces#diagnostic]] semanticErrors
boolean hasNoDefaultLib
Node externalModuleIndicator
number nodeCount
number identifierCount
number symbolCount
boolean isOpen
string version
ScriptTarget languageVersion
[[Map|Interfaces#map]] identifiers

getLineAndCharacterFromPosition(number postion)

    returns {
        number line
        number character
    }

getPositionFromLineAndCharacter(number line, number character)

    returns number

Clone this wiki locally