コード例 #1
0
  @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));
 }