Skip to content

Commit

Permalink
Fix comments, type is a container, add #isJSDoc property
Browse files Browse the repository at this point in the history
  • Loading branch information
fuhrmanator committed Jul 30, 2024
1 parent 8ec7443 commit 39c1992
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Famix-TypeScript-Generator/FamixTypeScriptGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,9 @@ FamixTypeScriptGenerator >> defineHierarchy [

enum --|> type.
enum --|> #TEnum.
enum --|> #TWithComments.
enum --|> #TImportable.

enumValue --|> structuralEntity.
enumValue --|> #TWithComments.
enumValue --|> #TEnumValue.

file --|> namedEntity.
Expand Down Expand Up @@ -311,7 +309,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
interface --|> #TWithAttributes.
interface --|> #TInvocationsReceiver.
"interface --|> #THasVisibility." "classes in modules/namespaces can't be declared private/public"
interface --|> #TWithComments.
interface --|> #TImplementable.
"interface --|> #TWithImports."
"interface --|> #TImportable." "Gets it from type?"
Expand All @@ -330,7 +327,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
method --|> #TCanBeAbstract.
method --|> #THasKind.
method --|> #THasVisibility.
method --|> #TWithComments.
method --|> #TCanBeClassSide.
method --|> #TImportable.

Expand All @@ -340,7 +336,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
"Module"
module --|> scriptEntity.
module --|> #TWithLocalVariables. "var can have module scope"
module --|> #TWithComments.
module --|> #TWithImports.
"module --|> #TWithNamespaces." "define this Trait for TypeScript namespaces"
module --|> #TImportable.
Expand All @@ -357,7 +352,6 @@ FamixTypeScriptGenerator >> defineHierarchy [

parameter --|> structuralEntity.
parameter --|> #TParameter.
parameter --|> #TWithComments.

parameterType --|> type.
parameterType --|> #TGenericParameterType.
Expand All @@ -383,7 +377,10 @@ FamixTypeScriptGenerator >> defineHierarchy [
primitiveType --|> type.
primitiveType --|> #TPrimitiveType.

sourcedEntity --|> #TWithComments.

type --|> #TConcreteParameterType.
type --|> containerEntity.

concretization --|> #TConcretization.

Expand Down Expand Up @@ -427,7 +424,10 @@ FamixTypeScriptGenerator >> defineProperties [
(decorator property: #expression type: #String)
comment: 'Decorators use the form @expression, where expression must evaluate to a function that will be called at runtime with information about the decorated declaration'.
(property property: #readOnly type: #Boolean defaultValue: false)
comment: 'Properties may be prefixed with the readonly modifier. This prevents assignments to the field outside of the constructor.'
comment: 'Properties may be prefixed with the readonly modifier. This prevents assignments to the field outside of the constructor.'.
(comment property: #isJSDoc type: #Boolean defaultValue: false)
comment: 'Comments can have the form of JSDoc.'.

"The following are not need because of THasKind (?)"

"(method property: #isConstructor type: #Boolean defaultValue: false)
Expand Down

0 comments on commit 39c1992

Please sign in to comment.