Sign in

    ubugeeei/vapor_moon/src/compiler/common does not have a README file

    CompilerError

    pub(all) suberror CompilerError {
    InvalidSfc(String)
    InvalidTemplate(String)
    InvalidDirective(String)
    InvalidScriptSetup(String)
    InvalidScriptExtern(String)
    } derive(Eq, Show)

    BlockAttr

    pub(all) struct BlockAttr {
    name : String
    value : String?
    } derive(Eq, Show)

    BlockKind

    pub(all) enum BlockKind {
    Template
    ScriptSetup
    ScriptExtern
    Style
    } derive(Eq, Show)

    CompileOutput

    pub(all) struct CompileOutput {
    filename : String
    component_name : String
    extension : String
    client_code : String
    server_code : String
    css_output : String
    scope_id : String?
    island_components : Array[String]
    generics : Array[GenericParam]
    props_binding : String?
    props : Array[MacroField]
    emits_binding : String?
    emits : Array[MacroField]
    slots_binding : String?
    slots : Array[MacroField]
    } derive(Eq, Show)

    CompileOutput::snapshot

    fn CompileOutput::snapshot(self : CompileOutput) -> String

    ConditionalBranch

    pub(all) struct ConditionalBranch {
    condition : String?
    element : TemplateElement
    } derive(Eq, Show)

    ForBinding

    pub(all) struct ForBinding {
    value : String
    index : String?
    source : String
    } derive(Eq, Show)

    GenericParam

    pub(all) struct GenericParam {
    name : String
    declaration : String
    } derive(Eq, Show)

    IslandMode

    pub(all) enum IslandMode {
    None
    Load
    Idle
    Visible
    Media(String)
    Only
    ServerDefer
    } derive(Eq, Show)

    MacroField

    pub(all) struct MacroField {
    name : String
    signature : String?
    type_identifiers : Array[String]
    type_shape : MacroFieldTypeShape
    is_optional : Bool
    } derive(Eq, Show)

    MacroFieldTypeShape

    pub(all) enum MacroFieldTypeShape {
    UnitLike
    SingleValue
    TupleValues(Int)
    } derive(Eq, Show)

    MatchBranch

    pub(all) struct MatchBranch {
    pattern : String
    is_default : Bool
    element : TemplateElement
    } derive(Eq, Show)

    MatchNode

    pub(all) struct MatchNode {
    expr : String
    branches : Array[MatchBranch]
    } derive(Eq, Show)

    PropDefault

    pub(all) struct PropDefault {
    name : String
    expr : String
    } derive(Eq, Show)

    ScriptExternInfo

    pub(all) struct ScriptExternInfo {
    source : String
    transformed : String
    import_entries : Array[String]
    } derive(Eq, Show)

    ScriptSetupInfo

    pub(all) struct ScriptSetupInfo {
    source : String
    transformed : String
    import_entries : Array[String]
    template_refs : Array[ScriptSetupTemplateRef]
    props_declaration : String?
    props_binding : String?
    props : Array[MacroField]
    prop_defaults : Array[PropDefault]
    emits_binding : String?
    emits : Array[MacroField]
    slots_binding : String?
    slots : Array[MacroField]
    expose_binding : String?
    expose : Array[MacroField]
    } derive(Eq, Show)

    ScriptSetupTemplateRef

    pub(all) struct ScriptSetupTemplateRef {
    binding_name : String?
    arg_source : String
    ref_name : String?
    } derive(Eq, Show)

    SfcBlock

    pub(all) struct SfcBlock {
    kind : BlockKind
    attrs : Array[BlockAttr]
    content : String
    span : SourceSpan
    } derive(Eq, Show)

    SfcDocument

    pub(all) struct SfcDocument {
    filename : String
    extension : String
    template : String
    script : String?
    script_transformed : String?
    script_import_entries : Array[String]
    script_setup : String?
    script_setup_transformed : String?
    script_setup_import_entries : Array[String]
    template_refs : Array[ScriptSetupTemplateRef]
    generics : Array[GenericParam]
    props_declaration : String?
    props_binding : String?
    props : Array[MacroField]
    prop_defaults : Array[PropDefault]
    emits_binding : String?
    emits : Array[MacroField]
    slots_binding : String?
    slots : Array[MacroField]
    expose_binding : String?
    expose : Array[MacroField]
    styles : Array[StyleBlock]
    blocks : Array[SfcBlock]
    } derive(Eq, Show)

    SfcDocument::has_scoped_style

    fn SfcDocument::has_scoped_style(self : SfcDocument) -> Bool

    SourceSpan

    pub(all) struct SourceSpan {
    start : Int
    end : Int
    } derive(Eq, Show)

    StyleBlock

    pub(all) struct StyleBlock {
    attrs : Array[BlockAttr]
    content : String
    scoped : Bool
    span : SourceSpan
    } derive(Eq, Show)

    TemplateAttr

    pub(all) struct TemplateAttr {
    kind : TemplateAttrKind
    name : String
    value : String
    modifiers : Array[String]
    } derive(Eq, Show)

    TemplateAttrKind

    pub(all) enum TemplateAttrKind {
    Static
    Dynamic
    Event
    Boolean
    } derive(Eq, Show)

    TemplateElement

    pub(all) struct TemplateElement {
    tag : String
    attrs : Array[TemplateAttr]
    children : Array[TemplateNode]
    is_component : Bool
    is_self_closing : Bool
    if_expr : String?
    for_binding : ForBinding?
    island_mode : IslandMode
    show_expr : String?
    html_expr : String?
    model : TemplateModel?
    key_expr : String?
    ref_name : String?
    ref_static_name : String?
    ref_binding_name : String?
    once : Bool
    else_if_expr : String?
    is_else : Bool
    match_expr : String?
    case_pattern : String?
    is_case_default : Bool
    slot_name : String?
    } derive(Eq, Show)

    TemplateModel

    pub(all) struct TemplateModel {
    argument : String?
    expression : String
    modifiers : Array[String]
    } derive(Eq, Show)

    TemplateNode

    pub(all) enum TemplateNode {
    Element(TemplateElement)
    Text(String)
    Interpolation(String)
    Conditional(Array[ConditionalBranch])
    Match(MatchNode)
    } derive(Eq, Show)

    new_source_span

    fn new_source_span(start : Int, end_ : Int) -> SourceSpan

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io