Header menu logo F# Compiler Guide

Position Module

Functions and values

Function or value Description

fromZ line column

Full Usage: fromZ line column

Parameters:
    line : Line0
    column : int

Returns: pos

Convert a position from zero-based line counting (used by Visual Studio) to one-based line counting (used internally in the F# compiler and in F# error messages)

line : Line0
column : int
Returns: pos

mkPos line column

Full Usage: mkPos line column

Parameters:
    line : int
    column : int

Returns: pos

Create a position for the given line and column

line : int
column : int
Returns: pos

outputPos arg1 arg2

Full Usage: outputPos arg1 arg2

Parameters:

Output a position

arg0 : TextWriter
arg1 : pos

pos0

Full Usage: pos0

Returns: pos

The zero position

Returns: pos

posEq arg1 arg2

Full Usage: posEq arg1 arg2

Parameters:
Returns: bool

Compare positions for equality

arg0 : pos
arg1 : pos
Returns: bool

posGeq arg1 arg2

Full Usage: posGeq arg1 arg2

Parameters:
Returns: bool

Compare positions for greater-than-or-equal-to

arg0 : pos
arg1 : pos
Returns: bool

posGt arg1 arg2

Full Usage: posGt arg1 arg2

Parameters:
Returns: bool

Compare positions for greater-than

arg0 : pos
arg1 : pos
Returns: bool

posLt arg1 arg2

Full Usage: posLt arg1 arg2

Parameters:
Returns: bool

Compare positions for less-than

arg0 : pos
arg1 : pos
Returns: bool

stringOfPos arg1

Full Usage: stringOfPos arg1

Parameters:
Returns: string

Convert a position to a string

arg0 : pos
Returns: string

toZ arg1

Full Usage: toZ arg1

Parameters:
Returns: Position01

Convert a position from one-based line counting (used internally in the F# compiler and in F# error messages) to zero-based line counting (used by Visual Studio)

arg0 : pos
Returns: Position01

Type something to start searching.