ScriptLanguage
Assembly: ServiceStack.Common.dll
View Source
Declaration
public abstract class ScriptLanguage
Properties
Verbatim
View Source
Declaration
public static ScriptLanguage Verbatim { get; }
Name
View Source
Declaration
public abstract string Name { get; }
LineComment
View Source
Declaration
public virtual string LineComment { get; }
Methods
Parse(ScriptContext, ReadOnlyMemory<Char>)
View Source
Declaration
public List<PageFragment> Parse(ScriptContext context, ReadOnlyMemory<char> body)
Returns
System.Collections.Generic.List<ServiceStack.Script.PageFragment>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ReadOnlyMemory<System.Char> | body |
Parse(ScriptContext, ReadOnlyMemory<Char>, ReadOnlyMemory<Char>)
View Source
Declaration
public abstract List<PageFragment> Parse(ScriptContext context, ReadOnlyMemory<char> body, ReadOnlyMemory<char> modifiers)
Returns
System.Collections.Generic.List<ServiceStack.Script.PageFragment>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptContext | context |
ReadOnlyMemory<System.Char> | body |
ReadOnlyMemory<System.Char> | modifiers |
WritePageFragmentAsync(ScriptScopeContext, PageFragment, CancellationToken)
View Source
Declaration
public virtual Task<bool> WritePageFragmentAsync(ScriptScopeContext scope, PageFragment fragment, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
ServiceStack.Script.PageFragment | fragment |
System.Threading.CancellationToken | token |
WriteStatementAsync(ScriptScopeContext, JsStatement, CancellationToken)
View Source
Declaration
public virtual Task<bool> WriteStatementAsync(ScriptScopeContext scope, JsStatement statement, CancellationToken token)
Returns
System.Threading.Tasks.Task<System.Boolean>
Parameters
Type | Name |
---|---|
ServiceStack.Script.ScriptScopeContext | scope |
ServiceStack.Script.JsStatement | statement |
System.Threading.CancellationToken | token |
ParseVerbatimBlock(String, ReadOnlyMemory<Char>, ReadOnlyMemory<Char>)
View Source
Declaration
public virtual PageBlockFragment ParseVerbatimBlock(string blockName, ReadOnlyMemory<char> argument, ReadOnlyMemory<char> body)
Returns
ServiceStack.Script.PageBlockFragment
Parameters
Type | Name |
---|---|
System.String | blockName |
ReadOnlyMemory<System.Char> | argument |
ReadOnlyMemory<System.Char> | body |
UnwrapValue(Object)
View Source
Declaration
public static object UnwrapValue(object value)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Object | value |