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
-
TsClassclassModel - The model class being visited.
ITsModelVisitor.VisitEnum method
When overridden in a derived class, it can examine or modify the enum model.
Syntax
Parameters
-
TsEnumenumModel - The model enum being visited.
ITsModelVisitor.VisitModel method
Represents a method called once for the model.
Syntax
Parameters
-
TsModelmodel - The model being visited.
ITsModelVisitor.VisitModule method
Represents a method called for every module in the model.
Syntax
Parameters
-
TsModulemodule - The module being visited.
ITsModelVisitor.VisitProperty method
Represents a method called for every property in the model.
Syntax
Parameters
-
TsPropertyproperty - The property being visited.