Table of Contents

Interface IQueryCompiledUnresolved

Namespace
NDepend.CodeQuery
Assembly
NDepend.API.dll

Represents the result of a query compilation no matter whether it was a successful compilation or not, unresolved yet to a code base.

public interface IQueryCompiledUnresolved
Extension Methods

Remarks

A code query can reference some code elements through string like in from m in Methods where m.IsUsing("System.String").
The resolving step aims at resolving these code elements from a code-base or a compare-context.
The reason for having IQueryCompiledUnresolved is performance. It takes much more time to compile a query than to resolve it to a code-base.
With IQueryCompiledUnresolved, the result of a compilation can be re-used on several code-base if needed.

Property (1)

OriginalQueryString

Gets the original code query string.

string OriginalQueryString { get; }

Property Value

string

Methods (2)

Resolve(ICodeBase)

Resolve this code query to codeBase.

IQueryCompiled Resolve(ICodeBase codeBase)

Parameters

codeBase ICodeBase

The code base on which to resolve code elements referenced by this query compiled.

Returns

IQueryCompiled

Resolve(ICompareContext)

Resolve this code query to compareContext.

IQueryCompiled Resolve(ICompareContext compareContext)

Parameters

compareContext ICompareContext

The compare context on which to resolve code elements referenced by this query compiled.

Returns

IQueryCompiled