JetBrains.ReSharper.CodeInsight.Services
Maintains code completion options
Note: this property is no more configurable thru the UI.
Defines possible code completion types
Enumerate static members in given type element, which type is given, and which are visible from given source point
Tracks statistics of choosing members in completion.
Represents the list with priorities. It is sorted by priorities.
Maps items to their priorities
Increases priority of the specified item by 1
Checks if the given code completion is available at this point
Execute given code completion
Completion policy for smart completion. Takes into account name corellation, etc.
Completion suggestion policy based on statistics
Identifies block comment range, even if it is not a single token.
Lexer pos will be saved and resored by the caller
Invalid range if lexer is not positioned in block comment
Class for implementing advanced lookup items
Represents a lookup item
Gets flag indicating whether this item should be automatically completed if it is the only in a list
Shrinks lookup item presentation
Restores unshrinked lookup item presentation
Returns value indicating whether the item matches a given prefix
Update presentation fields for the item. This is only used for items which return true as a result of .
Completes the item at the specified range.
Gets visual replace range
Gets lookup item image
Gets lookup item display name
Gets type display name
Gets lookup item type-in name
Gets string using to arrange items in lookup list. If it is null, is used.
Determines whether the item can decrease its width
Determines whether the item can change its presentation in the course of lookup lifecycle
Display name
Display type name
Caret offset in insert mode
Range to be replaced in insert mode
Text to insert in insert mode
Indicates whether the item is already initialized
Caret offset in replace mode
Range to be replaced in replace mode
Text to insert in replace mode
Item tail type
Type-in name
Visual replace range
Shrinks the name of the item
Cancels shrink of the name
Completes the item at the specified range.
Called when display and type-in information is first really needed
Adds a decorator
Display name of the item
Gets item image
The string which prepresents the type-in sequence for this item
Name of the type
Paints code completion items
List of items
The list box to use
The flag indicating whether to align types to the left
Maximum left size width
Item height (should be same for all items)
The lookup item text rendering aspect.
Shrinks name text to the given width.
Gets or sets the left align flag
Gets the rendering aspect for the lookup list items.
UI-related part of lookup form
Gets bounds of the current item, in client coordinates.
Gets bounds of the window
Event which is raised immediately before the lookup window is shown
Event which is raised immediately after the lookup window is shown
Event which is raised before the lookup window closes
Event which is raised when lookup window is scrolled
A magical offset to be added to the lookup form. Presumably, accomodates for some gaps, intercolumn spacing, in-item padding and so on.
Fires when the control would like to be reasked of its desired size.
Alarm for handling focus transitions
Caches lookup list items created for lookup items. This allows caching size for them in list item painter.
Service flag for controlling focus transition
Fires the event.
Tells the control the details about the new layout applied to it by the controlling entity in conjunction with some .
Typically, the control need not apply the given size and location because that should be done by the controlling entity.
The control may change its presentation in response to the layouting details, for example, whether it's attached to the top or the bottom of the anchoring rect.
The layouting details.
Performs the bottom-up layouting stage, when the control calculates its desired size using the given constraints.
Should give generally the same results as , but could employ the device context for the sake of optimization.
The device context to measure against.
The maximum available space (that could affect the shape of the control, or strip down unnecessary calculations over the invisible items).
May be a with width and height equal to , which means that the size is not limited.
The desired size, must be no larger than .
Event which is raised when lookup window is scrolled
Event is raised before items list is shown
Gets bounds of the current item
Fires when the control would like to be reasked of its desired size.
Gets or sets whether the control should be activated initially when it's shown.
The typical implementation for a form is to return a negative of this value from the override.
Gets a value indicating whether the window will be activated when it is shown.
True if the window will not be activated when it is shown; otherwise, false. The default is false.
Code completion item which consists of several methods
Interface for providing parameter info contexts from lookup lists or other places
The rich presentation of name
Rich presentation of the type
The associated context item
The image
Cancels all shrinks
Shrinks the name a bit.
Whether there was any shrinking. The width must decrease if True.
Code completion result item which simply completes some text
Lookup item for type
Code completion result item for type name completion
Declared element code completion context item
The element information
Declared element presentation language
Declared element prefix
Whether the name should be highlighted
Alias presentation. If not null, then it should be used for presentation instead of the
Gets the declared element info
Comparer which prefers local variables to fields and properties.
Note that for preference policy the "0" return value doesn't
mean that items are equal - it means that the comparer can say nothing about the items.
A class that implements the coupled layouters for the lookup window and parameter info tooltip.
Create a new layouter through the property.
The currently active instances for different text controls.
It's unclear whether there may be more than one at a time, but the decision was to generally allow for it ;-)
.
Anchoring rectangles for the coupled layouters.
The coupled layouters controlled by this instance.
Stores the sticky dispositions for layouting each of the entities.
Disposed?
Whether to throw on non-fatal logical errors.
Whether the default parameter info disposition is above or below the line.
Creates an instance, registers it in the list.
Creates a layouter for the lookup window.
Creates a layouter for the text-editor-based parameter info window.
Creates a layouter for the lookup-list-based parameter info window.
Either gets an existing instance, or creates a new one.
Creates any of the layouters.
Which layouter to create.
Anchor for the layouter.
With Option Strict OFF, sometimes the disposal of an already-used layouter causes the whole instance to dispose. In this case, make a recursive call over a new instance. This param prevents from infinite recursion.
Gets the dispositions that can be used for running each of the layouters.
Recalculates the layout.
Dirty Hack for the Parameter Info and Lookup tooltips.
Initially, ParamInfo is displayed below the line, which occupies the space of the lookup window. As lookup shows, move param-info up.
Checks whether there are no more layouters and the object can be disposed.
Disposes of all the resources.
The layouter has been disposed. Disconnect it from the instance.
Layouter ID.
One of the layouters requests to recalc the common layout.
The layouter is about to dispose, unregister its data and possibly dispose of self.
One of the anchors has changed.
Gets the collection of text controls, from which you should select the one you want the layouters for.
Gets the text controls instance for which the layouters can be created.
IDs for the layouters and anchors.
Implements the property.
Gets an object that will create the layouters for the given text control.
Note: do not store the instance you get, because it may expire. You should get a new instance thru this indexer each time you need it.
A lightweight layouter interface implementor that delegates processing to the owning object.
Creates the instance, passes a couple purely diagnostyx fields.
Assigns a new layout.
Fires the event.
Fires the event.
Fires the event.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
2
Stores given value by specified key.
Use PutData(key, null) to remove the association.
Retrieves value associated with given key.
Returns null when no value is associated.
Returns a that represents the current .
A that represents the current .
2
The instance has gotten dirty and the external layout manager must supply it with a new layout.
Gets or sets the size of the entity to be laid out.
Gets the result of laying out the entity.
Fires when the location changes.
Tracks dynamically the currently selected item bounds within the given lookup window, in client coordinates.
Creates the instance.
Lookup window whose selection to track.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
2
Updates the anchoring rectangle as it gets dirty.
The owning lookup window.
May be Null if already disposed.
Provides token-level information about matching braces
must be implemented according to the following rules:
- It is defined on brace pairs, result for open and close brace of the same pair is the same
- If one brace pair is "greater" than another that means that balance of "lesser" brace pair outside of "greater" brace pair doesn't count inside the "greater" brace pair
Get the base constructor call from given constructor
Return the candidates to go to declaration action
Determines how to bind a lookup item
Only if the item represents a type
Bind any item
Bind only item prefix
Interface for creating lookup windows
Called by manager no notify window about closing
Solution the window is executed within
Event is raised before items list is shown
Event which is raised when the current item changes
Raised when an item is completed
Raised when the window is closed
If this flag is set, any document change doesn't cancel code completion
Form which is used to display list of lookup items
Structure containing various options for look and feel of lookup window
The host text control
Solution the window is executed within
Flag indicating whether the form is closing
Highlighting tracker. Tracks ranges highlighting.
Holder to delegate user data holding actions to
The complete list of lookup items
The list of current (filtered) lookup items
The prefix tracker. Notifies on prefix changes.
The used preference manager
Raised when an item is completed
Solution the window is executed within
Event which is raised when the current item changes
Tracks replacement highlighting
Gets the editor font
View for lookup window
Contains utility methods for lookup management
Gets filtered items
Manages currently shown lookup window
Tracks keyboard commands and maintains prefix
Event is raised when the tracker changes
Stack of different bracket types for finding matched one.
Interface for creating parameter info handlers for different contexts
Gets position provider for the handler
Creates a popup window context.
Gets the current context provided by the handler.
The current context or null if the context is not available and session
is finished.
Event which is raised when context changes
Gets flags indicating when to close the window
Handling of arrows while popu is shown
The solution in which we are
The editor to use
The current context
The alarm to use
Marker to the left bound
True if parameter info is shown on top
Gets the context
Gets the editor
Event which is fired when context changes
Once a control, nowdays it's only a renderer for a single signature from the form.
A factory for instantiating parameter info handlers
Serves as a hash function for a particular type.
A hash code for the current .
2
Fires when the control would like to be reasked of its desired size.
Gets a value indicating whether the window will be activated when it is shown.
True if the window will not be activated when it is shown; otherwise, false. The default is false.
Fires when the control would like to be reasked of its desired size.
Interface for component which controls automatic parameter info popup
Shows parameter info in the specified text control with specified expected left parenthesis offset and highlights
the specified signature
Parameter info handler for lookup lists
Argument under cursor
Each array element contains argument name (if argument is named) or null or empty otherwise.
Length of the array equals to number of arguments or 0.
Index of the candidate, that is resolved, -1 otherwise
Candidates available
Invocation range. EndOffset == -1 if no right bound specified
Action for showing parameter info in method calls (IDEA's Ctrl+P feature).
Filters out an invocation
Gets number of parameter we're standing at
Gets the left parenthesis offset
Controls autopopup for parameter info
Implements special processing of some tokens
null, if no special processing required
When a PSI-consuming action is about to be executed, commits the documents and waits for the caches to become idle, displaying the cancelable modal UI progress.
PSI manager to wait for, identifies the solution.
Action handler from which the action name is retrieved, to display in the progress UI.
Whether the caches are, finally, idle (the wait might be cancelled).
Contains utility methods for code insight features
A preofix matcher that features an additional freehand filter not based on the regex.
Gets the underlying matcher.
Modules which should precede this
Modules which shoud follow this
Get default setting for given profile type
Check if this module can handle given project file
Process clean-up on file. if is , then process the whole file
Get the language this module can operate
Get the collection of option descriptors
Check if this module is available on selection, or on the whole file
Need to memorize recently loaded profile XML, since not all modules couls be presebt while loading XML
Invokes host completion in active text control
Gets possible values for given output element in the given context
List of possible values for combobox
Gets possible values for given output element in the given context
List of possible values for combobox
Option identity
Title text
UI presention kind
Indicates if value should be saved across generate sessions
Value for this option
Global option value does not propagate to this option
If this property is true, options are refreshed on change
Context in which generation occures
Gets context kind, like constructor, property, delegating members, etc
Language in which generation should occur
Root of the operation, usually ITypeDeclaration
Anchor of the operation, place where to put elements
Elements provided as possible sources for generation (shown on first page)
Elements selected by user as source of generation
Elements built by builder
Options configured on Element Selection page, which will be applied to every suitable element. This options are persisted.
Options configured on Advanced page per input element. This options are not persisted.
Options configured on Advanced page per output element. This options are not persisted.
Project in which generation occures
Modifies context
Provides options for user
Global options are displayed on first page and applies to every element (or is default value)
Element options are specific settings for each elements, available on Advanced page
Checks if this builder will produce any output in the specified context
Context
true if builder can work with context, false otherwise
Runs on context and modifies PSI
Tells if builder will produce any output elements
true if elements will be produced, false otherwise
Provides elements
Collects elements for builder
Property marked with this attribute should have return type.
Property marked with this attribute should have return type.
Method marked with this attribute should have
return type bool
first parameter of type
and second parameter able to receive specific implementation of .
Property marked with this attribute should have
of return type.
Property marked with this attribute should have return type.
Property marked with this attribute should have
return type.
Property marked with this attribute should have
return type.
Property marked with this attribute should have
return type.
Property marked with this attribute should have
of return type.
Property marked with this attribute should have return type.
Emulates typing of the suffix in given text control
Gets the handle to the window represented by the implementer.
A handle to the window represented by the implementer.
1
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Interface for component which controls automatic parameter info popup
Gets or sets flag indicating whether show one candidatein the popup or all.
Gets or sets flag indicating whether show one candidatein the popup or all.
Gets or sets flag indicating whether use arrows instead of Control+P in parameter info popup.
Gets or sets flag indicating whether automatic parameter info popup is enabled.
Gets or sets delay to automatically show parameter info popup in.
Presents the declared element as a header for HTML quick doc
Required designer variable.
Clean up any resources being used.
true if managed resources should be disposed; otherwise, false.
Required method for Designer support - do not modify
the contents of this method with the code editor.
Try to find the corresponding matching bracket for the given
Caching lexer positioned at the source bracket
position of paired bracket (or -1 if none)
true if matching bracket was found. If returns false, the pos may contain position of incorrect bracket
Performs validation of in the aspect of valid language names, and such.
Checks whether the string property value is a valid new name for an identifier.
Checks whether the string property value is a valid new name for an identifier.
Checks whether the string property value is a valid new name for an identifier.