ITsModelVisitor interface
Defines an interface of TypeScript model visitor, that can be used to examine and modify TypeScript model.
Namespace: TypeLite
Methods
Name | Description | |
---|---|---|
VisitClass | Represents a method called for every class in the model. | |
VisitEnum | When overridden in a derived class, it can examine or modify the enum model. | |
VisitModel | Represents a method called once for the model. | |
VisitModule | Represents a method called for every module in the model. | |
VisitProperty | Represents a method called for every property in the model. |
ITsModelVisitor.VisitClass method
Represents a method called for every class in the model.
Syntax
Parameters
-
TsClass
classModel - The model class being visited.
ITsModelVisitor.VisitEnum method
When overridden in a derived class, it can examine or modify the enum model.
Syntax
Parameters
-
TsEnum
enumModel - The model enum being visited.
ITsModelVisitor.VisitModel method
Represents a method called once for the model.
Syntax
Parameters
-
TsModel
model - The model being visited.
ITsModelVisitor.VisitModule method
Represents a method called for every module in the model.
Syntax
Parameters
-
TsModule
module - The module being visited.
ITsModelVisitor.VisitProperty method
Represents a method called for every property in the model.
Syntax
Parameters
-
TsProperty
property - The property being visited.