-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ref to fileNameReference in case of import from file
- Loading branch information
Showing
5 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
" | ||
This trait is used by Famix models. | ||
It provides an API for creating entities and adding them to the model. | ||
" | ||
Trait { | ||
#name : #FamixHtmlTEntityCreator, | ||
#category : #'Famix-Html-Model' | ||
} | ||
|
||
{ #category : #meta } | ||
FamixHtmlTEntityCreator classSide >> annotation [ | ||
|
||
<FMClass: #TEntityCreator super: #Object> | ||
<package: #'Famix-Html'> | ||
<generated> | ||
^ self | ||
] | ||
|
||
{ #category : #'entity creation' } | ||
FamixHtmlTEntityCreator >> newAttribute [ | ||
|
||
<generated> | ||
^ self add: FamixHtmlAttribute new | ||
] | ||
|
||
{ #category : #'entity creation' } | ||
FamixHtmlTEntityCreator >> newDocument [ | ||
|
||
<generated> | ||
^ self add: FamixHtmlDocument new | ||
] | ||
|
||
{ #category : #'entity creation' } | ||
FamixHtmlTEntityCreator >> newElement [ | ||
|
||
<generated> | ||
^ self add: FamixHtmlElement new | ||
] | ||
|
||
{ #category : #'entity creation' } | ||
FamixHtmlTEntityCreator >> newScript [ | ||
|
||
<generated> | ||
^ self add: FamixHtmlScript new | ||
] | ||
|
||
{ #category : #'entity creation' } | ||
FamixHtmlTEntityCreator >> newText [ | ||
|
||
<generated> | ||
^ self add: FamixHtmlText new | ||
] |