Packages, Compilation Units and Imports | Annotations | Declarations | Expressions | Statements | Body Level Attributes |
|---|
inlineDeclarationT(#firstField, [#otherField1, ...])
This fact is part of JTransfomer 2.9. It is not released yet.
This fact is only used for preserving the original appearance of the source code after transformations. It declares that multiple variables are declared in a single declaration, being written as
int i, j, k;
instead of
int i; int j; int k;
Arguments
#firstField: fieldT, localT
ID of the first variable.
[#otherField1, …]: fieldT, localT
list of IDs of other variables. These facts are marked with an inlinedT fact.
Sample Java Source
... int i, j, k; ...
Its PEF Representation
fieldT(#firstField, #parent, #type, 'i', null). fieldT(#secondField, #parent, #type, 'j', null). fieldT(#thirdField, #parent, #type, 'k', null). inlineDeclarationT(#firstField, [#secondField, #thirdField]). inlinedT(#secondField, #firstField). inlinedT(#thirdField, #firstField).
AST Specification
ast_relation('Java',inlineDeclarationT,[
ast_arg(id, mult(1,1,no ), id, [fieldT, localT]),
ast_arg(ref, mult(1,*,ord ), id, [fieldT, localT])
]).


