Core Function LineInfo

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
UberFoX (Talk | contribs)
(Created page with "<pre> LineInfo( ) </pre> === Description === Get a vast amount of *behind the scene* information the current line of source code being executed. === Return Value === Success:...")
Newer edit →

Revision as of 09:43, 21 June 2015

LineInfo( )

Contents

Description

Get a vast amount of *behind the scene* information the current line of source code being executed.

Return Value

Success: Returns an array of information.

Failure: Returns null.

Remarks

More information will be added as time goes by but the array should remain in same format and provide the same info in future versions so it should be safe to rely on it.

Example

// Get the line info
printr LineInfo();
// Array
// (
//     [SymbolName] => Normal Stm
//     [SymbolKind] => 0
//     [SymbolKindStr] => Nonterminal
//     [SymbolXmlName] => NormalStm
//     [SymbolIndex] => 199
//     [SymbolInfo] => <Normal Stm>
//     [PositionFileName] => f:\sputnik\bin\main.spk
//     [PositionColumn] => 1
//     [PositionIndex] => 72
//     [PositionLine] => 6
//     [PositionLineText] => printr LineInfo();
//     [PositionText] => printr
//     [PositionInfo] => 6:1
// )
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox