Skip to content

Commit

Permalink
OTelValue: update Linker for SpanArgument
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel-Darbord committed May 22, 2024
1 parent 277ff9e commit 38ba2f2
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ OTelFamixValueLinker >> argsKey: aString [
OTelFamixValueLinker >> linkArguments: span [
"Link the serialized arguments to the Famix model."

| parameters parameter |
span origin parameters isEmpty ifTrue: [ ^ self ].
parameters := span origin sortedParameters.
(importer parseList: (span tags at: argsKey)) withIndexDo: [
:rawArg
:index |
parameter := parameters at: index.
importer withTypeInference: parameter declaredType do: [
(importer importValue: rawArg)
typedEntity: parameter;
argumentInSpan: span ] ]
(importer parseList: (span tags at: argsKey))
with: span origin sortedParameters
do: [ :rawArg :parameter |
importer withTypeInference: parameter declaredType do: [
| argument |
argument := importer importValue: rawArg.
argument typedEntity ifNil: [ argument typedEntity: parameter ].
importer model newSpanArgument
value: argument;
span: span ] ]
]

{ #category : #transforming }
Expand Down

0 comments on commit 38ba2f2

Please sign in to comment.