Exemple #1
0
        public TypedValue Invoke(TypedValue instance, string memberName, Tree <string> parameters)
        {
            var runtime = new InvokeDefault <string, Processor <string> > {
                Processor = Processor
            };
            var result = runtime.Invoke(instance, memberName, parameters);

            if (!IsMemberMissing(result))
            {
                return(result);
            }

            foreach (var libraryInstance in Processor.LibraryInstances)
            {
                var libraryResult = runtime.Invoke(libraryInstance, memberName, parameters);
                if (!IsMemberMissing(libraryResult))
                {
                    return(libraryResult);
                }
            }
            return(result);
        }
 [SetUp] public void SetUp()
 {
     runtime = new InvokeDefault <string, BasicProcessor> {
         Processor = processor
     };
 }
 [SetUp] public void SetUp() {
     runtime = new InvokeDefault<string, BasicProcessor> { Processor = processor};
 }