Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides reasons for a parsing operation in a language service.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Enumeration ParseReason
public enum ParseReason
public enum class ParseReason
type ParseReason
public enum ParseReason
Members
Member name | Description | |
---|---|---|
Autos | Parse the code block at the given ___location to obtain any expressions that might be of interest in the Autos debugging window (an expression is the name of variable or parameter that can be evaluated to produce a value). | |
Check | Parse the entire source file, checking for errors. This pass should also create lists of matching language pairs, triplets, members, and methods. | |
CodeSpan | Parse the section of code containing the specified ___location to find the extent of the statement. Used in validating breakpoints. | |
CompleteWord | Parse to get the partially completed word before the current position in order to show a list of possible completions (members, arguments, methods). | |
DisplayMemberList | Parse the separator and the possible name before it, to obtain a list of members to be shown in a member completion list. | |
Goto | Parse the identifier or expression at the specified ___location to obtain a possible URI of a file where the identifier is defined, declared, or referenced. | |
HighlightBraces | Parse to find the matching language pairs (such as "{" and "}" or "<" and ">") that enclose the given ___location so they and their contents can be highlighted. | |
MatchBraces | Parse the language pair at the given ___location to finds its match. | |
MemberSelect | Parse the separator character before the current ___location to obtain a list of members for the class. | |
MemberSelectAndHighlightBraces | Parse the character at the current ___location to complete a member selection and to highlight the matching pair to the parsed character (such as a ")" after a method name). | |
MethodTip | Parse the method name before the current position to produce a list of all overloaded method signatures that match the method name. | |
None | A placeholder value indicating that no parsing should be done. | |
QuickInfo | Parse the identifier or selection at the given ___location to obtain type information to be shown in an IntelliSense quick info tool tip. |
Remarks
These are all the reasons a parsing operation is performed in a language service. Most reasons confine parsing to the current line and therefore are very fast, some reasons call for a more extensive parsing that can take a while and are therefore typically done on a background thread.