C# Class JoelSpadin.BraceCompleter.Utils

Provides utilities and options needed by the brace completer
Datei anzeigen Open project: ChaosinaCan/BraceCompleter

Private Properties

Property Type Description
Utils System

Public Methods

Method Description
GetCodeTypes ( string baseType = "code" ) : IEnumerable
GetLanguage ( ITextView textView ) : string

Gets the language of the code in a textview

GetOptions ( ITextView textView ) : BraceOptions

Gets options for how brace completion should be executed

ParseBool ( object value, bool defVal = false ) : bool

Attempts to parse a bool/int/uint to a bool. If no conversion is possible, defVal is returned.

Private Methods

Method Description
Utils ( ) : System

Method Details

GetCodeTypes() public static method

public static GetCodeTypes ( string baseType = "code" ) : IEnumerable
baseType string
return IEnumerable

GetLanguage() public static method

Gets the language of the code in a textview
public static GetLanguage ( ITextView textView ) : string
textView ITextView
return string

GetOptions() public static method

Gets options for how brace completion should be executed
public static GetOptions ( ITextView textView ) : BraceOptions
textView ITextView
return BraceOptions

ParseBool() public static method

Attempts to parse a bool/int/uint to a bool. If no conversion is possible, defVal is returned.
public static ParseBool ( object value, bool defVal = false ) : bool
value object
defVal bool
return bool