C# Class Boo.BooLangProject.BooProjectSources

Represents a Boo project, in terms of source files and parsing. Acts as a facade over the boo compiler, to allow easier compilation of all the Boo files in a project.
Show file Open project: jagregory/boolangstudio Class Usage Examples

Private Properties

Property Type Description
Compile void
GetSource string
HasFile bool
ReloadSources void
ResetCompiledProject void
hierarchyListener_Completed void
hierarchyListener_ItemAdded void

Public Methods

Method Description
BooProjectSources ( BooLangService languageService ) : System
Find ( string file ) : BooProjectSources

Finds a project in the loaded projects collection that contains the specified file.

GetCompiledProject ( ) : CompiledProject

Gets the compiled output for the current project, compiling it if needed.

StartWatchingHierarchy ( IVsHierarchy hierarchy ) : void
Update ( Microsoft.VisualStudio.Package.ParseRequest request ) : void

Updates the compiled project when a parse request is raised.

Private Methods

Method Description
Compile ( ) : void

Iterates the files and compiles them en-masse.

GetSource ( string fileName ) : string

Gets the contents of a file.

HasFile ( string fileName ) : bool

Checks whether a project contains the specified file.

ReloadSources ( ) : void
ResetCompiledProject ( ) : void

Resets the compiled project, so it'll be recompiled on the next call.

hierarchyListener_Completed ( object sender, EventArgs e ) : void
hierarchyListener_ItemAdded ( object sender, HierarchyEventArgs e ) : void

Method Details

BooProjectSources() public method

public BooProjectSources ( BooLangService languageService ) : System
languageService BooLangService
return System

Find() public static method

Finds a project in the loaded projects collection that contains the specified file.
public static Find ( string file ) : BooProjectSources
file string Path of a file to find in a project.
return BooProjectSources

GetCompiledProject() public method

Gets the compiled output for the current project, compiling it if needed.
public GetCompiledProject ( ) : CompiledProject
return CompiledProject

StartWatchingHierarchy() public method

public StartWatchingHierarchy ( IVsHierarchy hierarchy ) : void
hierarchy IVsHierarchy
return void

Update() public method

Updates the compiled project when a parse request is raised.
public Update ( Microsoft.VisualStudio.Package.ParseRequest request ) : void
request Microsoft.VisualStudio.Package.ParseRequest Parse request that raised the update.
return void