Header menu logo fantomas

WarnScopes Module

Functions and values

Function or value Description

IsNowarn arg1 warningNumber mo

Full Usage: IsNowarn arg1 warningNumber mo

Parameters:
Returns: bool

Check if the range is inside a "nowarn" scope for the given warning number.

arg0 : FSharpDiagnosticOptions
warningNumber : int
mo : range option
Returns: bool

IsWarnon arg1 warningNumber mo

Full Usage: IsWarnon arg1 warningNumber mo

Parameters:
Returns: bool

Check if the range is inside a "warnon" scope for the given warning number.

arg0 : FSharpDiagnosticOptions
warningNumber : int
mo : range option
Returns: bool

MergeInto arg1 isScript subModuleRanges arg4

Full Usage: MergeInto arg1 isScript subModuleRanges arg4

Parameters:

To be called after lexing a file to create warn scopes from the stored line and warn directives and to add them to the warn scopes from other files in the diagnostics options. Note that isScript and subModuleRanges are needed only to avoid breaking changes for previous language versions.

arg0 : FSharpDiagnosticOptions
isScript : bool
subModuleRanges : range list
arg3 : Lexbuf

ParseAndRegisterWarnDirective lexbuf

Full Usage: ParseAndRegisterWarnDirective lexbuf

Parameters:

To be called during lexing to save #nowarn / #warnon directives.

lexbuf : Lexbuf

getDirectiveTrivia arg1

Full Usage: getDirectiveTrivia arg1

Parameters:
Returns: WarnDirectiveTrivia list

Get the collected ranges of the warn directives

arg0 : Lexbuf
Returns: WarnDirectiveTrivia list

Type something to start searching.