C# Class Pegasus.Package.PegasusLanguageService

Implements a LanguageService for Pegasus grammars.
Inheritance: Microsoft.VisualStudio.Package.LanguageService
ファイルを表示 Open project: otac0n/Pegasus Class Usage Examples

Public Methods

Method Description
GetFormatFilterList ( ) : string

Returns a list of file extension filters suitable for a Save As dialog box.

GetLanguagePreferences ( ) : Microsoft.VisualStudio.Package.LanguagePreferences

Returns a LanguagePreferences object for this language service.

GetScanner ( IVsTextLines buffer ) : IScanner

Returns a single instantiation of a parser.

ParseSource ( Microsoft.VisualStudio.Package.ParseRequest req ) : Microsoft.VisualStudio.Package.AuthoringScope

Parses the source based on the specified ParseRequest object.

Method Details

GetFormatFilterList() public method

Returns a list of file extension filters suitable for a Save As dialog box.
public GetFormatFilterList ( ) : string
return string

GetLanguagePreferences() public method

Returns a LanguagePreferences object for this language service.
public GetLanguagePreferences ( ) : Microsoft.VisualStudio.Package.LanguagePreferences
return Microsoft.VisualStudio.Package.LanguagePreferences

GetScanner() public method

Returns a single instantiation of a parser.
public GetScanner ( IVsTextLines buffer ) : IScanner
buffer IVsTextLines An representing the lines of source to parse.
return IScanner

ParseSource() public method

Parses the source based on the specified ParseRequest object.
public ParseSource ( Microsoft.VisualStudio.Package.ParseRequest req ) : Microsoft.VisualStudio.Package.AuthoringScope
req Microsoft.VisualStudio.Package.ParseRequest The describing how to parse the source file.
return Microsoft.VisualStudio.Package.AuthoringScope