Interface IExtractedCode

interface IExtractedCode {
    foreignCode: null | string;
    hostCode: null | string;
    range: null | IRange;
    virtualShift: null | CodeEditor.IPosition;
}

Properties

foreignCode: null | string

Foreign code (may be empty, for example line of '%R') or null if none.

hostCode: null | string

Code to be retained in the virtual document of the host.

range: null | IRange

Range of the foreign code relative to the original source. null is used internally to represent a leftover host code after extraction.

virtualShift: null | CodeEditor.IPosition

Shift due to any additional code inserted at the beginning of the virtual document (usually in order to mock the arguments passed to a magic, or to provide other context clues for the linters)