Searched refs:fileContent (Results 1 – 4 of 4) sorted by relevance
/arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
D | TransformUtil.spec.ts | 27 const fileContent = ` constant 37 sourceFile = createSourceFile('demo.js', fileContent, ScriptTarget.ES2015, true); 54 const fileContent = `var hilog = globalThis.requireNapi('hilog') || constant 60 const source = createSourceFile('demo2.js', fileContent, ScriptTarget.ES2015, true); 68 const fileContent = `var _ohos = _interopRequireDefault(requireModule('@ohos.hilog'))`; constant 69 const source = createSourceFile('demo2.js', fileContent, ScriptTarget.ES2015, true);
|
D | TypeUtils.spec.ts | 26 const fileContent = ` constant 36 sourceFile = createSourceFile('demo.ts', fileContent, ScriptTarget.ES2015, true);
|
D | FileUtils.spec.ts | 110 const fileContent = FileUtils.readFile(path); constant 111 assert.strictEqual(fileContent, content);
|
/arkcompiler/ets_frontend/arkguard/src/common/ |
D | ApiExtractor.ts | 527 const fileContent = fs.readFileSync(filePath, 'utf-8'); constant 529 const matches = fileContent.match(regex);
|