| /arkcompiler/ets_frontend/ets2panda/linter/lib/utils/functions/ |
| D | PathHelper.ts | 30 export function srcFilePathContainsDirectory(srcFile: ts.SourceFile, dir: string): boolean { 31 let pathComps = srcFilePathComponents.get(srcFile); 33 pathComps = npath.dirname(npath.normalize(srcFile.fileName)).split(npath.sep); 34 srcFilePathComponents.set(srcFile, pathComps);
|
| D | IsStdLibrary.ts | 26 const srcFile = sym.declarations[0].getSourceFile(); constant 27 return srcFile && STANDARD_LIBRARIES.includes(path.basename(srcFile.fileName).toLowerCase());
|
| D | GetScriptKind.ts | 19 export function getScriptKind(srcFile: ts.SourceFile): ts.ScriptKind { 20 const fileName = srcFile.fileName;
|
| /arkcompiler/ets_frontend/ets2panda/linter/lib/ |
| D | LinterRunner.ts | 99 const srcFile = tsProgram.getSourceFile(inputFile); constant 100 if (srcFile) { 101 srcFiles.push(srcFile); 141 for (const srcFile of srcFiles) { constant 153 linter.lint(srcFile); 155 problemsInfos.set(path.normalize(srcFile.fileName), [...linter.problemsInfos]); 166 srcFile,
|
| D | IsEtsFileCallback.ts | 18 export type IsEtsFileCallback = (srcFile: ts.SourceFile) => boolean;
|
| /arkcompiler/runtime_core/static_core/libpandabase/os/ |
| D | stacktrace.cpp | 125 std::string srcFile; in PrintFrame() local 127 … if (ReadDebugInfo(vma) && vma->debugInfo.GetSrcLocation(pcOffset, &function, &srcFile, &line)) { in PrintFrame() 128 PrintFrame(function, srcFile, line, out); in PrintFrame() 140 …void PrintFrame(const std::string &function, const std::string &srcFile, unsigned int line, std::o… in PrintFrame() argument 148 if (srcFile.empty()) { in PrintFrame() 151 out << srcFile; in PrintFrame()
|
| D | debug_info.cpp | 316 bool DebugInfo::GetSrcLocation(uintptr_t pc, std::string *function, std::string *srcFile, uint32_t … in GetSrcLocation() argument 355 GetSrcFileAndLine(pc, it->GetCu()->GetLineContext(), srcFile, line); in GetSrcLocation() 556 char *srcFile = nullptr; in GetSrcFileAndLine() local 557 if (dwarf_linesrc(line, &srcFile, nullptr) == DW_DLV_OK) { in GetSrcFileAndLine() 558 *outSrcFile = srcFile; in GetSrcFileAndLine() 559 DwarfGuard g(dbg_, srcFile, DW_DLA_STRING); in GetSrcFileAndLine() 561 dwarf_linesrc(line, &srcFile, nullptr); in GetSrcFileAndLine() 562 *outSrcFile = srcFile; in GetSrcFileAndLine() 563 DwarfGuard g(dbg_, srcFile, DW_DLA_STRING); in GetSrcFileAndLine()
|
| D | debug_info.h | 45 bool GetSrcLocation(uintptr_t pc, std::string *function, std::string *srcFile, uint32_t *line);
|
| /arkcompiler/ets_frontend/ets2panda/linter/lib/autofixes/ |
| D | Autofixer.ts | 909 const srcFile = objectLiteralExpr.getSourceFile(); constant 910 …t newInterfaceName = TsUtils.generateUniqueName(this.objectLiteralInterfaceNameGenerator, srcFile); 916 … this.createNewInterface(srcFile, newInterfaceName, newInterfaceProps, enclosingStmt.getStart()), 917 this.fixObjectLiteralExpression(srcFile, newInterfaceName, objectLiteralExpr) 985 srcFile: ts.SourceFile, 997 const text = this.printer.printNode(ts.EmitHint.Unspecified, newInterfaceDecl, srcFile) + '\n'; 1002 srcFile: ts.SourceFile, 1031 const text = this.printer.printNode(ts.EmitHint.Unspecified, newExpr, srcFile); 1081 const srcFile = typeLiteral.getSourceFile(); constant 1091 …nst newInterfaceName = TsUtils.generateUniqueName(this.typeLiteralInterfaceNameGenerator, srcFile); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/lib/utils/ |
| D | TsUtils.ts | 1371 const srcFile = sym.declarations[0].getSourceFile(); constant 1372 if (!srcFile) { 1375 const fileName = srcFile.fileName; 1385 return srcFilePathContainsDirectory(srcFile, ignore); 1391 const isTs = ext === '.ts' && !srcFile.isDeclarationFile; 2430 static declarationNameExists(srcFile: ts.SourceFile, name: string): boolean { 2431 return srcFile.statements.some((stmt) => { 2458 …static generateUniqueName(nameGenerator: NameGenerator, srcFile: ts.SourceFile): string | undefine… 2463 if (newName !== undefined && TsUtils.declarationNameExists(srcFile, newName)) {
|
| /arkcompiler/ets_frontend/ets2panda/parser/ |
| D | ETSparser.cpp | 150 ArenaVector<ir::ETSImportDeclaration *> ETSParser::ParseDefaultSources(std::string_view srcFile, in ParseDefaultSources() argument 154 SourceFile source(srcFile, importSrc); in ParseDefaultSources()
|
| D | ETSparser.h | 44 …ArenaVector<ir::ETSImportDeclaration *> ParseDefaultSources(std::string_view srcFile, std::string_…
|