IPsiNode

Description

interface Tinman.Core.Parsing.IPsiNode

Derived from

IValidatable
ICodeRange

Extended by

PsiNode abstract

Base interface for PSI nodes.

Public / Methods

Resolve


public method Resolve → ()

returns → bool

true if all references have been resolved,
false if there is at least one unresolved reference left.

Tries to resolve all references in this PSI node.

This method will return false to indicate that there are unresolved references in the PSI model, which may be fixed by updating the PSI model and calling this method again.

Once this method has returned true, it will always return true for the same IPsiNode object when called again. Such calls will be no-ops and may thus be performed repeatedly, without causing performance problems.

Set​Parse​Info


public method SetParseInfo → (1)

range in : RangeI

The source code range.

Provides additional information about the parsing process.

Public / Attributes

Is​Resolved


public attribute IsResolved → (get)

value : bool

true if Resolve has returned true once,
false if Resolve has not yet returned true.#

Have all reference in this PSI node been resolved?

Extensions

Validate​Throw​Input

2 overloads


public static method ValidateThrowInput1 → (1)

input in : string

The code input.

Validates this PSI node.

ValidatingException

If the validation has failed.


public static method ValidateThrowInput2 → (1)

input in : ICodeInput

The code input.

Validates this PSI node.

ValidatingException

If the validation has failed.