Skip to content

Commit 184488b

Browse files
committed
Add FamixTBytesSourceAnchor + Regenerate MM
1 parent 75488ba commit 184488b

11 files changed

+161
-2
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
"
2+
## Properties
3+
======================
4+
5+
| Name | Type | Default value | Comment |
6+
|---|
7+
| `correspondingFile` | `FamixTFile` | nil | File associated to this source anchor|
8+
| `encoding` | `String` | nil | A string representing the encoding of a file|
9+
| `endByte` | `Number` | nil | Stop position in the source in number of bytes|
10+
| `fileName` | `String` | nil | Name of the source file|
11+
| `startByte` | `Number` | nil | Start position in the source in number of bytes|
12+
13+
"
14+
Class {
15+
#name : 'FamixCBytesFileAnchor',
16+
#superclass : 'FamixCSourceAnchor',
17+
#traits : 'FamixTBytesFileAnchor',
18+
#classTraits : 'FamixTBytesFileAnchor classTrait',
19+
#category : 'Famix-C-Entities-Entities',
20+
#package : 'Famix-C-Entities',
21+
#tag : 'Entities'
22+
}
23+
24+
{ #category : 'meta' }
25+
FamixCBytesFileAnchor class >> annotation [
26+
27+
<FMClass: #BytesFileAnchor super: #FamixCSourceAnchor>
28+
<package: #'Famix-C-Entities'>
29+
<generated>
30+
^ self
31+
]

src/Famix-C-Entities/FamixCImportingContext.class.st

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ FamixCImportingContext >> importBehaviouralPointer [
5959
^ self importConcreteEntity: (self class fm3ClassNamed: #BehaviouralPointer)
6060
]
6161

62+
{ #category : 'importing' }
63+
FamixCImportingContext >> importBytesFileAnchor [
64+
65+
<generated>
66+
^ self importConcreteEntity: (self class fm3ClassNamed: #BytesFileAnchor)
67+
]
68+
6269
{ #category : 'importing' }
6370
FamixCImportingContext >> importComment [
6471

@@ -297,6 +304,13 @@ FamixCImportingContext >> shouldImportBehaviouralPointer [
297304
^ self shouldImport: #BehaviouralPointer
298305
]
299306

307+
{ #category : 'testing' }
308+
FamixCImportingContext >> shouldImportBytesFileAnchor [
309+
310+
<generated>
311+
^ self shouldImport: #BytesFileAnchor
312+
]
313+
300314
{ #category : 'testing' }
301315
FamixCImportingContext >> shouldImportComment [
302316

src/Famix-C-Entities/FamixCTEntityCreator.trait.st

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ FamixCTEntityCreator >> newBehaviouralPointer [
8383
^ self add: FamixCBehaviouralPointer new
8484
]
8585

86+
{ #category : 'entity creation' }
87+
FamixCTEntityCreator >> newBytesFileAnchor [
88+
89+
<generated>
90+
^ self add: FamixCBytesFileAnchor new
91+
]
92+
8693
{ #category : 'entity creation' }
8794
FamixCTEntityCreator >> newComment [
8895

src/Famix-C-Generator/FamixCGenerator.class.st

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ Class {
3333
'structuredType',
3434
'entityTyping',
3535
'globalVar',
36-
'preprocFile'
36+
'preprocFile',
37+
'bytesFileAnchor'
3738
],
3839
#category : 'Famix-C-Generator',
3940
#package : 'Famix-C-Generator'
@@ -62,6 +63,7 @@ FamixCGenerator >> defineClasses [
6263
"Anchors"
6364
indexedFileAnchor := builder newClassNamed: #IndexedFileAnchor.
6465
multipleFileAnchor := builder newClassNamed: #MultipleFileAnchor.
66+
bytesFileAnchor := builder newClassNamed: #BytesFileAnchor.
6567
relativeSourceAnchor := builder newClassNamed: #RelativeSourceAnchor.
6668

6769
"SourcedEntity: Association"
@@ -118,6 +120,8 @@ FamixCGenerator >> defineHierarchy [
118120
multipleFileAnchor --|> sourceAnchor.
119121
multipleFileAnchor --|> #TMultipleFileAnchor.
120122
relativeSourceAnchor --|> #TRelativeSourceAnchor.
123+
bytesFileAnchor --|> sourceAnchor.
124+
bytesFileAnchor --|> #TBytesFileAnchor.
121125
sourceLanguage --|> #TSourceLanguage.
122126

123127
"Preproc"

src/Famix-CPreproc-Entities/FamixCPreprocEntity.class.st

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ FamixCPreprocEntity class >> metamodel [
3434
FamixCPreprocEntity >> clearReplicationCache [
3535
]
3636

37+
{ #category : 'testing' }
38+
FamixCPreprocEntity >> isAssociation [
39+
40+
<generated>
41+
^ false
42+
]
43+
3744
{ #category : 'testing' }
3845
FamixCPreprocEntity >> isQueryable [
3946

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Extension { #name : 'FamixCAssociation' }
2+
3+
{ #category : '*Famix-Cpp-Entities' }
4+
FamixCAssociation >> isAssociation [
5+
6+
<generated>
7+
^ false
8+
]
9+
10+
{ #category : '*Famix-Cpp-Entities' }
11+
FamixCAssociation >> isInheritance [
12+
13+
<generated>
14+
^ false
15+
]
16+
17+
{ #category : '*Famix-Cpp-Entities' }
18+
FamixCAssociation >> isParametricAssociation [
19+
20+
<generated>
21+
^ false
22+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Extension { #name : 'FamixCBehaviouralEntity' }
2+
3+
{ #category : '*Famix-Cpp-Entities' }
4+
FamixCBehaviouralEntity >> isMethod [
5+
6+
<generated>
7+
^ false
8+
]
9+
10+
{ #category : '*Famix-Cpp-Entities' }
11+
FamixCBehaviouralEntity >> isQueryable [
12+
13+
<generated>
14+
^ false
15+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Extension { #name : 'FamixCInvocation' }
2+
3+
{ #category : '*Famix-Cpp-Entities' }
4+
FamixCInvocation >> isAssociation [
5+
6+
<generated>
7+
^ false
8+
]
9+
10+
{ #category : '*Famix-Cpp-Entities' }
11+
FamixCInvocation >> isInvocation [
12+
13+
<generated>
14+
^ false
15+
]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Extension { #name : 'FamixCNamedEntity' }
2+
3+
{ #category : '*Famix-Cpp-Entities' }
4+
FamixCNamedEntity >> isImplicitVariable [
5+
6+
<generated>
7+
^ false
8+
]
9+
10+
{ #category : '*Famix-Cpp-Entities' }
11+
FamixCNamedEntity >> isStructuralEntity [
12+
13+
<generated>
14+
^ false
15+
]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Extension { #name : 'FamixCStructuredType' }
2+
3+
{ #category : '*Famix-Cpp-Entities' }
4+
FamixCStructuredType >> isClass [
5+
6+
<generated>
7+
^ false
8+
]
9+
10+
{ #category : '*Famix-Cpp-Entities' }
11+
FamixCStructuredType >> isParametricEntity [
12+
13+
<generated>
14+
^ false
15+
]
16+
17+
{ #category : '*Famix-Cpp-Entities' }
18+
FamixCStructuredType >> isQueryable [
19+
20+
<generated>
21+
^ false
22+
]
23+
24+
{ #category : '*Famix-Cpp-Entities' }
25+
FamixCStructuredType >> isType [
26+
27+
<generated>
28+
^ false
29+
]

0 commit comments

Comments
 (0)