private Token Parse(string methodSignature) { var match = m_signatureRegex.Match(methodSignature); if (!match.Success) { return(new UnknownToken(methodSignature)); } string method = match.Groups["method"].Value; string parameters = match.Groups["parameters"].Value; MethodToken methodToken = ParseMethod(method); if (methodToken == null) { return(new UnknownToken(methodSignature)); } ParameterTypeToken[] parameterTokens = ParseParameters(parameters); if (parameterTokens == null) { return(new UnknownToken(methodSignature)); } return(new MethodSignatureToken(methodToken, parameterTokens)); }
public MethodSignatureToken(MethodToken method, ParameterTypeToken[] parameters) { Method = method; Parameters = parameters; }