Traqula
Preparing search index...
@traqula/core
CoreFactory
Class CoreFactory
Index
Constructors
constructor
Methods
dematerialized
forced
Auto
Gen
Tree
force
Materialized
gen
is
Localized
is
Of
Sub
Type
is
Of
Type
is
Source
Location
is
Source
Location
Node
Auto
Generate
is
Source
Location
Node
Replace
is
Source
Location
No
Materialize
is
Source
Location
Source
is
Source
Location
String
Replace
node
Should
Print
print
Filter
safe
Object
Transform
source
Location
source
Location
Node
Replace
source
Location
Node
Replace
Unsafe
source
Location
No
Materialize
source
Location
Source
wrap
Constructors
constructor
new
CoreFactory
()
:
CoreFactory
Returns
CoreFactory
Methods
dematerialized
dematerialized
<
T
extends
Node
>
(
arg
:
T
)
:
T
&
{
loc
:
SourceLocationNoMaterialize
}
Returns a copy of the argument that is not materialized
Type Parameters
T
extends
Node
Parameters
arg
:
T
Returns
T
&
{
loc
:
SourceLocationNoMaterialize
}
forced
Auto
Gen
Tree
forcedAutoGenTree
<
T
extends
object
>
(
obj
:
T
)
:
T
Type Parameters
T
extends
object
Parameters
obj
:
T
Returns
T
force
Materialized
forceMaterialized
<
T
extends
Node
>
(
arg
:
T
)
:
T
Type Parameters
T
extends
Node
Parameters
arg
:
T
Returns
T
gen
gen
()
:
SourceLocationNodeAutoGenerate
Returns
SourceLocationNodeAutoGenerate
is
Localized
isLocalized
(
obj
:
unknown
)
:
obj
is
Localized
Parameters
obj
:
unknown
Returns
obj
is
Localized
is
Of
Sub
Type
isOfSubType
<
Type
extends
string
,
SubType
extends
string
>
(
obj
:
object
,
type
:
Type
,
subType
:
SubType
,
)
:
obj
is
SubTyped
<
Type
,
SubType
>
Type Parameters
Type
extends
string
SubType
extends
string
Parameters
obj
:
object
type
:
Type
subType
:
SubType
Returns
obj
is
SubTyped
<
Type
,
SubType
>
is
Of
Type
isOfType
<
Type
extends
string
>
(
obj
:
object
,
type
:
Type
)
:
obj
is
Typed
<
Type
>
Type Parameters
Type
extends
string
Parameters
obj
:
object
type
:
Type
Returns
obj
is
Typed
<
Type
>
is
Source
Location
isSourceLocation
(
loc
:
object
)
:
loc
is
SourceLocation
Parameters
loc
:
object
Returns
loc
is
SourceLocation
is
Source
Location
Node
Auto
Generate
isSourceLocationNodeAutoGenerate
(
loc
:
object
,
)
:
loc
is
SourceLocationNodeAutoGenerate
Parameters
loc
:
object
Returns
loc
is
SourceLocationNodeAutoGenerate
is
Source
Location
Node
Replace
isSourceLocationNodeReplace
(
loc
:
object
)
:
loc
is
SourceLocationNodeReplace
Parameters
loc
:
object
Returns
loc
is
SourceLocationNodeReplace
is
Source
Location
No
Materialize
isSourceLocationNoMaterialize
(
loc
:
object
)
:
loc
is
SourceLocationNoMaterialize
Parameters
loc
:
object
Returns
loc
is
SourceLocationNoMaterialize
is
Source
Location
Source
isSourceLocationSource
(
loc
:
object
)
:
loc
is
SourceLocationSource
Parameters
loc
:
object
Returns
loc
is
SourceLocationSource
is
Source
Location
String
Replace
isSourceLocationStringReplace
(
loc
:
object
)
:
loc
is
SourceLocationStringReplace
Parameters
loc
:
object
Returns
loc
is
SourceLocationStringReplace
node
Should
Print
nodeShouldPrint
(
node
:
Localized
)
:
boolean
Parameters
node
:
Localized
Returns
boolean
print
Filter
printFilter
(
node
:
Localized
,
callback
:
()
=>
void
)
:
void
Parameters
node
:
Localized
callback
:
()
=>
void
Returns
void
safe
Object
Transform
safeObjectTransform
(
value
:
unknown
,
mapper
:
(
some
:
object
)
=>
any
)
:
any
Parameters
value
:
unknown
mapper
:
(
some
:
object
)
=>
any
Returns
any
source
Location
sourceLocation
(
...
elements
:
(
undefined
|
IToken
|
Localized
)
[]
)
:
SourceLocation
Parameters
...
elements
: (
undefined
|
IToken
|
Localized
)
[]
Returns
SourceLocation
source
Location
Node
Replace
sourceLocationNodeReplace
(
location
:
SourceLocationSource
,
)
:
SourceLocationNodeReplace
Parameters
location
:
SourceLocationSource
Returns
SourceLocationNodeReplace
sourceLocationNodeReplace
(
start
:
number
,
end
:
number
)
:
SourceLocationNodeReplace
Parameters
start
:
number
end
:
number
Returns
SourceLocationNodeReplace
source
Location
Node
Replace
Unsafe
sourceLocationNodeReplaceUnsafe
(
loc
:
SourceLocation
)
:
SourceLocationNodeReplace
Parameters
loc
:
SourceLocation
Returns
SourceLocationNodeReplace
source
Location
No
Materialize
sourceLocationNoMaterialize
()
:
SourceLocationNoMaterialize
Returns
SourceLocationNoMaterialize
source
Location
Source
sourceLocationSource
(
start
:
number
,
end
:
number
)
:
SourceLocationSource
Parameters
start
:
number
end
:
number
Returns
SourceLocationSource
wrap
wrap
<
T
>
(
val
:
T
,
loc
:
SourceLocation
)
:
Wrap
<
T
>
Type Parameters
T
Parameters
val
:
T
loc
:
SourceLocation
Returns
Wrap
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
dematerialized
forced
Auto
Gen
Tree
force
Materialized
gen
is
Localized
is
Of
Sub
Type
is
Of
Type
is
Source
Location
is
Source
Location
Node
Auto
Generate
is
Source
Location
Node
Replace
is
Source
Location
No
Materialize
is
Source
Location
Source
is
Source
Location
String
Replace
node
Should
Print
print
Filter
safe
Object
Transform
source
Location
source
Location
Node
Replace
source
Location
Node
Replace
Unsafe
source
Location
No
Materialize
source
Location
Source
wrap
Traqula
Loading...
Returns a copy of the argument that is not materialized