Home
last modified time | relevance | path

Searched refs:sourceFile (Results 1 – 15 of 15) sorted by relevance

/interface/sdk-js/build-tools/jsdoc_format_plugin/src/core/
DoutputProcessor.ts62 const sourceFile = sourceParser.visitEachNodeComment(this); constant
63 return sourceFile ? sourceParser.printSourceFile(sourceFile) : this.source;
81 const sourceFile = this.sourceParser.createSourceFile(content, 'numberLiteral'); constant
82 if (!sourceFile) {
86 sourceFile.forEachChild((child) => {
DrawCodeProcessor.ts41 const sourceFile = node.astNode.getSourceFile(); constant
42 if (!sourceFile) {
45 const { line, character } = sourceFile.getLineAndCharacterOfPosition(node.astNode.getStart());
DapiSplitProcessor.ts36 const sourceFile = sourceParser.transform(this); constant
39 content: sourceFile ? sourceParser.printSourceFile(sourceFile) : content
181 const sourceFile: ts.SourceFile = node as ts.SourceFile; constant
183 const statements: ts.NodeArray<ts.Statement> = sourceFile.statements;
199 return ts.factory.updateSourceFile(sourceFile, newStatements, sourceFile.isDeclarationFile,
200 sourceFile.referencedFiles, sourceFile.typeReferenceDirectives, sourceFile.hasNoDefaultLib,
201 sourceFile.libReferenceDirectives);
DasynchronousFunctionProcessor.ts33 const sourceFile: ts.SourceFile | undefined = sourceParser.createSourceFile(content); constant
34 if (!sourceFile) {
38 ts.forEachChild(sourceFile, (cNode) => {
43 content: sourceParser.printSourceFile(sourceFile)
DcoreImpls.ts91 static getOutputFilePath(inputParam: InputParameter, sourceFile: string): string {
92 …inputParam.isHandleMultiFiles() ? OutputFileHelper.getMultiOutputFilePath(inputParam, sourceFile) :
96 static getMultiOutputFilePath(inputParam: InputParameter, sourceFile: string): string {
98 const relativePath = path.relative(inputParam.inputFilePath!, sourceFile);
134 function getCommentNode(node: ts.Node, parentNode: comment.CommentNode | undefined, sourceFile: ts.…
135 …st leadingComments: comment.CommentInfo[] = CommentHelper.getNodeLeadingComments(node, sourceFile);
180 …const sourceFile = ts.createSourceFile(name ? name : 'memory', content, this.options.scriptTarget,… constant
182 if (sourceFile.statements.length === 0) {
185 return sourceFile;
221 …function nodeVisitor(node: ts.Node, parentNode: comment.CommentNode | undefined, sourceFile: ts.So…
[all …]
Dtypedef.ts751 abstract printSourceFile(sourceFile: ts.SourceFile): string;
/interface/sdk-js/build-tools/dts_parser/src/coreImpl/parser/
Dparser.ts69 …const sourceFile: ts.SourceFile = ts.createSourceFile(fileName, fileContent, ts.ScriptTarget.ES201… constant
70 … const sourceFileInfo: BasicApiInfo = new BasicApiInfo(ApiType.SOURCE_FILE, sourceFile, undefined);
76 NodeProcessorHelper.processReference(sourceFile, currentApiMap, sourceFileInfo);
77 sourceFile.forEachChild((cNode: ts.Node) => {
DJsDocProcessor.ts35 static getNodeLeadingComments(node: ts.Node, sourceFile: ts.SourceFile): Comment.CommentInfo[] {
38 sourceFile.getFullText(),
44 const comment: string = sourceFile.getFullText().slice(range.pos, range.end);
207 const sourceFile = node.getSourceFile(); constant
208 …st allCommentInfos: Comment.CommentInfo[] = CommentHelper.getNodeLeadingComments(node, sourceFile);
DNodeProcessor.ts56 sourceFile: ts.SourceFile,
61 sourceFile.referencedFiles.forEach((referencedFile: ts.FileReference) => {
62 …const referenceInfo: ReferenceInfo = new ReferenceInfo(ApiType.REFERENCE_FILE, sourceFile, parentA…
/interface/sdk-js/build-tools/api_check_plugin/
Dindex.js21 exports.checkJSDoc = function (node, sourceFile, fileName) { argument
23 return checkLegality.checkJsDocOfCurrentNode(node, sourceFile, fileName, false, false);
/interface/sdk-js/build-tools/api_diff/src/
Dapi_collector.js241 function getSourceFile(sourceFile, parentApiDigest, ext) { argument
244 return wrapApiDigestInfo(sourceFile, className, className, ApiType.SourceFile, rawText, ext);
286 const sourceFile = astNode.getSourceFile();
287 …const leadingCommentRange = ts.getLeadingCommentRanges(sourceFile.getFullText(), astNode.getFullSt…
293 commentText += sourceFile.getFullText().slice(range.pos, range.end);
378 const sourceFile = ts.createSourceFile(apiFileName, fileContent, ts.ScriptTarget.ES2017, true);
/interface/sdk-js/build-tools/collect_application_api/src/
Dapi_collector.js167 const sourceFile = program.getSourceFileByPath(canonicalFileName);
168 if (sourceFile) {
170 Logger.info(this.logTag, `scan ${sourceFile.fileName}`);
172 systemApiRecognizer.visitNode(sourceFile, sourceFile.fileName);
/interface/sdk-js/build-tools/
Ddelete_systemapi_plugin.js19 let sourceFile = null; variable
73 let sourceFile = ts.createSourceFile(fileName, content, ts.ScriptTarget.ES2017, true);
74 const sourceInfo = getKitNewSourceFile(sourceFile, kitName);
75 if (isEmptyFile(sourceInfo.sourceFile)) {
79 let result = printer.printNode(ts.EmitHint.Unspecified, sourceInfo.sourceFile, sourceFile);
93 function getKitNewSourceFile(sourceFile, kitName) { argument
100 sourceFile.statements.forEach((statement, index) => {
106 copyrightMessage = sourceFile.getFullText().replace(sourceFile.getText(), '');
118 sourceFile = factory.updateSourceFile(sourceFile, newStatements);
119 return { sourceFile, copyrightMessage };
[all …]
/interface/sdk-js/api/
D@ohos.file.fileAccess.d.ts1456 move(sourceFile: string, destFile: string): Promise<string>;
1503 move(sourceFile: string, destFile: string, callback: AsyncCallback<string>): void;
/interface/sdk-js/build-tools/dts_parser/src/typedef/parser/
DApiInfoDefination.ts75 const sourceFile: ts.SourceFile = node.getSourceFile(); constant
77 const pos: ts.LineAndCharacter = sourceFile.getLineAndCharacterOfPosition(start);