C# Class Microsoft.CodeAnalysis.Sarif.ExtensionMethods

Mostra file Open project: Microsoft/sarif-sdk Class Usage Examples

Public Methods

Method Description
FormatForVisualStudio ( this region ) : string
FormatForVisualStudio ( this result, IRule rule ) : string
GetFileName ( this uri ) : string
GetFirstSentence ( string text ) : string
GetMessageText ( this result, IRule rule ) : string
GetMessageText ( this result, IRule rule, bool concise ) : string
Populate ( this region, NewLineIndex newLineIndex ) : void

Completely populate all Region property members. Missing data is computed based on the values that are already present.

Method Details

FormatForVisualStudio() public static method

public static FormatForVisualStudio ( this region ) : string
region this
return string

FormatForVisualStudio() public static method

public static FormatForVisualStudio ( this result, IRule rule ) : string
result this
rule IRule
return string

GetFileName() public static method

public static GetFileName ( this uri ) : string
uri this
return string

GetFirstSentence() public static method

public static GetFirstSentence ( string text ) : string
text string
return string

GetMessageText() public static method

public static GetMessageText ( this result, IRule rule ) : string
result this
rule IRule
return string

GetMessageText() public static method

public static GetMessageText ( this result, IRule rule, bool concise ) : string
result this
rule IRule
concise bool
return string

Populate() public static method

Completely populate all Region property members. Missing data is computed based on the values that are already present.
public static Populate ( this region, NewLineIndex newLineIndex ) : void
region this
newLineIndex NewLineIndex
return void