ic-reactor
Example
GitHub
Preparing search index...
visitor
VisitLayout
Class VisitLayout<A>
Visit the candid file and extract the details. It returns the extracted service details.
Type Parameters
A
=
types
.
BaseActor
Hierarchy (
View Summary
)
types
.
IDL
.
Visitor
<
CategoryTest
[]
|
string
,
ServiceLayout
<
A
>
|
number
|
void
>
VisitLayout
Index
Constructors
constructor
Properties
counter
height
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
Methods
visit
Primitive
visit
Empty
visit
Bool
visit
Null
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Variant
visit
Tuple
visit
Rec
visit
Opt
visit
Vec
visit
Type
visit
Principal
visit
Text
visit
Number
visit
Service
Constructors
constructor
new
VisitLayout
<
A
=
types
.
BaseActor
>
()
:
VisitLayout
<
A
>
Type Parameters
A
=
types
.
BaseActor
Returns
VisitLayout
<
A
>
Properties
counter
counter
:
number
= 0
height
height
:
number
= 0
visit
Int
visitInt
:
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
=>
void
= ...
visit
Nat
visitNat
:
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
=>
void
= ...
visit
Float
visitFloat
:
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
=>
void
= ...
visit
Fixed
Int
visitFixedInt
:
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
=>
void
= ...
visit
Fixed
Nat
visitFixedNat
:
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
=>
void
= ...
Methods
visit
Primitive
visitPrimitive
<
T
>
(
t
:
types
.
IDL
.
PrimitiveType
<
T
>
,
data
:
string
|
CategoryTest
[]
,
)
:
number
|
void
|
ServiceLayout
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
PrimitiveType
<
T
>
data
:
string
|
CategoryTest
[]
Returns
number
|
void
|
ServiceLayout
<
A
>
visit
Empty
visitEmpty
(
t
:
types
.
IDL
.
EmptyClass
,
data
:
string
|
CategoryTest
[]
,
)
:
number
|
void
|
ServiceLayout
<
A
>
Parameters
t
:
types
.
IDL
.
EmptyClass
data
:
string
|
CategoryTest
[]
Returns
number
|
void
|
ServiceLayout
<
A
>
visit
Bool
visitBool
(
t
:
types
.
IDL
.
BoolClass
,
data
:
string
|
CategoryTest
[]
,
)
:
number
|
void
|
ServiceLayout
<
A
>
Parameters
t
:
types
.
IDL
.
BoolClass
data
:
string
|
CategoryTest
[]
Returns
number
|
void
|
ServiceLayout
<
A
>
visit
Null
visitNull
(
t
:
types
.
IDL
.
NullClass
,
data
:
string
|
CategoryTest
[]
,
)
:
number
|
void
|
ServiceLayout
<
A
>
Parameters
t
:
types
.
IDL
.
NullClass
data
:
string
|
CategoryTest
[]
Returns
number
|
void
|
ServiceLayout
<
A
>
visit
Reserved
visitReserved
(
t
:
types
.
IDL
.
ReservedClass
,
data
:
string
|
CategoryTest
[]
,
)
:
number
|
void
|
ServiceLayout
<
A
>
Parameters
t
:
types
.
IDL
.
ReservedClass
data
:
string
|
CategoryTest
[]
Returns
number
|
void
|
ServiceLayout
<
A
>
visit
Construct
visitConstruct
<
T
>
(
t
:
types
.
IDL
.
ConstructType
<
T
>
,
data
:
string
|
CategoryTest
[]
,
)
:
number
|
void
|
ServiceLayout
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
ConstructType
<
T
>
data
:
string
|
CategoryTest
[]
Returns
number
|
void
|
ServiceLayout
<
A
>
visit
Func
visitFunc
(
t
:
types
.
IDL
.
FuncClass
)
:
number
Parameters
t
:
types
.
IDL
.
FuncClass
Returns
number
visit
Record
visitRecord
(
_t
:
types
.
IDL
.
RecordClass
,
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
,
)
:
void
Parameters
_t
:
types
.
IDL
.
RecordClass
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
Returns
void
visit
Variant
visitVariant
(
_t
:
types
.
IDL
.
VariantClass
,
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
,
)
:
void
Parameters
_t
:
types
.
IDL
.
VariantClass
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
Returns
void
visit
Tuple
visitTuple
<
T
extends
types
.
IDL
.
Type
<
any
>
[]
>
(
_t
:
types
.
IDL
.
TupleClass
<
T
>
,
components
:
types
.
IDL
.
Type
<
any
>
[]
,
)
:
void
Type Parameters
T
extends
types
.
IDL
.
Type
<
any
>
[]
Parameters
_t
:
types
.
IDL
.
TupleClass
<
T
>
components
:
types
.
IDL
.
Type
<
any
>
[]
Returns
void
visit
Rec
visitRec
<
T
>
(
_t
:
types
.
IDL
.
RecClass
<
T
>
,
ty
:
types
.
IDL
.
ConstructType
<
T
>
,
label
:
string
,
)
:
void
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
RecClass
<
T
>
ty
:
types
.
IDL
.
ConstructType
<
T
>
label
:
string
Returns
void
visit
Opt
visitOpt
<
T
>
(
_t
:
types
.
IDL
.
OptClass
<
T
>
,
ty
:
types
.
IDL
.
Type
<
T
>
,
label
:
string
,
)
:
void
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
OptClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
void
visit
Vec
visitVec
<
T
>
(
_t
:
types
.
IDL
.
VecClass
<
T
>
,
ty
:
types
.
IDL
.
Type
<
T
>
,
label
:
string
,
)
:
void
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
VecClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
void
visit
Type
visitType
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
:
void
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
Returns
void
visit
Principal
visitPrincipal
(
_t
:
types
.
IDL
.
PrincipalClass
)
:
void
Parameters
_t
:
types
.
IDL
.
PrincipalClass
Returns
void
visit
Text
visitText
(
_t
:
types
.
IDL
.
TextClass
)
:
void
Parameters
_t
:
types
.
IDL
.
TextClass
Returns
void
visit
Number
visitNumber
<
T
>
(
_t
:
types
.
IDL
.
Type
<
T
>
)
:
void
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
Returns
void
visit
Service
visitService
(
t
:
types
.
IDL
.
ServiceClass
,
categoryTest
?:
string
|
CategoryTest
[]
,
)
:
ServiceLayout
<
A
>
Parameters
t
:
types
.
IDL
.
ServiceClass
Optional
categoryTest
:
string
|
CategoryTest
[]
Returns
ServiceLayout
<
A
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
counter
height
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
Methods
visit
Primitive
visit
Empty
visit
Bool
visit
Null
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Variant
visit
Tuple
visit
Rec
visit
Opt
visit
Vec
visit
Type
visit
Principal
visit
Text
visit
Number
visit
Service
Example
GitHub
ic-reactor
Loading...
Visit the candid file and extract the details. It returns the extracted service details.