You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In de.fraunhofer.aisec.cpg.frontends.java.DeclarationHandler::242:
// TODO: can field have more than one variable?
The answer is yes :)
Multi-variable declarations are wrapped in a DeclarationStatement, but statements only live inside of methods, so I guess multi-field declarations should be mapped to multiple independent FieldDeclarations. However, the most important thing is that the field declaration appears in the target RecordDeclaration.
Example:
publicclassPoint {
intx, y;
...
}
results in RecordDeclaration with only one field x.
Any access to y will be mapped to a placeholder field declaration.
The text was updated successfully, but these errors were encountered:
In
de.fraunhofer.aisec.cpg.frontends.java.DeclarationHandler::242
:The answer is yes :)
Multi-variable declarations are wrapped in a DeclarationStatement, but statements only live inside of methods, so I guess multi-field declarations should be mapped to multiple independent FieldDeclarations. However, the most important thing is that the field declaration appears in the target RecordDeclaration.
Example:
results in RecordDeclaration with only one field
x
.Any access to
y
will be mapped to a placeholder field declaration.The text was updated successfully, but these errors were encountered: