TryEvaluate() abstract private method

abstract private TryEvaluate ( Stack contextStack, CompilationState state, Context &context ) : bool
contextStack Stack
state CompiledHandlebars.Compiler.CodeGeneration.CompilationState
context CompiledHandlebars.Compiler.Introspection.Context
return bool
Beispiel #1
0
        internal override bool TryEvaluate(CompilationState state, out Context context)
        {
            //Copy Stack as identifier elements manipulate (push, pop)
            var cpContextStack = new Stack <Context>();

            cpContextStack = new Stack <Context>(state.ContextStack.Reverse());
            return(Path.TryEvaluate(cpContextStack, state, out context));
        }