Software Engineering for Smart Data Analytics & Smart Data Analytics for Software Engineering
Represents local variable declaration.
#id: id
the unique ID assigned to this fact.
#parent: id
ID of the parent node.
#encl: methodT, constructorT, classInitializerT
ID of the enclosing element.
#type: typeinst
the id of the type of the variable
'name': atom
variable name.
#init: expression, null
ID of the initializer of this variable declaration.
void myFunction(){ int i = 0;//corresponding code line to localT }
methodT(#enclMethod, ..., 'myFunction', [], #returntype, [], #parent). blockT(#parent, #enclMethod, #enclMethod, [#id]). localT(#id, #parent, #enclMethod, #localtype, 'i', #init). literalT(#init, #id, #enclMethod, #literaltype, '0').
ast_node_type_spec(localT,[ ast_arg(id, mult(1,1,no ), id, [localT]), ast_arg(parent, mult(1,1,no ), id, [id]), ast_arg(encl, mult(1,1,no ), id, [methodT, constructorT, classInitializerT]), ast_arg(type, mult(1,1,no ), id, [type_inst]), ast_arg(name, mult(1,1,no ), attr,[atomic]), ast_arg(init, mult(0,1,no), id, [expressionType,nullType]) ]).