!125 fix code warnings

Merge pull request !125 from fupengfei/master
This commit is contained in:
openharmony_ci
2023-09-04 02:09:19 +00:00
committed by Gitee
2 changed files with 3 additions and 2 deletions
@@ -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';