Exemple #1
0
        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));
        }
Exemple #2
0
 public MethodSignatureToken(MethodToken method, ParameterTypeToken[] parameters)
 {
     Method     = method;
     Parameters = parameters;
 }