C# Class Boo.BooLangService.Intellisense.DeclarationFinder

Datei anzeigen Open project: jagregory/boolangstudio Class Usage Examples

Public Methods

Method Description
DeclarationFinder ( CompiledProject compiledProject, ISource source, string fileName ) : System
Find ( CaretLocation caretLocation, ParseReason parseReason ) : IntellisenseDeclarations
Find ( int lineNum, int colNum, ParseReason reason ) : IntellisenseDeclarations

Finds any intellisense declarations relative to the current caret position.

Private Methods

Method Description
AddImports ( IntellisenseDeclarations declarations, DocumentTreeNode document ) : void

Adds any types and namespaces, imported at the start of the document, to the declarations.

AddKeywords ( IntellisenseDeclarations declarations, IBooParseTreeNode scopedParseTree ) : void

Adds keywords based on the current scope to the declarations.

AddMemberLookupDeclarations ( IntellisenseDeclarations declarations, string lineSource, int line ) : void
AddMembersFromScopeTree ( IntellisenseDeclarations declarations, IBooParseTreeNode scopedParseTree ) : void

Adds members from the current scope (flattened, so all containing scopes are included) to the declarations.

AddReferences ( IntellisenseDeclarations declarations, ProjectTreeNode project ) : void
AddSpecialTypes ( IntellisenseDeclarations declarations ) : void
GetDocument ( IBooParseTreeNode node ) : DocumentTreeNode
GetInvocationStack ( string lineSource ) : Boo.BooLangService.Intellisense.Invocation[]
GetMembersFromCurrentScope ( int line, string lineSource ) : List
GetScopedIntellisenseDeclarations ( int lineNum ) : IntellisenseDeclarations

Method Details

DeclarationFinder() public method

public DeclarationFinder ( CompiledProject compiledProject, ISource source, string fileName ) : System
compiledProject CompiledProject
source ISource
fileName string
return System

Find() public method

public Find ( CaretLocation caretLocation, ParseReason parseReason ) : IntellisenseDeclarations
caretLocation Boo.BooLangStudioSpecs.Document.CaretLocation
parseReason ParseReason
return IntellisenseDeclarations

Find() public method

Finds any intellisense declarations relative to the current caret position.
public Find ( int lineNum, int colNum, ParseReason reason ) : IntellisenseDeclarations
lineNum int Caret line
colNum int Caret column
reason ParseReason Reason for parse
return IntellisenseDeclarations