Example
GitHub
Preparing search index...
The search index is not available
ic-reactor
ic-reactor
visitor
VisitArg
Class VisitArg<A>
Visit the candid file and extract the fields. It returns the extracted service fields.
Type Parameters
A
=
types
.
BaseActor
Hierarchy (
view full
)
types
.
IDL
.
Visitor
<
string
,
MethodArg
<
A
>
|
DefaultArg
|
ServiceArg
<
A
>
>
VisitArg
Index
Constructors
constructor
Methods
visit
Primitive
visit
Empty
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Variant
visit
Tuple
visit
Rec
visit
Opt
visit
Vec
visit
Type
visit
Principal
visit
Bool
visit
Null
visit
Text
visit
Number
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
visit
Service
Constructors
constructor
new
Visit
Arg
<
A
>
(
)
:
VisitArg
<
A
>
Type Parameters
A
=
types
.
BaseActor
Returns
VisitArg
<
A
>
Methods
visit
Primitive
visit
Primitive
<
T
>
(
t
,
data
)
:
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
PrimitiveType
<
T
>
data
:
string
Returns
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
visit
Empty
visit
Empty
(
t
,
data
)
:
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
Parameters
t
:
types
.
IDL
.
EmptyClass
data
:
string
Returns
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
visit
Reserved
visit
Reserved
(
t
,
data
)
:
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
Parameters
t
:
types
.
IDL
.
ReservedClass
data
:
string
Returns
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
visit
Construct
visit
Construct
<
T
>
(
t
,
data
)
:
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
ConstructType
<
T
>
data
:
string
Returns
DefaultArg
|
MethodArg
<
A
>
|
ServiceArg
<
A
>
visit
Func
visit
Func
(
t
,
functionName
)
:
MethodArg
<
A
>
Parameters
t
:
types
.
IDL
.
FuncClass
functionName
:
types
.
FunctionName
<
A
>
Returns
MethodArg
<
A
>
visit
Record
visit
Record
(
t
,
_fields
,
label
)
:
RecordArg
<
types
.
IDL
.
Type
<
any
>
>
Parameters
t
:
types
.
IDL
.
RecordClass
_fields
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
label
:
string
Returns
RecordArg
<
types
.
IDL
.
Type
<
any
>
>
visit
Variant
visit
Variant
(
t
,
fields_
,
label
)
:
VariantArg
<
types
.
IDL
.
Type
<
any
>
>
Parameters
t
:
types
.
IDL
.
VariantClass
fields_
:
[
string
,
types
.
IDL
.
Type
<
any
>
]
[]
label
:
string
Returns
VariantArg
<
types
.
IDL
.
Type
<
any
>
>
visit
Tuple
visit
Tuple
<
T
>
(
t
,
components
,
label
)
:
TupleArg
<
types
.
IDL
.
Type
<
any
>
>
Type Parameters
T
extends
types
.
IDL
.
Type
<
any
>
[]
Parameters
t
:
types
.
IDL
.
TupleClass
<
T
>
components
:
types
.
IDL
.
Type
<
any
>
[]
label
:
string
Returns
TupleArg
<
types
.
IDL
.
Type
<
any
>
>
visit
Rec
visit
Rec
<
T
>
(
t
,
ty
,
label
)
:
RecursiveArg
Type Parameters
T
Parameters
t
:
types
.
IDL
.
RecClass
<
T
>
ty
:
types
.
IDL
.
ConstructType
<
T
>
label
:
string
Returns
RecursiveArg
visit
Opt
visit
Opt
<
T
>
(
t
,
ty
,
label
)
:
OptionalArg
Type Parameters
T
Parameters
t
:
types
.
IDL
.
OptClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
OptionalArg
visit
Vec
visit
Vec
<
T
>
(
t
,
ty
,
label
)
:
VectorArg
|
BlobArg
Type Parameters
T
Parameters
t
:
types
.
IDL
.
VecClass
<
T
>
ty
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
VectorArg
|
BlobArg
visit
Type
visit
Type
<
T
>
(
t
,
label
)
:
InputArg
<
types
.
IDL
.
Type
<
T
>
>
Type Parameters
T
Parameters
t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
InputArg
<
types
.
IDL
.
Type
<
T
>
>
visit
Principal
visit
Principal
(
t
,
label
)
:
PrincipalArg
Parameters
t
:
types
.
IDL
.
PrincipalClass
label
:
string
Returns
PrincipalArg
visit
Bool
visit
Bool
(
t
,
label
)
:
InputArg
<
types
.
IDL
.
BoolClass
>
Parameters
t
:
types
.
IDL
.
BoolClass
label
:
string
Returns
InputArg
<
types
.
IDL
.
BoolClass
>
visit
Null
visit
Null
(
t
,
label
)
:
InputArg
<
types
.
IDL
.
NullClass
>
Parameters
t
:
types
.
IDL
.
NullClass
label
:
string
Returns
InputArg
<
types
.
IDL
.
NullClass
>
visit
Text
visit
Text
(
t
,
label
)
:
InputArg
<
types
.
IDL
.
TextClass
>
Parameters
t
:
types
.
IDL
.
TextClass
label
:
string
Returns
InputArg
<
types
.
IDL
.
TextClass
>
visit
Number
visit
Number
<
T
>
(
t
,
label
)
:
NumberArg
Type Parameters
T
Parameters
t
:
types
.
IDL
.
Type
<
T
>
label
:
string
Returns
NumberArg
visit
Int
visit
Int
(
t
,
label
)
:
NumberArg
Parameters
t
:
types
.
IDL
.
IntClass
label
:
string
Returns
NumberArg
visit
Nat
visit
Nat
(
t
,
label
)
:
NumberArg
Parameters
t
:
types
.
IDL
.
NatClass
label
:
string
Returns
NumberArg
visit
Float
visit
Float
(
t
,
label
)
:
NumberArg
Parameters
t
:
types
.
IDL
.
FloatClass
label
:
string
Returns
NumberArg
visit
Fixed
Int
visit
Fixed
Int
(
t
,
label
)
:
NumberArg
Parameters
t
:
types
.
IDL
.
FixedIntClass
label
:
string
Returns
NumberArg
visit
Fixed
Nat
visit
Fixed
Nat
(
t
,
label
)
:
NumberArg
Parameters
t
:
types
.
IDL
.
FixedNatClass
label
:
string
Returns
NumberArg
visit
Service
visit
Service
(
t
)
:
ServiceArg
<
A
>
Parameters
t
:
types
.
IDL
.
ServiceClass
Returns
ServiceArg
<
A
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
visit
Primitive
visit
Empty
visit
Reserved
visit
Construct
visit
Func
visit
Record
visit
Variant
visit
Tuple
visit
Rec
visit
Opt
visit
Vec
visit
Type
visit
Principal
visit
Bool
visit
Null
visit
Text
visit
Number
visit
Int
visit
Nat
visit
Float
visit
Fixed
Int
visit
Fixed
Nat
visit
Service
ic-reactor
Loading...
Visit the candid file and extract the fields. It returns the extracted service fields.