@Override
  public VariableDescriptor getLocalVariable(@NotNull Name name) {
    checkMayRead();

    // Meaningful lookup goes here
    for (JetScope imported : getImports()) {
      VariableDescriptor importedDescriptor = imported.getLocalVariable(name);
      if (importedDescriptor != null) {
        return importedDescriptor;
      }
    }
    return null;
  }
示例#2
0
 @Override
 public VariableDescriptor getLocalVariable(@NotNull Name name) {
   return substitute(workerScope.getLocalVariable(name));
 }