From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/call-matcher/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'node_modules/call-matcher/index.js') diff --git a/node_modules/call-matcher/index.js b/node_modules/call-matcher/index.js index 24163e354..a234a4b93 100644 --- a/node_modules/call-matcher/index.js +++ b/node_modules/call-matcher/index.js @@ -4,7 +4,7 @@ * * https://github.com/twada/call-matcher * - * Copyright (c) 2015-2016 Takuto Wada + * Copyright (c) 2015-2018 Takuto Wada * Licensed under the MIT license. * https://github.com/twada/call-matcher/blob/master/MIT-LICENSE.txt */ @@ -109,15 +109,17 @@ CallMatcher.prototype.isSameDepthAsSignatureCallee = function (ast) { return (depth === currentDepth); }; -function toArgumentSignature (argSignatureNode) { +function toArgumentSignature (argSignatureNode, idx) { switch(argSignatureNode.type) { case syntax.Identifier: return { + index: idx, name: argSignatureNode.name, kind: 'mandatory' }; case syntax.ArrayExpression: return { + index: idx, name: argSignatureNode.elements[0].name, kind: 'optional' }; -- cgit v1.2.3