mirror of
https://github.com/openharmony/tools_previewer.git
synced 2026-07-19 14:23:32 -04:00
@@ -179,7 +179,7 @@ export function getParameter(parameter: ParameterDeclaration, sourceFile: Source
|
||||
* @returns
|
||||
*/
|
||||
export function getFunctionAndMethodReturnInfo(node: FunctionDeclaration | MethodDeclaration |
|
||||
MethodSignature | CallSignatureDeclaration, sourceFile: SourceFile): ReturnTypeEntity {
|
||||
MethodSignature | CallSignatureDeclaration, sourceFile: SourceFile): ReturnTypeEntity {
|
||||
const returnInfo = { returnKindName: '', returnKind: -1 };
|
||||
if (node.type !== undefined) {
|
||||
const start = node.type.pos === undefined ? 0 : node.type.pos;
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { isComputedPropertyName, MethodDeclaration, Node, SourceFile } from 'typescript';
|
||||
import { isComputedPropertyName } from 'typescript';
|
||||
import type { MethodDeclaration, Node, SourceFile } from 'typescript';
|
||||
import {
|
||||
getFunctionAndMethodReturnInfo, getModifiers, getParameter, getPropertyName
|
||||
} from '../common/commonUtils';
|
||||
|
||||
Reference in New Issue
Block a user