thisIfNeeded method

String thisIfNeeded(
  1. Set<String> locals
)

Adds an this. prefix is the dartGetterName is in locals.

Implementation

String thisIfNeeded(Set<String> locals) {
  if (locals.contains(dartGetterName)) {
    return 'this.$dartGetterName';
  }

  return dartGetterName;
}