Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
visitor
VisitReturnDetail
Class VisitReturnDetail<A>
Visit the candid file and extract the details. It returns the extracted service details.
Type Parameters
A
=
types
.
BaseActor
Hierarchy (
view full
)
types
.
IDL
.
Visitor
<
string
,
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
|
FieldDetailWithChild
|
FieldDetail
>
VisitReturnDetail
Index
Constructors
constructor
Properties
visit
Return
Field
counter
status
is
Table
visited
Recursive
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
Methods
visit
Primitive
visit
Empty
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Tuple
visit
Variant
visit
Rec
visit
Opt
visit
Vec
visit
Null
visi
Generic
Type
visit
Bool
visit
Type
visit
Principal
visit
Text
visit
Number
visit
Service
Constructors
constructor
new
Visit
Return
Detail
<
A
>
(
)
:
VisitReturnDetail
<
A
>
Type Parameters
A
=
types
.
BaseActor
Returns
VisitReturnDetail
<
A
>
Properties
Private
visit
Return
Field
visit
Return
Field
:
VisitReturn
<
types
.
BaseActor
>
= ...
counter
counter
:
number
= 0
Private
status
status
:
number
= Status.Default
Private
is
Table
is
Table
:
boolean
= false
Private
visited
Recursive
visited
Recursive
:
Record
<
string
,
true
>
= {}
visit
Int
visit
Int
:
(
<
T
>
(
_t
,
label
)
=>
FieldDetail
)
= ...
Type declaration
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
visit
Nat
visit
Nat
:
(
<
T
>
(
_t
,
label
)
=>
FieldDetail
)
= ...
Type declaration
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
visit
Float
visit
Float
:
(
<
T
>
(
_t
,
label
)
=>
FieldDetail
)
= ...
Type declaration
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
visit
Fixed
Int
visit
Fixed
Int
:
(
<
T
>
(
_t
,
label
)
=>
FieldDetail
)
= ...
Type declaration
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
visit
Fixed
Nat
visit
Fixed
Nat
:
(
<
T
>
(
_t
,
label
)
=>
FieldDetail
)
= ...
Type declaration
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
Methods
visit
Primitive
visit
Primitive
<
T
>
(
t
,
data
)
:
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
PrimitiveType
<
T
>
data
:
string
Returns
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
visit
Empty
visit
Empty
(
t
,
data
)
:
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
Parameters
t
:
types
.
IDL
.
EmptyClass
data
:
string
Returns
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
visit
Reserved
visit
Reserved
(
t
,
data
)
:
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
Parameters
t
:
types
.
IDL
.
ReservedClass
data
:
string
Returns
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
visit
Construct
visit
Construct
<
T
>
(
t
,
data
)
:
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
ConstructType
<
T
>
data
:
string
Returns
FieldDetail
|
FieldDetailWithChild
|
ReturnDetailRecord
<
A
>
|
MethodReturnDetail
<
A
>
visit
Func
visit
Func
<
M
>
(
t
,
functionName
)
:
MethodReturnDetail
<
A
>
Type Parameters
M
extends
string
Parameters
t
:
types
.
IDL
.
FuncClass
functionName
:
M
Returns
MethodReturnDetail
<
A
>
visit
Record
visit
Record
(
_t
,
_fields
,
label
)
:
FieldDetailWithChild
Parameters
_t
:
types
.
IDL
.
RecordClass
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
label
:
string
Returns
FieldDetailWithChild
visit
Tuple
visit
Tuple
<
T
>
(
_t
,
components
,
label
)
:
FieldDetailWithChild
Type Parameters
T
extends
types
.
IDL
.
Type
<
any
>
[]
Parameters
_t
:
types
.
IDL
.
TupleClass
<
T
>
components
:
types
.
IDL
.
Type
<
any
>
[]
label
:
string
Returns
FieldDetailWithChild
visit
Variant
visit
Variant
(
_t
,
_fields
,
label
)
:
FieldDetailWithChild
Parameters
_t
:
types
.
IDL
.
VariantClass
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
label
:
string
Returns
FieldDetailWithChild
visit
Rec
visit
Rec
<
T
>
(
_t
,
ty
,
label
)
:
FieldDetailWithChild
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
RecClass
<
T
>
ty
:
types
.
IDL
.
ConstructType
<
T
>
label
:
string
Returns
FieldDetailWithChild
visit
Opt
visit
Opt
<
T
>
(
_t
,
ty
,
label
)
:
FieldDetailWithChild
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
OptClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetailWithChild
visit
Vec
visit
Vec
<
T
>
(
_t
,
ty
,
label
)
:
FieldDetailWithChild
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
VecClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetailWithChild
visit
Null
visit
Null
(
_t
,
label
)
:
FieldDetail
Parameters
_t
:
types
.
IDL
.
NullClass
label
:
string
Returns
FieldDetail
Private
visi
Generic
Type
visi
Generic
Type
(
label
)
:
FieldDetail
Parameters
label
:
string
Returns
FieldDetail
visit
Bool
visit
Bool
(
_t
,
label
)
:
FieldDetail
Parameters
_t
:
types
.
IDL
.
BoolClass
label
:
string
Returns
FieldDetail
visit
Type
visit
Type
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
visit
Principal
visit
Principal
(
_t
,
label
)
:
FieldDetail
Parameters
_t
:
types
.
IDL
.
PrincipalClass
label
:
string
Returns
FieldDetail
visit
Text
visit
Text
(
_t
,
label
)
:
FieldDetail
Parameters
_t
:
types
.
IDL
.
TextClass
label
:
string
Returns
FieldDetail
visit
Number
visit
Number
<
T
>
(
_t
,
label
)
:
FieldDetail
Type Parameters
T
Parameters
_t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
FieldDetail
visit
Service
visit
Service
(
t
)
:
ReturnDetailRecord
<
A
>
Parameters
t
:
types
.
IDL
.
ServiceClass
Returns
ReturnDetailRecord
<
A
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
visit
Return
Field
counter
status
is
Table
visited
Recursive
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
visit
Primitive
visit
Empty
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Tuple
visit
Variant
visit
Rec
visit
Opt
visit
Vec
visit
Null
visi
Generic
Type
visit
Bool
visit
Type
visit
Principal
visit
Text
visit
Number
visit
Service
ic-reactor
Loading...
Visit the candid file and extract the details. It returns the extracted service details.