Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
54,300
JComponent () { return anchor; }
getAnchor
54,301
void (JComponent anchor) { this.anchor = anchor; commonProgramParameters.setAnchor(anchor); jrePathEditor.setAnchor(anchor); chooseScriptFileComponent.setAnchor(anchor); shortenClasspathModeCombo.setAnchor(anchor); }
setAnchor
54,302
void () { chooseScriptFileComponent = new LabeledComponent<>(); chooseScriptFileTextField = new TextFieldWithBrowseButton(); chooseScriptFileComponent.setComponent(chooseScriptFileTextField); }
createUIComponents
54,303
List<Module> () { return chooseModulePanel.getModulesToConfigure(); }
getModulesToConfigure
54,304
void (@NotNull Module module, @NotNull ModifiableRootModel rootModel) { if (libraryCompositionSettings != null) { libraryCompositionSettings.addLibraries(rootModel, new ArrayList<>(), librariesContainer); if (customLibraryDescription instanceof CustomLibraryDescriptionWithDeferredConfig) { ((CustomLibraryDescriptionWit...
update
54,305
JComponent () { if (panel == null) { panel = new JPanel(new VerticalLayout(0)); panel.setBorder(IdeBorderFactory.createTitledBorder(getLibraryLabelText())); panel.add(getLibraryPanel().getMainPanel()); } return panel; }
getComponent
54,306
String () { if (JvmPlatformKt.isJvm(targetPlatform)) return KotlinJvmBundle.message("library.label.jvm"); if (JsPlatformKt.isJs(targetPlatform)) return KotlinJvmBundle.message("library.label.javascript"); throw new IllegalStateException("Only JS and JVM target are supported"); }
getLibraryLabelText
54,307
CustomLibraryDescription (@Nullable Project project) { if (JvmPlatformKt.isJvm(targetPlatform)) return new JavaRuntimeLibraryDescription(project); if (JsPlatformKt.isJs(targetPlatform)) return new JSLibraryStdDescription(project); throw new IllegalStateException("Only JS and JVM target are supported"); }
getCustomLibraryDescription
54,308
void () { libraryCompositionSettings = getLibraryPanel().apply(); if (myJavaStep != null) { myJavaStep.updateDataModel(); } }
updateDataModel
54,309
LibraryOptionsPanel () { if (libraryOptionsPanel == null) { String baseDirPath = basePath != null ? FileUtil.toSystemIndependentName(basePath) : ""; libraryOptionsPanel = new LibraryOptionsPanel( customLibraryDescription, baseDirPath, FrameworkLibraryVersionFilter.ALL, librariesContainer, false); Disposer.register(myDi...
getLibraryPanel
54,310
Boolean () { try { // TODO: Get rid of this hack LibraryOptionsPanel panel = getLibraryPanel(); Class<LibraryOptionsPanel> panelClass = LibraryOptionsPanel.class; Field modelField = ArraysKt.singleOrNull( panelClass.getDeclaredFields(), new Function1<>() { @Override public Boolean invoke(Field field) { return RadioButt...
isLibrarySelected
54,311
Boolean (Field field) { return RadioButtonEnumModel.class.isAssignableFrom(field.getType()); }
invoke
54,312
Boolean (Field field) { return JComboBox.class.isAssignableFrom(field.getType()); }
invoke
54,313
void ( @NotNull ModifiableRootModel rootModel, @NotNull Set<? extends LibraryKind> frameworkLibraryKinds, @NotNull String presentableName ) { List<OrderEntry> existingEntries = new ArrayList<>(); for (OrderEntry entry : rootModel.getOrderEntries()) { if (!(entry instanceof LibraryOrderEntry)) continue; Library library ...
suggestRemoveIncompatibleFramework
54,314
void ( ModifiableRootModel rootModel, List<OrderEntry> orderEntries, @NlsContexts.DialogMessage String message, @NlsContexts.DialogTitle String title ) { if (!orderEntries.isEmpty()) { int result = Messages.showYesNoDialog(message, title, Messages.getWarningIcon()); if (result == 0) { for (OrderEntry entry : orderEntri...
removeWithConfirm
54,315
JavaRuntimePresentationProvider () { return LibraryPresentationProvider.EP_NAME.findExtension(JavaRuntimePresentationProvider.class); }
getInstance
54,316
Icon (@Nullable LibraryVersionProperties properties) { return KotlinIcons.SMALL_LOGO; }
getIcon
54,317
LibraryVersionProperties (@NotNull List<VirtualFile> classesRoots) { IdeKotlinVersion version = KotlinJvmStdlibDetectorFacility.INSTANCE.getStdlibVersion(classesRoots); return version == null ? null : new LibraryVersionProperties(version.getArtifactVersion()); }
detect
54,318
InfinitePeriodicalTask () { myUpdateAlarm.addRequest(new Runnable() { @Override public void run() { myUpdateAlarm.addRequest(this, delay); LongRunningReadTask task = taskProvider.compute(); boolean invalidRequest = !task.init(); //noinspection unchecked if (task.shouldStart(currentTask)) { currentTask = task; currentTa...
start
54,319
void () { myUpdateAlarm.addRequest(this, delay); LongRunningReadTask task = taskProvider.compute(); boolean invalidRequest = !task.init(); //noinspection unchecked if (task.shouldStart(currentTask)) { currentTask = task; currentTask.run(); } else if (invalidRequest) { currentTask = null; } }
run
54,320
Location (Editor editor, Project project) { return new Location(editor, project); }
fromEditor
54,321
KtFile () { return ktFile; }
getKFile
54,322
Editor () { return editor; }
getEditor
54,323
int () { return startOffset; }
getStartOffset
54,324
int () { return endOffset; }
getEndOffset
54,325
boolean (Object o) { if (this == o) return true; if (!(o instanceof Location location)) return false; if (modificationStamp != location.modificationStamp) return false; if (endOffset != location.endOffset) return false; if (startOffset != location.startOffset) return false; if (!Objects.equals(editor, location.editor))...
equals
54,326
int () { int result = editor != null ? editor.hashCode() : 0; result = 31 * result + (ktFile != null ? ktFile.hashCode() : 0); result = 31 * result + (int)(modificationStamp ^ (modificationStamp >>> 32)); result = 31 * result + startOffset; result = 31 * result + endOffset; return result; }
hashCode
54,327
void ( @NotNull List<String> fileNames, @NotNull List<String> additionalClasspath, @NotNull List<String> additionalOptions, @NotNull File outDirectory ) { try { List<String> options = prepareJavacOptions(additionalClasspath, additionalOptions, outDirectory); KotlinTestUtils.compileJavaFiles(CollectionsKt.map(fileNames,...
compileJava
54,328
List<String> ( @NotNull List<String> additionalClasspath, @NotNull List<String> additionalOptions, @NotNull File outDirectory ) { List<String> classpath = new ArrayList<>(); classpath.add(TestKotlinArtifacts.getKotlinStdlib().getPath()); classpath.add(TestKotlinArtifacts.getKotlinReflect().getPath()); classpath.add(Tes...
prepareJavacOptions
54,329
void ( @NotNull ConfigurationKind configurationKind, @NotNull File... javaSourceRoots ) { if (myEnvironment != null) { throw new IllegalStateException("must not set up myEnvironment twice"); } CompilerConfiguration configuration = createConfiguration( configurationKind, TestJdkKind.MOCK_JDK, getBackend(), Collections.s...
createEnvironmentWithMockJdkAndIdeaAnnotations
54,330
void (@NotNull List<TestFile> files) { myFiles = loadMultiFiles(files, myEnvironment.getProject()); }
loadMultiFiles
54,331
List<KtFile> (@NotNull List<TestFile> files, @NotNull Project project) { Collections.sort(files); List<KtFile> ktFiles = new ArrayList<>(files.size()); for (TestFile file : files) { if (file.name.endsWith(".kt") || file.name.endsWith(".kts")) { // `rangesToDiagnosticNames` parameter is not-null only for diagnostic test...
loadMultiFiles
54,332
TargetBackend () { return TargetBackend.JVM; }
getBackend
54,333
List<TestFile> (@NotNull File file, @NotNull String expectedText) { return createTestFilesFromFile(file, expectedText, parseDirectivesPerFiles(), getBackend()); }
createTestFilesFromFile
54,334
List<TestFile> ( @NotNull File file, @NotNull String expectedText, boolean parseDirectivesPerFiles, @NotNull TargetBackend backend ) { List<TestFile> testFiles = TestFiles.createTestFiles(file.getName(), expectedText, new TestFiles.TestFileFactoryNoModules<>() { @NotNull @Override public TestFile create(@NotNull String...
createTestFilesFromFile
54,335
TestFile (@NotNull String fileName, @NotNull String text, @NotNull Directives directives) { return new TestFile(fileName, text, directives); }
create
54,336
File () { return createTempDirectory("java-files"); }
getJavaSourcesOutputDirectory
54,337
File (String prefix) { try { return KotlinTestUtils.tmpDir(prefix); } catch (IOException e) { throw ExceptionUtilsKt.rethrow(e); } }
createTempDirectory
54,338
File (@NotNull List<TestFile> files) { List<TestFile> javaFiles = CollectionsKt.filter(files, file -> file.name.endsWith(".java")); if (javaFiles.isEmpty()) return null; File dir = getJavaSourcesOutputDirectory(); for (TestFile testFile : javaFiles) { File file = new File(dir, testFile.name); KotlinTestUtils.mkdirs(fil...
writeJavaFiles
54,339
ClassLoader (@NotNull File... files) { try { List<URL> urls = new ArrayList<>(2); for (File file : files) { urls.add(file.toURI().toURL()); } return new URLClassLoader(urls.toArray(new URL[0]), null); } catch (MalformedURLException e) { throw ExceptionUtilsKt.rethrow(e); } }
createClassLoader
54,340
KotlinCoreEnvironment ( @NotNull Disposable disposable, @NotNull ConfigurationKind configurationKind, @NotNull TestJdkKind jdkKind ) { return KotlinCoreEnvironment.createForTests( disposable, newConfiguration(configurationKind, jdkKind, TestKotlinArtifacts.getJetbrainsAnnotations()), EnvironmentConfigFiles.JVM_CONFIG_F...
createEnvironmentWithJdkAndNullabilityAnnotationsFromIdea
54,341
Ref<Disposable> (@NotNull UsefulTestCase testCase) { return allowRootAccess(testCase, KotlinRoot.REPO.getAbsolutePath()); }
allowProjectRootAccess
54,342
Ref<Disposable> (@NotNull UsefulTestCase testCase, String... roots) { Disposable disposable = Disposer.newDisposable(testCase.getTestRootDisposable(), testCase.getClass().getName()); VfsRootAccess.allowRootAccess(disposable, roots); return new Ref<>(disposable); }
allowRootAccess
54,343
void (@Nullable Ref<Disposable> vfsDisposableRef) { Disposable vfsDisposable = vfsDisposableRef != null ? vfsDisposableRef.get() : null; if (vfsDisposable != null && !Disposer.isDisposed(vfsDisposable)) { Disposer.dispose(vfsDisposable); vfsDisposableRef.set(null); } }
disposeVfsRootAccess
54,344
File () { return new File(IdeaTestUtil.getMockJdk18Path().getAbsolutePath(), "jre/lib/rt.jar"); }
findMockJdkRtJar
54,345
File () { String androidSdkProp = System.getProperty("android.sdk"); File androidSdkPropDir = androidSdkProp == null ? null : new File(androidSdkProp); String androidHomeEnv = System.getenv("ANDROID_HOME"); File androidHomeEnvDir = androidHomeEnv == null ? null : new File(androidHomeEnv); String androidSdkRootEnv = Sys...
findAndroidSdk
54,346
String () { return PathUtil.toSystemIndependentName(findAndroidSdk().getAbsolutePath()); }
getAndroidSdkSystemIndependentPath
54,347
void (@NotNull File file) { if (file.isDirectory()) { return; } if (!file.mkdirs()) { if (file.exists()) { throw new IllegalStateException("Failed to create " + file + ": file exists and not a directory"); } throw new IllegalStateException("Failed to create " + file); } }
mkdirs
54,348
KtFile (@NotNull @NonNls String name, @NotNull String text, @NotNull Project project) { String shortName = name.substring(name.lastIndexOf('/') + 1); shortName = shortName.substring(shortName.lastIndexOf('\\') + 1); LightVirtualFile virtualFile = new LightVirtualFile(shortName, KotlinLanguage.INSTANCE, StringUtilRt.con...
createFile
54,349
CompilerConfiguration () { CompilerConfiguration configuration = new CompilerConfiguration(); configuration.put(CommonConfigurationKeys.MODULE_NAME, TEST_MODULE_NAME); configuration.put(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, new MessageCollector() { @Override public void clear() { } @Override public void report( @...
newConfiguration
54,350
void () { }
clear
54,351
void ( @NotNull CompilerMessageSeverity severity, @NotNull String message, @Nullable CompilerMessageSourceLocation location ) { if (severity == CompilerMessageSeverity.ERROR) { String prefix = location == null ? "" : "(" + location.getPath() + ":" + location.getLine() + ":" + location.getColumn() + ") "; throw new Asse...
report
54,352
boolean () { return false; }
hasErrors
54,353
CompilerConfiguration ( @NotNull ConfigurationKind configurationKind, @NotNull TestJdkKind jdkKind, @NotNull File... extraClasspath ) { return newConfiguration(configurationKind, jdkKind, Arrays.asList(extraClasspath), Collections.emptyList()); }
newConfiguration
54,354
CompilerConfiguration ( @NotNull ConfigurationKind configurationKind, @NotNull TestJdkKind jdkKind, @NotNull List<File> classpath, @NotNull List<File> javaSource ) { CompilerConfiguration configuration = newConfiguration(); JvmContentRootsKt.addJavaSourceRoots(configuration, javaSource); if (jdkKind == TestJdkKind.MOCK...
newConfiguration
54,355
void () { System.getProperties().setProperty("psi.incremental.reparse.depth.limit", "1000"); }
setupIdeaStandaloneExecution
54,356
File () { return new File(System.getProperty("java.home")); }
getCurrentProcessJdkHome
54,357
void (@NotNull File expectedFile, @NotNull Editor editor) { assertEqualsToFile(expectedFile, editor, true); }
assertEqualsToFile
54,358
void (@NotNull File expectedFile, @NotNull Editor editor, Boolean enableSelectionTags) { Caret caret = editor.getCaretModel().getCurrentCaret(); List<TagsTestDataUtil.TagInfo> tags = Lists.newArrayList( new TagsTestDataUtil.TagInfo<>(caret.getOffset(), true, "caret") ); if (enableSelectionTags) { int selectionStart = c...
assertEqualsToFile
54,359
void (@NotNull Path expectedFile, @NotNull String actual) { assertEqualsToFile(expectedFile.toFile(), actual); }
assertEqualsToFile
54,360
void (@NotNull Path originalFile, @NotNull String expectedExtension, @NotNull String actual) { String nameWithoutExtension = PathsKt.getNameWithoutExtension(originalFile); Path expectedFile = originalFile.resolveSibling(nameWithoutExtension + '.' + StringsKt.removePrefix(expectedExtension, ".")); assertEqualsToFile(exp...
assertEqualsToSibling
54,361
void (@NotNull File expectedFile, @NotNull String actual) { assertEqualsToFile(expectedFile, actual, s -> s); }
assertEqualsToFile
54,362
void (@NotNull String message, @NotNull File expectedFile, @NotNull String actual) { assertEqualsToFile(message, expectedFile, actual, s -> s); }
assertEqualsToFile
54,363
void ( @NotNull File expectedFile, @NotNull String actual, @NotNull Function1<String, String> sanitizer ) { assertEqualsToFile("Actual data differs from file content", expectedFile, actual, sanitizer); }
assertEqualsToFile
54,364
void ( @NotNull String message, @NotNull File expectedFile, @NotNull String actual, @NotNull Function1<String, String> sanitizer ) { try { String actualText = JetTestUtils.trimTrailingWhitespacesAndAddNewlineAtEOF(StringUtil.convertLineSeparators(actual.trim())); if (!expectedFile.exists()) { FileUtil.writeToFile(expec...
assertEqualsToFile
54,365
Directives (String expectedText) { return parseDirectives(expectedText, new Directives()); }
parseDirectives
54,366
Directives (String expectedText, @NotNull Directives directives) { Matcher directiveMatcher = DIRECTIVE_PATTERN.matcher(expectedText); while (directiveMatcher.find()) { String name = directiveMatcher.group(1); String value = directiveMatcher.group(3); directives.put(name, value); } return directives; }
parseDirectives
54,367
List<String> (String filePath) { String content; try { content = FileUtil.loadFile(new File(filePath), true); } catch (IOException e) { throw new RuntimeException(e); } List<String> files = TestFiles.createTestFiles("", content, new TestFiles.TestFileFactoryNoModules<>() { @NotNull @Override public String create(@NotNu...
loadBeforeAfterText
54,368
String (@NotNull String fileName, @NotNull String text, @NotNull Directives directives) { int firstLineEnd = text.indexOf('\n'); return StringUtil.trimTrailing(text.substring(firstLineEnd + 1)); }
create
54,369
String (@NotNull Document document) { List<CharSequence> resultLines = new ArrayList<>(); for (int i = document.getLineCount() - 1; i >= 0; i--) { int lineStart = document.getLineStartOffset(i); int lineEnd = document.getLineEndOffset(i); if (document.getCharsSequence().subSequence(lineStart, lineEnd).toString().trim()...
getLastCommentedLines
54,370
String (@NotNull KtFile file) { return CollectionsKt.first(getLastCommentsInFile(file, CommentType.ALL, true)); }
getLastCommentInFile
54,371
List<String> (@NotNull KtFile file, CommentType commentType, boolean assertMustExist) { PsiElement lastChild = file.getLastChild(); if (lastChild != null && lastChild.getNode().getElementType().equals(KtTokens.WHITE_SPACE)) { lastChild = lastChild.getPrevSibling(); } assert lastChild != null; List<String> comments = ne...
getLastCommentsInFile
54,372
DoTest (DoTest test, TargetBackend targetBackend, String ignoreDirective, TestCase testCase) { return filePath -> { File testDataFile = new File(filePath); boolean isIgnored = isIgnoredTarget(targetBackend, testDataFile, ignoreDirective); if (DONT_IGNORE_TESTS_WORKING_ON_COMPATIBLE_BACKEND) { // Only ignore if it is ig...
testWithCustomIgnoreDirective
54,373
void (TargetBackend targetBackend, String ignoreDirective, File testDataFile) { if (AUTOMATICALLY_UNMUTE_PASSED_TESTS) { try { String text = doLoadFile(testDataFile); String directive = ignoreDirective + targetBackend.name(); String newText = Pattern.compile("^" + directive + "\n", Pattern.MULTILINE).matcher(text).repl...
processIgnoreIsPassed
54,374
String (@NotNull Class<?> testCaseClass) { File testData = TestMetadataUtil.getTestData(testCaseClass); Assert.assertNotNull("No metadata for class: " + testCaseClass, testData); return testData.toString(); }
getTestsRoot
54,375
String (@NotNull String path) { // Drop when LightPlatformCodeInsightTestCase#configureByFile gets rid of // `String fullPath = getTestDataPath() + relativePath;` return path.endsWith(File.separator) ? path : path + File.separatorChar; }
toSlashEndingDirPath
54,376
String (@NotNull Class<?> testCaseClass, @NotNull String testName) { try { Method method = testCaseClass.getMethod(testName); return getMethodMetadata(method); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } }
getTestDataFileName
54,377
String (Method method) { TestMetadata testMetadata = method.getAnnotation(TestMetadata.class); return (testMetadata != null) ? testMetadata.value() : null; }
getMethodMetadata
54,378
File (@NotNull File file, @Nullable String newExtension) { return new File(file.getParentFile(), FileUtil.getNameWithoutExtension(file) + (newExtension == null ? "" : "." + newExtension)); }
replaceExtension
54,379
boolean (@NotNull String name) { int firstDotIndex = name.indexOf('.'); if (firstDotIndex == -1) { return false; } // Several extension if name contains another dot return name.indexOf('.', firstDotIndex + 1) != -1; }
isMultiExtensionName
54,380
KotlinCoreEnvironment (@NotNull ConfigurationKind configurationKind) { return createEnvironmentWithJdk(configurationKind, TestJdkKind.MOCK_JDK); }
createEnvironmentWithMockJdk
54,381
KotlinCoreEnvironment (@NotNull ConfigurationKind configurationKind, @NotNull TestJdkKind jdkKind) { return KotlinTestUtils.createEnvironmentWithJdkAndNullabilityAnnotationsFromIdea(getTestRootDisposable(), configurationKind, jdkKind); }
createEnvironmentWithJdk
54,382
KotlinCoreEnvironment () { return environment; }
getEnvironment
54,383
Project () { return getEnvironment().getProject(); }
getProject
54,384
Integer (String fileText, String prefix) { String[] strings = findArrayWithPrefixes(fileText, prefix); if (strings.length > 0) { assert strings.length == 1; return Integer.parseInt(strings[0]); } return null; }
getPrefixedInt
54,385
Boolean (String fileText, String prefix) { String[] strings = findArrayWithPrefixes(fileText, prefix); if (strings.length > 0) { assert strings.length == 1; return Boolean.parseBoolean(strings[0]); } return null; }
getPrefixedBoolean
54,386
String[] (@NotNull String fileText, @NotNull String... prefixes) { return ArrayUtil.toStringArray(findListWithPrefixes(fileText, prefixes)); }
findArrayWithPrefixes
54,387
List<String> (@NotNull String fileText, @NotNull String... prefixes) { List<String> result = new ArrayList<>(); for (String line : findLinesWithPrefixesRemoved(fileText, prefixes)) { splitValues(result, line); } return result; }
findListWithPrefixes
54,388
List<String> (List<String> result, String line) { String unquoted = StringUtil.unquoteString(line); if (!unquoted.equals(line)) { result.add(unquoted); } else{ String[] variants = line.split(","); for (String variant : variants) { result.add(variant.trim()); } } return result; }
splitValues
54,389
boolean (String fileText, String directive) { return !findListWithPrefixes(fileText, directive).isEmpty(); }
isDirectiveDefined
54,390
String (String fileText, String directive) { String string = findStringWithPrefixes(fileText, "// " + directive + ":"); if (string == null) { throw new IllegalStateException("'" + directive + "' directive is missed"); } return string; }
stringWithDirective
54,391
String (String fileText, String... prefixes) { List<String> strings = findListWithPrefixes(fileText, prefixes); if (strings.isEmpty()) { return null; } if (strings.size() != 1) { throw new IllegalStateException("There is more than one string with given prefixes " + Arrays.toString(prefixes) + ":\n" + StringUtil.join(st...
findStringWithPrefixes
54,392
List<String> (String fileText, String... prefixes) { return findLinesWithPrefixesRemoved(fileText, true, true, prefixes); }
findLinesWithPrefixesRemoved
54,393
List<String> (String fileText, boolean trim, boolean strict, String... prefixes) { if (prefixes.length == 0) { throw new IllegalArgumentException("Please specify the prefixes to check"); } List<String> result = new ArrayList<>(); List<String> cleanedPrefixes = cleanDirectivesFromComments(Arrays.asList(prefixes)); for (...
findLinesWithPrefixesRemoved
54,394
void (String fileText, Collection<String> knownPrefixes) { Set<String> prefixes = new HashSet<>(); for (String line : fileNonEmptyCommentedLines(fileText)) { String prefix = probableDirective(line); if (prefix != null) { prefixes.add(prefix); } } prefixes.removeAll(cleanDirectivesFromComments(knownPrefixes)); Assert.as...
assertHasUnknownPrefixes
54,395
String (String line) { String[] arr = line.split(" ", 2); String firstWord = arr[0]; if (firstWord.length() > 1 && StringUtil.toUpperCase(firstWord).equals(firstWord)) { return firstWord; } return null; }
probableDirective
54,396
List<String> (Collection<String> prefixes) { List<String> resultPrefixes = Lists.newArrayList(); for (String prefix : prefixes) { if (prefix.startsWith("//") || prefix.startsWith("##")) { resultPrefixes.add(StringUtil.trimLeading(prefix.substring(2))); } else { resultPrefixes.add(prefix); } } return resultPrefixes; }
cleanDirectivesFromComments
54,397
List<String> (String fileText) { List<String> result = new ArrayList<>(); try { try (BufferedReader reader = new BufferedReader(new StringReader(fileText))) { String line; while ((line = reader.readLine()) != null) { line = line.trim(); if (line.startsWith("//") || line.startsWith("##")) { String uncommentedLine = line...
fileNonEmptyCommentedLines
54,398
String (File file) { try { String fileText; if (file.isDirectory()) { File directivesFile = new File(file, DIRECTIVES_FILE_NAME); if (!directivesFile.exists()) return ""; fileText = FileUtil.loadFile(directivesFile); } else { fileText = FileUtil.loadFile(file); } return fileText; } catch (IOException e) { throw new Run...
textWithDirectives
54,399
boolean (TargetBackend targetBackend, File file) { if (targetBackend == TargetBackend.ANY) return true; List<String> doNotTarget = findLinesWithPrefixesRemoved(textWithDirectives(file), "// DONT_TARGET_EXACT_BACKEND: "); if (doNotTarget.contains(targetBackend.name())) return false; List<String> backends = findLinesWith...
isCompatibleTarget