protected boolean include(VirtualFile file) throws IOException, LexerException { if (!filesAlreadyIncluded.add(file)) { return true; } return super.include(file); } Set<String> pragmaOnces = new HashSet<String>();
protected boolean include(VirtualFile file) throws IOException, LexerException { if (!filesAlreadyIncluded.add(file)) { return true; } return super.include(file); } Set<String> pragmaOnces = new HashSet<String>();
/** * Includes a file from an include path, by name. */ protected boolean include(Iterable<String> path, String name) throws IOException, LexerException { for (String dir : path) { VirtualFile file = filesystem.getFile(dir, name); if (include(file)) return true; } // Accept absolute paths in includes VirtualFile file = filesystem.getFile(name); if (include(file)) return true; return false; }
/** * Includes a file from an include path, by name. */ protected boolean include(Iterable<String> path, String name) throws IOException, LexerException { for (String dir : path) { VirtualFile file = filesystem.getFile(dir, name); if (include(file)) return true; } // Accept absolute paths in includes VirtualFile file = filesystem.getFile(name); if (include(file)) return true; return false; }
/** * Attempts to include a file from an include path, by name. * * @param path The list of virtual directories to search for the given name. * @param name The name of the file to attempt to include. * @return true if the file was successfully included, false otherwise. * @throws IOException if an I/O error occurs. */ protected boolean include(@Nonnull Iterable<String> path, @Nonnull String name) throws IOException { for (String dir : path) { VirtualFile file = getFileSystem().getFile(dir, name); if (include(file)) return true; } return false; }
if (name.startsWith("/")) { VirtualFile file = filesystem.getFile(name); if (include(file)) return; StringBuilder buf = new StringBuilder(); if (include(ifile)) return; if (include(quoteincludepath, name)) return; } else { String headerName = name.substring(idx + 1); String headerPath = frameworkName + ".framework/Headers/" + headerName; if (include(frameworkspath, headerPath)) return; if (include(sysincludepath, name)) return;
pdir = pfile == null ? null : pfile.getParentFile(); VirtualFile ifile = pdir.getChildFile(name); if (include(ifile)) return; if (include(quoteincludepath, name)) return; } else { pdir = filesystem.getFile(headers.toString()); VirtualFile ifile = pdir.getChildFile(subName); if (include(ifile)) return; break; if (include(sysincludepath, name)) return;
pdir = pfile == null ? null : pfile.getParentFile(); VirtualFile ifile = pdir.getChildFile(name); if (include(ifile)) return; if (include(quoteincludepath, name)) return; } else { pdir = filesystem.getFile(headers.toString()); VirtualFile ifile = pdir.getChildFile(subName); if (include(ifile)) return; break; if (include(sysincludepath, name)) return;
include(source.getPath(), tok.getLine(), name, quoted, next);
include(source == null ? null : source.getPath(), tok == null ? -1 : tok.getLine(), name, quoted);
include(source == null ? null : source.getPath(), tok == null ? -1 : tok.getLine(), name, quoted);