Esempio n. 1
0
 def enterVariableDeclaratorId(
         self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     if not self.is_source_class:
         return None
     field_identifier = ctx.IDENTIFIER().getText()
     if field_identifier in self.moved_fields:
         self.detected_field = field_identifier
Esempio n. 2
0
 def exitVariableDeclaratorId(
         self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     self.symbol_table.Insert(self.scope_handler.getScope(),
                              ctx.IDENTIFIER().getText(),
                              self.last_used_type)
Esempio n. 3
0
 def enterVariableDeclaratorId(self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     if ctx.IDENTIFIER().getText() == self.source_field and self.in_field:
         self.detected_field = True
Esempio n. 4
0
 def enterVariableDeclaratorId(
         self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     if self.is_member and ctx.IDENTIFIER().getText() == self.field_name:
         self.do_delete = True
Esempio n. 5
0
 def exitVariableDeclaratorId(
         self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     variable_name = ctx.IDENTIFIER().getText()
     if self.is_source_class:
         if variable_name == self.field_name:
             self.detected_field = True