/// <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(); }); }
/// <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(); }); }
/// <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()); }