Class CompletionRules
- Namespace
- RDCore.SDK.Model.Symbols.Completion
- Assembly
- RDCore.SDK.dll
The names and the keywords a completion list offers for a name that is being written, by what is being written and where (MS-VBAL §5.2 for the declarations of a module, §5.4 for the statements of a procedure, §5.6 for the expressions in them).
public static class CompletionRules
- Inheritance
-
CompletionRules
- Inherited Members
Remarks
A keyword is offered where it can be written, and nowhere else. A declaration is written in the declarations section, a statement in a procedure, and the
statement that ends a block - or that can only be in one, Exit For, Case, ElseIf - in that block. An operand is a name or a keyword that
starts an expression; after an operand that is complete comes an operator, or the keyword that goes on with the statement (Then, To, In):
no name can be written there, and none is offered.
A statement that declares a name is offered nothing where the name is written - it is a new one - and the keyword that goes on with the declaration after it
(As). The statements that name something of their own kind are offered that kind: a GoTo the labels of the procedure, a RaiseEvent the
events of the class, an Implements the classes.
Methods
At(ScopeTree, Uri, CompletionSite, CompletionPlacement, CompletionLanguage)
What can be written as the name at site (Name).
public static IReadOnlyList<CompletionCandidate> At(ScopeTree tree, Uri origin, CompletionSite site, CompletionPlacement placement, CompletionLanguage language)
Parameters
treeScopeTreeThe scope tree of the composed workspace.
originUriWhere the lookup originates (OriginAt(ScopeTree, Uri, SourcePosition)).
siteCompletionSiteWhat is being written.
placementCompletionPlacementWhere the line is in its module.
languageCompletionLanguageWhat the module is.