override fun visitIdentifierExpression()

in src/org/jetbrains/r/refactoring/inline/RInlineAssignmentProcessor.kt [211:235]


        override fun visitIdentifierExpression(o: RIdentifierExpression) {
          val name = o.name
          var newValue = realValues[name]
          if (newValue == null && name != "...") {
            val parent = o.parent
            if (RPsiUtil.getAssignmentByAssignee(o) != null || parent is RForStatement && parent.target == o) {
              val uniqueName = RRefactoringUtil.getUniqueName(name, usedNames)
              newValue = RElementFactory.createRPsiElementFromText(project, uniqueName)
              realValues[name] = newValue
            }
            else {
              usedNames.add(o.name)
              super.visitIdentifierExpression(o)
              return
            }
          }

          if (name == "..." && o.parent is RArgumentList) {
            dotsForReplacing.add(o)
          }
          else if (newValue != null) {
            mappingIdentifiers[o] = newValue
          }
          super.visitIdentifierExpression(o)
        }