          # File lib/rake.rb, line 2444
    2444:     def load_imports
    2445:       while fn = @pending_imports.shift
    2446:         next if @imported.member?(fn)
    2447:         if fn_task = lookup(fn)
    2448:           fn_task.invoke
    2449:         end
    2450:         ext = File.extname(fn)
    2451:         loader = @loaders[ext] || @default_loader
    2452:         loader.load(fn)
    2453:         @imported << fn
    2454:       end
    2455:     end