IPythonContext Interface
Provides the base requirements for information about a Python language context of a certain offset within an ITextSnapshot.
public interface IPythonContext
Properties
ArgumentIndex
The index of the current argument, if known, when the context is for the containing invocation.
ArgumentListSnapshotOffset
The TextSnapshotOffset of the argument list, if known, when the context is for the containing invocation.
ArgumentSnapshotOffset
The TextSnapshotOffset of the current argument, if known, when the context is for the containing invocation.
ContainingAstNode
The IAstNode that contains the SnapshotOffset.
InitializationSnapshotRange
The TextSnapshotRange with which the context was initialized.
Kind
The PythonContextKind indicating the kind of context.
Location
An optional IPythonContextLocation that provides more location information about the context.
Project
The IProject with which this context is associated.
SnapshotOffset
The TextSnapshotOffset for which this context was created.
TargetExpression
The target AST Expression for the context, if known.
TargetSnapshotOffset
The TextSnapshotOffset, if known, against which to use as context for the resolver.
Methods
Resolve()
Uses the IResolver on the Project to return an IResolverResultSet.
IResolverResultSet? Resolve()
Returns
- IResolverResultSet:
The IResolverResultSet that was returned by the resolver.