Skip to content

Commit 39c1992

Browse files
committed
Fix comments, type is a container, add #isJSDoc property
1 parent 8ec7443 commit 39c1992

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Famix-TypeScript-Generator/FamixTypeScriptGenerator.class.st

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,9 @@ FamixTypeScriptGenerator >> defineHierarchy [
267267

268268
enum --|> type.
269269
enum --|> #TEnum.
270-
enum --|> #TWithComments.
271270
enum --|> #TImportable.
272271

273272
enumValue --|> structuralEntity.
274-
enumValue --|> #TWithComments.
275273
enumValue --|> #TEnumValue.
276274

277275
file --|> namedEntity.
@@ -311,7 +309,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
311309
interface --|> #TWithAttributes.
312310
interface --|> #TInvocationsReceiver.
313311
"interface --|> #THasVisibility." "classes in modules/namespaces can't be declared private/public"
314-
interface --|> #TWithComments.
315312
interface --|> #TImplementable.
316313
"interface --|> #TWithImports."
317314
"interface --|> #TImportable." "Gets it from type?"
@@ -330,7 +327,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
330327
method --|> #TCanBeAbstract.
331328
method --|> #THasKind.
332329
method --|> #THasVisibility.
333-
method --|> #TWithComments.
334330
method --|> #TCanBeClassSide.
335331
method --|> #TImportable.
336332

@@ -340,7 +336,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
340336
"Module"
341337
module --|> scriptEntity.
342338
module --|> #TWithLocalVariables. "var can have module scope"
343-
module --|> #TWithComments.
344339
module --|> #TWithImports.
345340
"module --|> #TWithNamespaces." "define this Trait for TypeScript namespaces"
346341
module --|> #TImportable.
@@ -357,7 +352,6 @@ FamixTypeScriptGenerator >> defineHierarchy [
357352

358353
parameter --|> structuralEntity.
359354
parameter --|> #TParameter.
360-
parameter --|> #TWithComments.
361355

362356
parameterType --|> type.
363357
parameterType --|> #TGenericParameterType.
@@ -383,7 +377,10 @@ FamixTypeScriptGenerator >> defineHierarchy [
383377
primitiveType --|> type.
384378
primitiveType --|> #TPrimitiveType.
385379

380+
sourcedEntity --|> #TWithComments.
381+
386382
type --|> #TConcreteParameterType.
383+
type --|> containerEntity.
387384

388385
concretization --|> #TConcretization.
389386

@@ -427,7 +424,10 @@ FamixTypeScriptGenerator >> defineProperties [
427424
(decorator property: #expression type: #String)
428425
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'.
429426
(property property: #readOnly type: #Boolean defaultValue: false)
430-
comment: 'Properties may be prefixed with the readonly modifier. This prevents assignments to the field outside of the constructor.'
427+
comment: 'Properties may be prefixed with the readonly modifier. This prevents assignments to the field outside of the constructor.'.
428+
(comment property: #isJSDoc type: #Boolean defaultValue: false)
429+
comment: 'Comments can have the form of JSDoc.'.
430+
431431
"The following are not need because of THasKind (?)"
432432

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

0 commit comments

Comments
 (0)