Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/pages-editor/domain/CxSrc

Pure (DOMAIN-001) — the data-cx-src="file:line:col" value written by the core annotator.

Cockpit client (features), v0.8. Source: ui/client/features/pages-editor/domain/CxSrc.ts.

Type Aliases#

CxSrc#

CxSrc = object

Defined in: ui/client/features/pages-editor/domain/CxSrc.ts:2

Properties#

column

column: number

Defined in: ui/client/features/pages-editor/domain/CxSrc.ts:2

file

file: string

Defined in: ui/client/features/pages-editor/domain/CxSrc.ts:2

line

line: number

Defined in: ui/client/features/pages-editor/domain/CxSrc.ts:2

Functions#

isOpenPage()#

isOpenPage(srcFile, feature, file): boolean

Defined in: ui/client/features/pages-editor/domain/CxSrc.ts:11

Does the annotated file path (project-root-relative) denote the open page?

Parameters#

srcFile

string

feature

string

file

string

Returns#

boolean


parseCxSrc()#

parseCxSrc(value): CxSrc | null

Defined in: ui/client/features/pages-editor/domain/CxSrc.ts:5

Same contract as the core's parseCxSrc: split from the right, file may contain ':'.

Parameters#

value

unknown

Returns#

CxSrc | null