Пример #1
0
        public override bool IsMatch(string token)
        {
            if (token.IndexOf(Strings.Split) < 0)
            {
                return(false);
            }

            var array = token.Split(Strings.Split);

            return(LambdaEnginerConfig.FindMethodType(array[0]) != null);
        }
Пример #2
0
        internal override int TryAddVariable(IEnumerable <Token> tokens, Token token, ICollection <Variable> variables, int i)
        {
            var flag  = token.Flag;
            var array = flag.Split(Strings.Split);
            var key   = array[0];

            var staticMethodVariable = new StaticMethodVariable
            {
                Value        = flag,
                Name         = key,
                InstanceType = LambdaEnginerConfig.FindMethodType(array[0])
            };

            variables.Add(staticMethodVariable);
            Util.SetInvokeParam(tokens, staticMethodVariable, flag, i);
            return(i + staticMethodVariable.ParamTokenCount);
        }