navigation

ExpressionUtilities

Namespace: FSharpLint.Framework

Values and Functions
Name Description
getSymbolFromIdent

Signature: getSymbolFromIdent checkFile expr
identAsDecompiledOpName

Signature: identAsDecompiledOpName ident

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

identAsCompiledOpName

Signature: identAsCompiledOpName identName
removeParens

Signature: removeParens _arg1

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

findPos

Signature: findPos pos str

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

longIdentToString

Signature: longIdentToString lid

Converts a LongIdent to a String.

longIdentWithDotsToString

Signature: longIdentWithDotsToString lidwd

Converts a LongIdentWithDots to a String.

tryFindTextOfRange

Signature: tryFindTextOfRange range text

Tries to find the source code within a given range.

getLeadingSpaces

Signature: getLeadingSpaces range text
synTypeToString

Signature: synTypeToString text _arg1

Converts a SynType to its string representation.

typeArgsToString

Signature: typeArgsToString text typeArgs

Converts a list of type args to its string representation.

countPrecedingCommentLines

Signature: countPrecedingCommentLines text startPos endPos

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

rangeContainsOtherRange

Signature: rangeContainsOtherRange containingRange range