/// <param name="compiler"></param>
 /// <inheritdoc />
 public CompilationAsync Compile(IDocumentCompiler compiler)
 {
     return(async(stream, context, scopeData) =>
     {
         scopeData.RemoveVariable(Value, IdVariableScope);
         await AsyncHelper.FakePromise();
     });
 }
 /// <param name="compiler"></param>
 /// <inheritdoc />
 public CompilationAsync Compile(IDocumentCompiler compiler)
 {
     return(async(stream, context, scopeData) =>
     {
         CoreAction(scopeData);
         await AsyncHelper.FakePromise();
     });
 }
示例#3
0
        /// <param name="compiler"></param>
        /// <inheritdoc />
        public CompilationAsync Compile(IDocumentCompiler compiler)
        {
            var children = compiler.Compile(Children);

            return(async(stream, context, scopeData) =>
            {
                scopeData.CompiledPartials[PartialName] = children;
                await AsyncHelper.FakePromise();
            });
        }
示例#4
0
 /// <summary>
 ///		Defines an option that does nothing
 /// </summary>
 /// <param name="outputStream"></param>
 /// <param name="context"></param>
 /// <param name="scopeData"></param>
 /// <returns></returns>
 public static Promise NopAction(IByteCounterStream outputStream,
                                 ContextObject context,
                                 ScopeData scopeData)
 {
     return(AsyncHelper.FakePromise());
 }