File tree 2 files changed +9
-11
lines changed
2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -1350,8 +1350,6 @@ FamixEsopeResolverTest >> testResolvePointeurWithStubSegmentAccessingField [
1350
1350
end
1351
1351
"
1352
1352
1353
- self flag: ' #FIXME: after this tests we must have a stub segment and we need to add a x attribute to this segment?' .
1354
-
1355
1353
varP := self newEntity: FamixF77Variable named: ' p' .
1356
1354
varP segment: ' point' .
1357
1355
varP isEsope: true .
@@ -1375,10 +1373,9 @@ FamixEsopeResolverTest >> testResolvePointeurWithStubSegmentAccessingField [
1375
1373
self assert: main accesses size equals: 2 .
1376
1374
1377
1375
self assert: access variable equals: varP.
1378
- self assert: access accessor equals: main.
1379
1376
1380
- self assert: access2 variable isNil .
1381
- self assert: access2 accessor equals: main
1377
+ self assert: access2 variable class equals: FamixFortranAttribute .
1378
+ self assert: access2 variable name equals: ' x '
1382
1379
]
1383
1380
1384
1381
{ #category : ' tests' }
Original file line number Diff line number Diff line change @@ -308,12 +308,13 @@ FamixEsopeResolver >> resolveAttributeAccess: anAccess forPointer: aPointerVaria
308
308
309
309
aPointerVariable declaredType
310
310
ifNotNil: [ :declaredType |
311
- declaredType attributes
312
- detect: [ :att | att name asLowercase = variableAccessed entityName asLowercase ]
313
- ifFound: [ :att | anAccess variable: att ]
314
- ifNone: [
315
- " What to do if we have any attribute match? Nothing for Now"
316
- ]
311
+ anAccess variable:
312
+ (declaredType attributes
313
+ detect: [ :att | att name asLowercase = variableAccessed entityName asLowercase ]
314
+ ifNone: [
315
+ (model newAttributeNamed: variableAccessed entityName asLowercase)
316
+ isStub: true
317
+ ])
317
318
]
318
319
ifNil: [
319
320
self resolveDeclaredTypeOfPointers.
You can’t perform that action at this time.
0 commit comments