Exemplo 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
Exemplo n.º 2
0
 def exitVariableDeclaratorId(
         self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     self.symbol_table.Insert(self.scope_handler.getScope(),
                              ctx.IDENTIFIER().getText(),
                              self.last_used_type)
Exemplo n.º 3
0
 def enterVariableDeclaratorId(self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     if ctx.IDENTIFIER().getText() == self.source_field and self.in_field:
         self.detected_field = True
Exemplo n.º 4
0
 def enterVariableDeclaratorId(
         self, ctx: JavaParserLabeled.VariableDeclaratorIdContext):
     if self.is_member and ctx.IDENTIFIER().getText() == self.field_name:
         self.do_delete = True
Exemplo 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