navigation

ExpressionUtilities

Namespace: FSharpLint.Framework
Parent: FSharpLint.Framework
Values and Functions
Name Description
getSymbolFromIdent

Signature: checkFile:FSharpCheckFileResults option -> expr:SynExpr -> FSharpSymbolUse option
identAsDecompiledOpName

Signature: ident:Ident -> string

Converts an operator name e.g. op_Add to the operator symbol e.g. +

identAsCompiledOpName

Signature: identName:string -> string
removeParens

Signature: _arg1:SynExpr -> SynExpr

Extracts an expression from parentheses e.g. ((x + 4)) -> x + 4

findPos

Signature: pos:pos -> str:string -> int option

Finds index of a given (line number, column) position in a string.

longIdentToString

Signature: lid:LongIdent -> string

Converts a LongIdent to a String.

longIdentWithDotsToString

Signature: lidwd:SynLongIdent -> string

Converts a LongIdentWithDots to a String.

tryFindTextOfRange

Signature: range:Range -> text:string -> string option

Tries to find the source code within a given range.

getLeadingSpaces

Signature: range:Range -> text:string -> int
synTypeToString

Signature: text:string -> _arg1:SynType -> string option

Converts a SynType to its string representation.

typeArgsToString

Signature: text:string -> typeArgs:SynType list -> string option

Converts a list of type args to its string representation.

countPrecedingCommentLines

Signature: text:string -> startPos:pos -> endPos:pos -> int

Counts the number of comment lines preceding the given range of text.

rangeContainsOtherRange

Signature: containingRange:Range -> range:Range -> bool