embeddedsass

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InboundMessage_Syntax_name = map[int32]string{
		0: "SCSS",
		1: "INDENTED",
		2: "CSS",
	}
	InboundMessage_Syntax_value = map[string]int32{
		"SCSS":     0,
		"INDENTED": 1,
		"CSS":      2,
	}
)

Enum value maps for InboundMessage_Syntax.

View Source
var (
	InboundMessage_CompileRequest_OutputStyle_name = map[int32]string{
		0: "EXPANDED",
		1: "COMPRESSED",
		2: "NESTED",
		3: "COMPACT",
	}
	InboundMessage_CompileRequest_OutputStyle_value = map[string]int32{
		"EXPANDED":   0,
		"COMPRESSED": 1,
		"NESTED":     2,
		"COMPACT":    3,
	}
)

Enum value maps for InboundMessage_CompileRequest_OutputStyle.

View Source
var (
	OutboundMessage_LogEvent_Type_name = map[int32]string{
		0: "WARNING",
		1: "DEPRECATION_WARNING",
		2: "DEBUG",
	}
	OutboundMessage_LogEvent_Type_value = map[string]int32{
		"WARNING":             0,
		"DEPRECATION_WARNING": 1,
		"DEBUG":               2,
	}
)

Enum value maps for OutboundMessage_LogEvent_Type.

View Source
var (
	ProtocolError_ErrorType_name = map[int32]string{
		0: "PARSE",
		1: "PARAMS",
		2: "INTERNAL",
	}
	ProtocolError_ErrorType_value = map[string]int32{
		"PARSE":    0,
		"PARAMS":   1,
		"INTERNAL": 2,
	}
)

Enum value maps for ProtocolError_ErrorType.

View Source
var (
	Value_Singleton_name = map[int32]string{
		0: "TRUE",
		1: "FALSE",
		2: "NULL",
	}
	Value_Singleton_value = map[string]int32{
		"TRUE":  0,
		"FALSE": 1,
		"NULL":  2,
	}
)

Enum value maps for Value_Singleton.

View Source
var (
	Value_List_Separator_name = map[int32]string{
		0: "COMMA",
		1: "SPACE",
		2: "SLASH",
		3: "UNDECIDED",
	}
	Value_List_Separator_value = map[string]int32{
		"COMMA":     0,
		"SPACE":     1,
		"SLASH":     2,
		"UNDECIDED": 3,
	}
)

Enum value maps for Value_List_Separator.

View Source
var File_embedded_sass_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type InboundMessage

type InboundMessage struct {

	// The wrapped message. Mandatory.
	//
	// Types that are assignable to Message:
	//	*InboundMessage_CompileRequest_
	//	*InboundMessage_CanonicalizeResponse_
	//	*InboundMessage_ImportResponse_
	//	*InboundMessage_FileImportResponse_
	//	*InboundMessage_FunctionCallResponse_
	Message isInboundMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

The wrapper type for all messages sent from the host to the compiler. This provides a `oneof` that makes it possible to determine the type of each inbound message.

func (*InboundMessage) Descriptor deprecated

func (*InboundMessage) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage.ProtoReflect.Descriptor instead.

func (*InboundMessage) GetCanonicalizeResponse

func (x *InboundMessage) GetCanonicalizeResponse() *InboundMessage_CanonicalizeResponse

func (*InboundMessage) GetCompileRequest

func (x *InboundMessage) GetCompileRequest() *InboundMessage_CompileRequest

func (*InboundMessage) GetFileImportResponse

func (x *InboundMessage) GetFileImportResponse() *InboundMessage_FileImportResponse

func (*InboundMessage) GetFunctionCallResponse

func (x *InboundMessage) GetFunctionCallResponse() *InboundMessage_FunctionCallResponse

func (*InboundMessage) GetImportResponse

func (x *InboundMessage) GetImportResponse() *InboundMessage_ImportResponse

func (*InboundMessage) GetMessage

func (m *InboundMessage) GetMessage() isInboundMessage_Message

func (*InboundMessage) ProtoMessage

func (*InboundMessage) ProtoMessage()

func (*InboundMessage) ProtoReflect

func (x *InboundMessage) ProtoReflect() protoreflect.Message

func (*InboundMessage) Reset

func (x *InboundMessage) Reset()

func (*InboundMessage) String

func (x *InboundMessage) String() string

type InboundMessage_CanonicalizeResponse

type InboundMessage_CanonicalizeResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of canonicalization. Optional. If this is `null`, it indicates
	// that the importer either did not recognize the URL, or could not find a
	// stylesheet at the location it referred to.
	//
	// Types that are assignable to Result:
	//	*InboundMessage_CanonicalizeResponse_Url
	//	*InboundMessage_CanonicalizeResponse_Error
	Result isInboundMessage_CanonicalizeResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of canonicalizing an imported URL.

func (*InboundMessage_CanonicalizeResponse) Descriptor deprecated

func (*InboundMessage_CanonicalizeResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CanonicalizeResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_CanonicalizeResponse) GetError

func (*InboundMessage_CanonicalizeResponse) GetId

func (*InboundMessage_CanonicalizeResponse) GetResult

func (m *InboundMessage_CanonicalizeResponse) GetResult() isInboundMessage_CanonicalizeResponse_Result

func (*InboundMessage_CanonicalizeResponse) GetUrl

func (*InboundMessage_CanonicalizeResponse) ProtoMessage

func (*InboundMessage_CanonicalizeResponse) ProtoMessage()

func (*InboundMessage_CanonicalizeResponse) ProtoReflect

func (*InboundMessage_CanonicalizeResponse) Reset

func (*InboundMessage_CanonicalizeResponse) String

type InboundMessage_CanonicalizeResponse_

type InboundMessage_CanonicalizeResponse_ struct {
	CanonicalizeResponse *InboundMessage_CanonicalizeResponse `protobuf:"bytes,3,opt,name=canonicalizeResponse,proto3,oneof"`
}

type InboundMessage_CanonicalizeResponse_Error

type InboundMessage_CanonicalizeResponse_Error struct {
	// An error message explaining why canonicalization failed.
	//
	// This indicates that a stylesheet was found, but a canonical URL for it
	// could not be determined. If no stylesheet was found, `result` should be
	// `null` instead.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_CanonicalizeResponse_Url

type InboundMessage_CanonicalizeResponse_Url struct {
	// The successfully canonicalized URL. This must be an absolute URL,
	// including scheme.
	Url string `protobuf:"bytes,2,opt,name=url,proto3,oneof"`
}

type InboundMessage_CompileRequest

type InboundMessage_CompileRequest struct {

	// This compilation's request id. This is included in messages sent from the
	// compiler to the host. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The input stylesheet to parse. Mandatory.
	//
	// Types that are assignable to Input:
	//	*InboundMessage_CompileRequest_String_
	//	*InboundMessage_CompileRequest_Path
	Input isInboundMessage_CompileRequest_Input `protobuf_oneof:"input"`
	// How to format the CSS output.
	Style InboundMessage_CompileRequest_OutputStyle `` /* 134-byte string literal not displayed */
	// Whether to generate a source map. Note that this will *not* add a source
	// map comment to the stylesheet; that's up to the host or its users.
	SourceMap bool `protobuf:"varint,5,opt,name=source_map,json=sourceMap,proto3" json:"source_map,omitempty"`
	// Importers (including load paths on the filesystem) to use when resolving
	// imports that can't be resolved relative to the file that contains it. Each
	// importer is checked in order until one recognizes the imported URL.
	Importers []*InboundMessage_CompileRequest_Importer `protobuf:"bytes,6,rep,name=importers,proto3" json:"importers,omitempty"`
	// Signatures for custom global functions whose behavior is defined by the
	// host. These must be valid Sass function signatures that could appear in
	// after `@function` in a Sass stylesheet, such as
	// `mix($color1, $color2, $weight: 50%)`.
	//
	// Compilers must ensure that pure-Sass functions take precedence over
	// custom global functions. They must also reject any custom function names
	// that conflict with function names built into the Sass language.
	GlobalFunctions []string `protobuf:"bytes,7,rep,name=global_functions,json=globalFunctions,proto3" json:"global_functions,omitempty"`
	// contains filtered or unexported fields
}

A request that compiles an entrypoint to CSS.

func (*InboundMessage_CompileRequest) Descriptor deprecated

func (*InboundMessage_CompileRequest) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest.ProtoReflect.Descriptor instead.

func (*InboundMessage_CompileRequest) GetGlobalFunctions

func (x *InboundMessage_CompileRequest) GetGlobalFunctions() []string

func (*InboundMessage_CompileRequest) GetId

func (*InboundMessage_CompileRequest) GetImporters

func (*InboundMessage_CompileRequest) GetInput

func (m *InboundMessage_CompileRequest) GetInput() isInboundMessage_CompileRequest_Input

func (*InboundMessage_CompileRequest) GetPath

func (*InboundMessage_CompileRequest) GetSourceMap

func (x *InboundMessage_CompileRequest) GetSourceMap() bool

func (*InboundMessage_CompileRequest) GetString_

func (*InboundMessage_CompileRequest) GetStyle

func (*InboundMessage_CompileRequest) ProtoMessage

func (*InboundMessage_CompileRequest) ProtoMessage()

func (*InboundMessage_CompileRequest) ProtoReflect

func (*InboundMessage_CompileRequest) Reset

func (x *InboundMessage_CompileRequest) Reset()

func (*InboundMessage_CompileRequest) String

type InboundMessage_CompileRequest_

type InboundMessage_CompileRequest_ struct {
	CompileRequest *InboundMessage_CompileRequest `protobuf:"bytes,2,opt,name=compileRequest,proto3,oneof"`
}

type InboundMessage_CompileRequest_Importer

type InboundMessage_CompileRequest_Importer struct {

	// The possible types of importer. Mandatory.
	//
	// Types that are assignable to Importer:
	//	*InboundMessage_CompileRequest_Importer_Path
	//	*InboundMessage_CompileRequest_Importer_ImporterId
	//	*InboundMessage_CompileRequest_Importer_FileImporterId
	Importer isInboundMessage_CompileRequest_Importer_Importer `protobuf_oneof:"importer"`
	// contains filtered or unexported fields
}

A wrapper message that represents either a user-defined importer or a load path on disk. This must be a wrapper because `oneof` types can't be `repeated`.

func (*InboundMessage_CompileRequest_Importer) Descriptor deprecated

func (*InboundMessage_CompileRequest_Importer) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest_Importer.ProtoReflect.Descriptor instead.

func (*InboundMessage_CompileRequest_Importer) GetFileImporterId

func (x *InboundMessage_CompileRequest_Importer) GetFileImporterId() uint32

func (*InboundMessage_CompileRequest_Importer) GetImporter

func (m *InboundMessage_CompileRequest_Importer) GetImporter() isInboundMessage_CompileRequest_Importer_Importer

func (*InboundMessage_CompileRequest_Importer) GetImporterId

func (*InboundMessage_CompileRequest_Importer) GetPath

func (*InboundMessage_CompileRequest_Importer) ProtoMessage

func (*InboundMessage_CompileRequest_Importer) ProtoReflect

func (*InboundMessage_CompileRequest_Importer) Reset

func (*InboundMessage_CompileRequest_Importer) String

type InboundMessage_CompileRequest_Importer_FileImporterId

type InboundMessage_CompileRequest_Importer_FileImporterId struct {
	// A unique ID for a special kind of user-defined importer that tells
	// the compiler where to look for files on the physical filesystem, but
	// leaves the details of resolving partials and extensions and loading
	// the file from disk up to the compiler itself.
	//
	// This ID will be included in outbound `FileImportRequest` messages to
	// indicate which importer is being called. The host is responsible for
	// generating this ID and ensuring that it's unique across all importers
	// registered for this compilation.
	FileImporterId uint32 `protobuf:"varint,3,opt,name=file_importer_id,json=fileImporterId,proto3,oneof"`
}

type InboundMessage_CompileRequest_Importer_ImporterId

type InboundMessage_CompileRequest_Importer_ImporterId struct {
	// A unique ID for a user-defined importer. This ID will be included in
	// outbound `CanonicalizeRequest` and `ImportRequest` messages to
	// indicate which importer is being called. The host is responsible for
	// generating this ID and ensuring that it's unique across all
	// importers registered for this compilation.
	ImporterId uint32 `protobuf:"varint,2,opt,name=importer_id,json=importerId,proto3,oneof"`
}

type InboundMessage_CompileRequest_Importer_Path

type InboundMessage_CompileRequest_Importer_Path struct {
	// A built-in importer that loads Sass files within the given directory
	// on disk.
	Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}

type InboundMessage_CompileRequest_OutputStyle

type InboundMessage_CompileRequest_OutputStyle int32

Possible ways to format the CSS output. The compiler is not required to support all possible options; if the host requests an unsupported style, the compiler should choose the closest supported style.

const (
	// Each selector and declaration is written on its own line.
	InboundMessage_CompileRequest_EXPANDED InboundMessage_CompileRequest_OutputStyle = 0
	// The entire stylesheet is written on a single line, with as few
	// characters as possible.
	InboundMessage_CompileRequest_COMPRESSED InboundMessage_CompileRequest_OutputStyle = 1
	// CSS rules and declarations are indented to match the nesting of the
	// Sass source.
	InboundMessage_CompileRequest_NESTED InboundMessage_CompileRequest_OutputStyle = 2
	// Each CSS rule is written on its own single line, along with all its
	// declarations.
	InboundMessage_CompileRequest_COMPACT InboundMessage_CompileRequest_OutputStyle = 3
)

func (InboundMessage_CompileRequest_OutputStyle) Descriptor

func (InboundMessage_CompileRequest_OutputStyle) Enum

func (InboundMessage_CompileRequest_OutputStyle) EnumDescriptor deprecated

func (InboundMessage_CompileRequest_OutputStyle) EnumDescriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest_OutputStyle.Descriptor instead.

func (InboundMessage_CompileRequest_OutputStyle) Number

func (InboundMessage_CompileRequest_OutputStyle) String

func (InboundMessage_CompileRequest_OutputStyle) Type

type InboundMessage_CompileRequest_Path

type InboundMessage_CompileRequest_Path struct {
	// A stylesheet loaded from the given path on the filesystem.
	Path string `protobuf:"bytes,3,opt,name=path,proto3,oneof"`
}

type InboundMessage_CompileRequest_StringInput

type InboundMessage_CompileRequest_StringInput struct {

	// The contents of the stylesheet.
	Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// The location from which `source` was loaded. If this is empty, it
	// indicates that the URL is unknown.
	//
	// This must be a URL recognized by `importer`, if it's passed.
	Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	// The syntax to use to parse `source`.
	Syntax InboundMessage_Syntax `protobuf:"varint,3,opt,name=syntax,proto3,enum=sass.embedded_protocol.InboundMessage_Syntax" json:"syntax,omitempty"`
	// The importer to use to resolve imports relative to `url`.
	Importer *InboundMessage_CompileRequest_Importer `protobuf:"bytes,4,opt,name=importer,proto3" json:"importer,omitempty"`
	// contains filtered or unexported fields
}

An input stylesheet provided as plain text, rather than loaded from the filesystem.

func (*InboundMessage_CompileRequest_StringInput) Descriptor deprecated

func (*InboundMessage_CompileRequest_StringInput) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_CompileRequest_StringInput.ProtoReflect.Descriptor instead.

func (*InboundMessage_CompileRequest_StringInput) GetImporter

func (*InboundMessage_CompileRequest_StringInput) GetSource

func (*InboundMessage_CompileRequest_StringInput) GetSyntax

func (*InboundMessage_CompileRequest_StringInput) GetUrl

func (*InboundMessage_CompileRequest_StringInput) ProtoMessage

func (*InboundMessage_CompileRequest_StringInput) ProtoReflect

func (*InboundMessage_CompileRequest_StringInput) Reset

func (*InboundMessage_CompileRequest_StringInput) String

type InboundMessage_CompileRequest_String_

type InboundMessage_CompileRequest_String_ struct {
	// A stylesheet loaded from its contents.
	String_ *InboundMessage_CompileRequest_StringInput `protobuf:"bytes,2,opt,name=string,proto3,oneof"`
}

type InboundMessage_FileImportResponse

type InboundMessage_FileImportResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of loading the URL. Mandatory.
	//
	// Types that are assignable to Result:
	//	*InboundMessage_FileImportResponse_FileUrl
	//	*InboundMessage_FileImportResponse_Error
	Result isInboundMessage_FileImportResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of redirecting a URL to the filesystem.

func (*InboundMessage_FileImportResponse) Descriptor deprecated

func (*InboundMessage_FileImportResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_FileImportResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_FileImportResponse) GetError

func (*InboundMessage_FileImportResponse) GetFileUrl

func (x *InboundMessage_FileImportResponse) GetFileUrl() string

func (*InboundMessage_FileImportResponse) GetId

func (*InboundMessage_FileImportResponse) GetResult

func (m *InboundMessage_FileImportResponse) GetResult() isInboundMessage_FileImportResponse_Result

func (*InboundMessage_FileImportResponse) ProtoMessage

func (*InboundMessage_FileImportResponse) ProtoMessage()

func (*InboundMessage_FileImportResponse) ProtoReflect

func (*InboundMessage_FileImportResponse) Reset

func (*InboundMessage_FileImportResponse) String

type InboundMessage_FileImportResponse_

type InboundMessage_FileImportResponse_ struct {
	FileImportResponse *InboundMessage_FileImportResponse `protobuf:"bytes,5,opt,name=fileImportResponse,proto3,oneof"`
}

type InboundMessage_FileImportResponse_Error

type InboundMessage_FileImportResponse_Error struct {
	// An error message explaining why the URL could not be loaded.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_FileImportResponse_FileUrl

type InboundMessage_FileImportResponse_FileUrl struct {
	// The absolute `file:` URL to look for the file on the physical
	// filesystem.
	//
	// The host must ensure that this URL follows the format for an absolute
	// `file:` URL on the current operating system without a hostname, and the
	// compiler must verify this to the best of its ability. See
	// https://en.wikipedia.org/wiki/File_URI_scheme for details on the
	// format.
	//
	// The compiler must handle turning this into a canonical URL by resolving
	// it for partials, file extensions, and index files. The compiler must
	// then loading the contents of the resulting canonical URL from the
	// filesystem.
	FileUrl string `protobuf:"bytes,2,opt,name=file_url,json=fileUrl,proto3,oneof"`
}

type InboundMessage_FunctionCallResponse

type InboundMessage_FunctionCallResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of calling the function. Mandatory.
	//
	// Types that are assignable to Result:
	//	*InboundMessage_FunctionCallResponse_Success
	//	*InboundMessage_FunctionCallResponse_Error
	Result isInboundMessage_FunctionCallResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of calling a custom Sass function defined in the host.

func (*InboundMessage_FunctionCallResponse) Descriptor deprecated

func (*InboundMessage_FunctionCallResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_FunctionCallResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_FunctionCallResponse) GetError

func (*InboundMessage_FunctionCallResponse) GetId

func (*InboundMessage_FunctionCallResponse) GetResult

func (m *InboundMessage_FunctionCallResponse) GetResult() isInboundMessage_FunctionCallResponse_Result

func (*InboundMessage_FunctionCallResponse) GetSuccess

func (x *InboundMessage_FunctionCallResponse) GetSuccess() *Value

func (*InboundMessage_FunctionCallResponse) ProtoMessage

func (*InboundMessage_FunctionCallResponse) ProtoMessage()

func (*InboundMessage_FunctionCallResponse) ProtoReflect

func (*InboundMessage_FunctionCallResponse) Reset

func (*InboundMessage_FunctionCallResponse) String

type InboundMessage_FunctionCallResponse_

type InboundMessage_FunctionCallResponse_ struct {
	FunctionCallResponse *InboundMessage_FunctionCallResponse `protobuf:"bytes,6,opt,name=functionCallResponse,proto3,oneof"`
}

type InboundMessage_FunctionCallResponse_Error

type InboundMessage_FunctionCallResponse_Error struct {
	// An error message explaining why the function call failed.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_FunctionCallResponse_Success

type InboundMessage_FunctionCallResponse_Success struct {
	// The return value of a successful function call.
	Success *Value `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type InboundMessage_ImportResponse

type InboundMessage_ImportResponse struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The result of loading the URL. Mandatory.
	//
	// Types that are assignable to Result:
	//	*InboundMessage_ImportResponse_Success
	//	*InboundMessage_ImportResponse_Error
	Result isInboundMessage_ImportResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response indicating the result of importing a canonical URL.

func (*InboundMessage_ImportResponse) Descriptor deprecated

func (*InboundMessage_ImportResponse) Descriptor() ([]byte, []int)

Deprecated: Use InboundMessage_ImportResponse.ProtoReflect.Descriptor instead.

func (*InboundMessage_ImportResponse) GetError

func (x *InboundMessage_ImportResponse) GetError() string

func (*InboundMessage_ImportResponse) GetId

func (*InboundMessage_ImportResponse) GetResult

func (m *InboundMessage_ImportResponse) GetResult() isInboundMessage_ImportResponse_Result

func (*InboundMessage_ImportResponse) GetSuccess

func (*InboundMessage_ImportResponse) ProtoMessage

func (*InboundMessage_ImportResponse) ProtoMessage()

func (*InboundMessage_ImportResponse) ProtoReflect

func (*InboundMessage_ImportResponse) Reset

func (x *InboundMessage_ImportResponse) Reset()

func (*InboundMessage_ImportResponse) String

type InboundMessage_ImportResponse_

type InboundMessage_ImportResponse_ struct {
	ImportResponse *InboundMessage_ImportResponse `protobuf:"bytes,4,opt,name=importResponse,proto3,oneof"`
}

type InboundMessage_ImportResponse_Error

type InboundMessage_ImportResponse_Error struct {
	// An error message explaining why the URL could not be loaded.
	Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
}

type InboundMessage_ImportResponse_ImportSuccess

type InboundMessage_ImportResponse_ImportSuccess struct {

	// The text of the stylesheet. Mandatory.
	Contents string `protobuf:"bytes,1,opt,name=contents,proto3" json:"contents,omitempty"`
	// The syntax of `contents`. Mandatory.
	Syntax InboundMessage_Syntax `protobuf:"varint,2,opt,name=syntax,proto3,enum=sass.embedded_protocol.InboundMessage_Syntax" json:"syntax,omitempty"`
	// An absolute, browser-accessible URL indicating the resolved location of
	// the imported stylesheet. Optional.
	//
	// This should be a `file:` URL if one is available, but an `http:` URL is
	// acceptable as well. If no URL is supplied, a `data:` URL is generated
	// automatically from `contents`.
	//
	// If this is provided, it must be an absolute URL, including scheme.
	SourceMapUrl string `protobuf:"bytes,3,opt,name=sourceMapUrl,proto3" json:"sourceMapUrl,omitempty"`
	// contains filtered or unexported fields
}

The stylesheet's contents were loaded successfully.

func (*InboundMessage_ImportResponse_ImportSuccess) Descriptor deprecated

Deprecated: Use InboundMessage_ImportResponse_ImportSuccess.ProtoReflect.Descriptor instead.

func (*InboundMessage_ImportResponse_ImportSuccess) GetContents

func (*InboundMessage_ImportResponse_ImportSuccess) GetSourceMapUrl

func (*InboundMessage_ImportResponse_ImportSuccess) GetSyntax

func (*InboundMessage_ImportResponse_ImportSuccess) ProtoMessage

func (*InboundMessage_ImportResponse_ImportSuccess) ProtoReflect

func (*InboundMessage_ImportResponse_ImportSuccess) Reset

func (*InboundMessage_ImportResponse_ImportSuccess) String

type InboundMessage_ImportResponse_Success

type InboundMessage_ImportResponse_Success struct {
	// The contents of the loaded stylesheet.
	Success *InboundMessage_ImportResponse_ImportSuccess `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type InboundMessage_Syntax

type InboundMessage_Syntax int32

Possible syntaxes for a Sass stylesheet.

const (
	// The CSS-superset `.scss` syntax.
	InboundMessage_SCSS InboundMessage_Syntax = 0
	// The indented `.sass` syntax.
	InboundMessage_INDENTED InboundMessage_Syntax = 1
	// Plain CSS syntax that doesn't support any special Sass features.
	InboundMessage_CSS InboundMessage_Syntax = 2
)

func (InboundMessage_Syntax) Descriptor

func (InboundMessage_Syntax) Enum

func (InboundMessage_Syntax) EnumDescriptor deprecated

func (InboundMessage_Syntax) EnumDescriptor() ([]byte, []int)

Deprecated: Use InboundMessage_Syntax.Descriptor instead.

func (InboundMessage_Syntax) Number

func (InboundMessage_Syntax) String

func (x InboundMessage_Syntax) String() string

func (InboundMessage_Syntax) Type

type OutboundMessage

type OutboundMessage struct {

	// The wrapped message. Mandatory.
	//
	// Types that are assignable to Message:
	//	*OutboundMessage_Error
	//	*OutboundMessage_CompileResponse_
	//	*OutboundMessage_LogEvent_
	//	*OutboundMessage_CanonicalizeRequest_
	//	*OutboundMessage_ImportRequest_
	//	*OutboundMessage_FileImportRequest_
	//	*OutboundMessage_FunctionCallRequest_
	Message isOutboundMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

The wrapper type for all messages sent from the compiler to the host. This provides a `oneof` that makes it possible to determine the type of each outbound message.

func (*OutboundMessage) Descriptor deprecated

func (*OutboundMessage) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage.ProtoReflect.Descriptor instead.

func (*OutboundMessage) GetCanonicalizeRequest

func (x *OutboundMessage) GetCanonicalizeRequest() *OutboundMessage_CanonicalizeRequest

func (*OutboundMessage) GetCompileResponse

func (x *OutboundMessage) GetCompileResponse() *OutboundMessage_CompileResponse

func (*OutboundMessage) GetError

func (x *OutboundMessage) GetError() *ProtocolError

func (*OutboundMessage) GetFileImportRequest

func (x *OutboundMessage) GetFileImportRequest() *OutboundMessage_FileImportRequest

func (*OutboundMessage) GetFunctionCallRequest

func (x *OutboundMessage) GetFunctionCallRequest() *OutboundMessage_FunctionCallRequest

func (*OutboundMessage) GetImportRequest

func (x *OutboundMessage) GetImportRequest() *OutboundMessage_ImportRequest

func (*OutboundMessage) GetLogEvent

func (x *OutboundMessage) GetLogEvent() *OutboundMessage_LogEvent

func (*OutboundMessage) GetMessage

func (m *OutboundMessage) GetMessage() isOutboundMessage_Message

func (*OutboundMessage) ProtoMessage

func (*OutboundMessage) ProtoMessage()

func (*OutboundMessage) ProtoReflect

func (x *OutboundMessage) ProtoReflect() protoreflect.Message

func (*OutboundMessage) Reset

func (x *OutboundMessage) Reset()

func (*OutboundMessage) String

func (x *OutboundMessage) String() string

type OutboundMessage_CanonicalizeRequest

type OutboundMessage_CanonicalizeRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// The unique ID of the importer being invoked. This must match an importer
	// ID passed to this compilation in `CompileRequest.importers` or
	// `CompileRequest.input.string.importer`. Mandatory.
	ImporterId uint32 `protobuf:"varint,3,opt,name=importer_id,json=importerId,proto3" json:"importer_id,omitempty"`
	// The URL of the import to be canonicalized. This may be either absolute or
	// relative.
	//
	// When loading a URL, the host must first try resolving that URL relative
	// to the canonical URL of the current file, and canonicalizing the result
	// using the importer that loaded the current file. If this returns `null`,
	// the host must then try canonicalizing the original URL with each importer
	// in order until one returns something other than `null`. That is the
	// result of the import.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

A request for a custom importer to convert an imported URL to its canonical format.

If the URL is not recognized by this importer, or if no stylesheet is found at that URL, `CanonicalizeResponse.result` must be `null`.

Canonical URLs must be absolute, including a scheme. If the import is referring to a Sass file on disk, the importer is encouraged to respond with a `CanonicalizeResponse.result.file`, in which case the host will handle the logic of resolving partials, file extensions, and index files.

If Sass has already loaded a stylesheet with the returned canonical URL, it re-uses the existing parse tree. This means that importers must ensure that the same canonical URL always refers to the same stylesheet, *even across different importers*. Importers must also ensure that any canonicalized URLs they return can be passed back to `CanonicalizeRequest` and will be returned unchanged.

If this importer's URL format supports file extensions, it should canonicalize them the same way as the default filesystem importer:

  • The importer should look for stylesheets by adding the prefix `_` to the URL's basename, and by adding the extensions `.sass` and `.scss` if the URL doesn't already have one of those extensions. For example, if the URL was `foo/bar/baz`, the importer would look for:

  • `foo/bar/baz.sass`

  • `foo/bar/baz.scss`

  • `foo/bar/_baz.sass`

  • `foo/bar/_baz.scss`

    If the URL was foo/bar/baz.scss, the importer would just look for:

  • `foo/bar/baz.scss`

  • `foo/bar/_baz.scss`

    If the importer finds a stylesheet at more than one of these URLs, it should respond with a `CanonicalizeResponse.result.error` indicating that the import is ambiguous. Note that if the extension is explicitly specified, a stylesheet with another extension may exist without error.

  • If none of the possible paths is valid, the importer should perform the same resolution on the URL followed by `/index`. In the example above, it would look for:

  • `foo/bar/baz/_index.sass`

  • `foo/bar/baz/index.sass`

  • `foo/bar/baz/_index.scss`

  • `foo/bar/baz/index.scss`

    As above, if the importer finds a stylesheet at more than one of these URLs, it should respond with a `CanonicalizeResponse.result.error` indicating that the import is ambiguous.

func (*OutboundMessage_CanonicalizeRequest) Descriptor deprecated

func (*OutboundMessage_CanonicalizeRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_CanonicalizeRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CanonicalizeRequest) GetCompilationId

func (x *OutboundMessage_CanonicalizeRequest) GetCompilationId() uint32

func (*OutboundMessage_CanonicalizeRequest) GetId

func (*OutboundMessage_CanonicalizeRequest) GetImporterId

func (x *OutboundMessage_CanonicalizeRequest) GetImporterId() uint32

func (*OutboundMessage_CanonicalizeRequest) GetUrl

func (*OutboundMessage_CanonicalizeRequest) ProtoMessage

func (*OutboundMessage_CanonicalizeRequest) ProtoMessage()

func (*OutboundMessage_CanonicalizeRequest) ProtoReflect

func (*OutboundMessage_CanonicalizeRequest) Reset

func (*OutboundMessage_CanonicalizeRequest) String

type OutboundMessage_CanonicalizeRequest_

type OutboundMessage_CanonicalizeRequest_ struct {
	CanonicalizeRequest *OutboundMessage_CanonicalizeRequest `protobuf:"bytes,4,opt,name=canonicalizeRequest,proto3,oneof"`
}

type OutboundMessage_CompileResponse

type OutboundMessage_CompileResponse struct {

	// The compilation's request id. Mandatory.
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The success or failure result of the compilation. Mandatory.
	//
	// Types that are assignable to Result:
	//	*OutboundMessage_CompileResponse_Success
	//	*OutboundMessage_CompileResponse_Failure
	Result isOutboundMessage_CompileResponse_Result `protobuf_oneof:"result"`
	// contains filtered or unexported fields
}

A response that contains the result of a compilation.

func (*OutboundMessage_CompileResponse) Descriptor deprecated

func (*OutboundMessage_CompileResponse) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_CompileResponse.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CompileResponse) GetFailure

func (*OutboundMessage_CompileResponse) GetId

func (*OutboundMessage_CompileResponse) GetResult

func (m *OutboundMessage_CompileResponse) GetResult() isOutboundMessage_CompileResponse_Result

func (*OutboundMessage_CompileResponse) GetSuccess

func (*OutboundMessage_CompileResponse) ProtoMessage

func (*OutboundMessage_CompileResponse) ProtoMessage()

func (*OutboundMessage_CompileResponse) ProtoReflect

func (*OutboundMessage_CompileResponse) Reset

func (*OutboundMessage_CompileResponse) String

type OutboundMessage_CompileResponse_

type OutboundMessage_CompileResponse_ struct {
	CompileResponse *OutboundMessage_CompileResponse `protobuf:"bytes,2,opt,name=compileResponse,proto3,oneof"`
}

type OutboundMessage_CompileResponse_CompileFailure

type OutboundMessage_CompileResponse_CompileFailure struct {

	// A message describing the reason for the failure.
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// The span associated with the failure. Optional.
	Span *SourceSpan `protobuf:"bytes,2,opt,name=span,proto3" json:"span,omitempty"`
	// The stack trace associated with the failure.
	//
	// The empty string indicates that no stack trace is available. Otherwise,
	// the format of this stack trace is not specified and is likely to be
	// inconsistent between implementations.
	StackTrace string `protobuf:"bytes,3,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// contains filtered or unexported fields
}

A message indicating that the Sass file could not be successfully compiled to CSS.

func (*OutboundMessage_CompileResponse_CompileFailure) Descriptor deprecated

Deprecated: Use OutboundMessage_CompileResponse_CompileFailure.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CompileResponse_CompileFailure) GetMessage

func (*OutboundMessage_CompileResponse_CompileFailure) GetSpan

func (*OutboundMessage_CompileResponse_CompileFailure) GetStackTrace

func (*OutboundMessage_CompileResponse_CompileFailure) ProtoMessage

func (*OutboundMessage_CompileResponse_CompileFailure) ProtoReflect

func (*OutboundMessage_CompileResponse_CompileFailure) Reset

func (*OutboundMessage_CompileResponse_CompileFailure) String

type OutboundMessage_CompileResponse_CompileSuccess

type OutboundMessage_CompileResponse_CompileSuccess struct {

	// The compiled CSS.
	Css string `protobuf:"bytes,1,opt,name=css,proto3" json:"css,omitempty"`
	// The JSON-encoded source map, or the empty string if
	// `CompileRequest.source_map` was `false`.
	//
	// The compiler must not add a `"file"` key to this source map. It's the
	// host's (or the host's user's) responsibility to determine how the
	// generated CSS can be reached from the source map.
	SourceMap string `protobuf:"bytes,2,opt,name=source_map,json=sourceMap,proto3" json:"source_map,omitempty"`
	// contains filtered or unexported fields
}

A message indicating that the Sass file was successfully compiled to CSS.

func (*OutboundMessage_CompileResponse_CompileSuccess) Descriptor deprecated

Deprecated: Use OutboundMessage_CompileResponse_CompileSuccess.ProtoReflect.Descriptor instead.

func (*OutboundMessage_CompileResponse_CompileSuccess) GetCss

func (*OutboundMessage_CompileResponse_CompileSuccess) GetSourceMap

func (*OutboundMessage_CompileResponse_CompileSuccess) ProtoMessage

func (*OutboundMessage_CompileResponse_CompileSuccess) ProtoReflect

func (*OutboundMessage_CompileResponse_CompileSuccess) Reset

func (*OutboundMessage_CompileResponse_CompileSuccess) String

type OutboundMessage_CompileResponse_Failure

type OutboundMessage_CompileResponse_Failure struct {
	// The result of a failed compilation.
	Failure *OutboundMessage_CompileResponse_CompileFailure `protobuf:"bytes,3,opt,name=failure,proto3,oneof"`
}

type OutboundMessage_CompileResponse_Success

type OutboundMessage_CompileResponse_Success struct {
	// The result of a successful compilation.
	Success *OutboundMessage_CompileResponse_CompileSuccess `protobuf:"bytes,2,opt,name=success,proto3,oneof"`
}

type OutboundMessage_Error

type OutboundMessage_Error struct {
	Error *ProtocolError `protobuf:"bytes,1,opt,name=error,proto3,oneof"`
}

type OutboundMessage_FileImportRequest

type OutboundMessage_FileImportRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// The unique ID of the importer being invoked. This must match an
	// `Importer.file_importer_id` passed to this compilation in
	// `CompileRequest.importers` or `CompileRequest.input.string.importer`.
	// Mandatory.
	ImporterId uint32 `protobuf:"varint,3,opt,name=importer_id,json=importerId,proto3" json:"importer_id,omitempty"`
	// The canonical URL of the import. This is guaranteed to be a URL returned
	// by a `CanonicalizeRequest` to this importer.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

A request for a custom filesystem importer to load the contents of a stylesheet.

func (*OutboundMessage_FileImportRequest) Descriptor deprecated

func (*OutboundMessage_FileImportRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_FileImportRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_FileImportRequest) GetCompilationId

func (x *OutboundMessage_FileImportRequest) GetCompilationId() uint32

func (*OutboundMessage_FileImportRequest) GetId

func (*OutboundMessage_FileImportRequest) GetImporterId

func (x *OutboundMessage_FileImportRequest) GetImporterId() uint32

func (*OutboundMessage_FileImportRequest) GetUrl

func (*OutboundMessage_FileImportRequest) ProtoMessage

func (*OutboundMessage_FileImportRequest) ProtoMessage()

func (*OutboundMessage_FileImportRequest) ProtoReflect

func (*OutboundMessage_FileImportRequest) Reset

func (*OutboundMessage_FileImportRequest) String

type OutboundMessage_FileImportRequest_

type OutboundMessage_FileImportRequest_ struct {
	FileImportRequest *OutboundMessage_FileImportRequest `protobuf:"bytes,6,opt,name=fileImportRequest,proto3,oneof"`
}

type OutboundMessage_FunctionCallRequest

type OutboundMessage_FunctionCallRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// An identifier that indicates which function to invoke. Mandatory.
	//
	// Types that are assignable to Identifier:
	//	*OutboundMessage_FunctionCallRequest_Name
	//	*OutboundMessage_FunctionCallRequest_FunctionId
	Identifier isOutboundMessage_FunctionCallRequest_Identifier `protobuf_oneof:"identifier"`
	// The arguments passed to the function, in the order they appear in the
	// function signature passed to `CompileRequest.global_functions`. Mandatory.
	//
	// The compiler must ensure that a valid number of arguments are passed for
	// the given signature, that default argument values are instantiated
	// appropriately, and that variable argument lists (`$args...`) are passed
	// as `Value.ArgumentList`s.
	Arguments []*Value `protobuf:"bytes,5,rep,name=arguments,proto3" json:"arguments,omitempty"`
	// contains filtered or unexported fields
}

A request to invoke a custom Sass function and return its result.

func (*OutboundMessage_FunctionCallRequest) Descriptor deprecated

func (*OutboundMessage_FunctionCallRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_FunctionCallRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_FunctionCallRequest) GetArguments

func (x *OutboundMessage_FunctionCallRequest) GetArguments() []*Value

func (*OutboundMessage_FunctionCallRequest) GetCompilationId

func (x *OutboundMessage_FunctionCallRequest) GetCompilationId() uint32

func (*OutboundMessage_FunctionCallRequest) GetFunctionId

func (x *OutboundMessage_FunctionCallRequest) GetFunctionId() uint32

func (*OutboundMessage_FunctionCallRequest) GetId

func (*OutboundMessage_FunctionCallRequest) GetIdentifier

func (m *OutboundMessage_FunctionCallRequest) GetIdentifier() isOutboundMessage_FunctionCallRequest_Identifier

func (*OutboundMessage_FunctionCallRequest) GetName

func (*OutboundMessage_FunctionCallRequest) ProtoMessage

func (*OutboundMessage_FunctionCallRequest) ProtoMessage()

func (*OutboundMessage_FunctionCallRequest) ProtoReflect

func (*OutboundMessage_FunctionCallRequest) Reset

func (*OutboundMessage_FunctionCallRequest) String

type OutboundMessage_FunctionCallRequest_

type OutboundMessage_FunctionCallRequest_ struct {
	FunctionCallRequest *OutboundMessage_FunctionCallRequest `protobuf:"bytes,7,opt,name=functionCallRequest,proto3,oneof"`
}

type OutboundMessage_FunctionCallRequest_FunctionId

type OutboundMessage_FunctionCallRequest_FunctionId struct {
	// The opaque ID of the function to invoke.
	//
	// This must match the ID of a `Value.HostFunction` that the host passed
	// to the compiler.
	FunctionId uint32 `protobuf:"varint,4,opt,name=function_id,json=functionId,proto3,oneof"`
}

type OutboundMessage_FunctionCallRequest_Name

type OutboundMessage_FunctionCallRequest_Name struct {
	// The name of the function to invoke.
	//
	// This must match the name of a function signature the host passed to the
	// corresponding `CompileRequest.global_functions` call, including hyphens
	// and underscores.
	Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
}

type OutboundMessage_ImportRequest

type OutboundMessage_ImportRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32 `protobuf:"varint,2,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	// The unique ID of the importer being invoked. This must match an
	// `Importer.importer_id` passed to this compilation in
	// `CompileRequest.importers` or `CompileRequest.input.string.importer`.
	// Mandatory.
	ImporterId uint32 `protobuf:"varint,3,opt,name=importer_id,json=importerId,proto3" json:"importer_id,omitempty"`
	// The canonical URL of the import. This is guaranteed to be a URL returned
	// by a `CanonicalizeRequest` to this importer.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

A request for a custom importer to load the contents of a stylesheet.

func (*OutboundMessage_ImportRequest) Descriptor deprecated

func (*OutboundMessage_ImportRequest) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_ImportRequest.ProtoReflect.Descriptor instead.

func (*OutboundMessage_ImportRequest) GetCompilationId

func (x *OutboundMessage_ImportRequest) GetCompilationId() uint32

func (*OutboundMessage_ImportRequest) GetId

func (*OutboundMessage_ImportRequest) GetImporterId

func (x *OutboundMessage_ImportRequest) GetImporterId() uint32

func (*OutboundMessage_ImportRequest) GetUrl

func (*OutboundMessage_ImportRequest) ProtoMessage

func (*OutboundMessage_ImportRequest) ProtoMessage()

func (*OutboundMessage_ImportRequest) ProtoReflect

func (*OutboundMessage_ImportRequest) Reset

func (x *OutboundMessage_ImportRequest) Reset()

func (*OutboundMessage_ImportRequest) String

type OutboundMessage_ImportRequest_

type OutboundMessage_ImportRequest_ struct {
	ImportRequest *OutboundMessage_ImportRequest `protobuf:"bytes,5,opt,name=importRequest,proto3,oneof"`
}

type OutboundMessage_LogEvent

type OutboundMessage_LogEvent struct {

	// The request id for the compilation that triggered the message. Mandatory.
	CompilationId uint32                        `protobuf:"varint,1,opt,name=compilation_id,json=compilationId,proto3" json:"compilation_id,omitempty"`
	Type          OutboundMessage_LogEvent_Type `protobuf:"varint,2,opt,name=type,proto3,enum=sass.embedded_protocol.OutboundMessage_LogEvent_Type" json:"type,omitempty"`
	// The text of the message.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// The span associated with this message. Optional.
	Span *SourceSpan `protobuf:"bytes,4,opt,name=span,proto3" json:"span,omitempty"`
	// The stack trace associated with this message.
	//
	// The empty string indicates that no stack trace is available. Otherwise,
	// the format of this stack trace is not specified and is likely to be
	// inconsistent between implementations.
	StackTrace string `protobuf:"bytes,5,opt,name=stack_trace,json=stackTrace,proto3" json:"stack_trace,omitempty"`
	// contains filtered or unexported fields
}

An event indicating that a message should be displayed to the user.

func (*OutboundMessage_LogEvent) Descriptor deprecated

func (*OutboundMessage_LogEvent) Descriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_LogEvent.ProtoReflect.Descriptor instead.

func (*OutboundMessage_LogEvent) GetCompilationId

func (x *OutboundMessage_LogEvent) GetCompilationId() uint32

func (*OutboundMessage_LogEvent) GetMessage

func (x *OutboundMessage_LogEvent) GetMessage() string

func (*OutboundMessage_LogEvent) GetSpan

func (x *OutboundMessage_LogEvent) GetSpan() *SourceSpan

func (*OutboundMessage_LogEvent) GetStackTrace

func (x *OutboundMessage_LogEvent) GetStackTrace() string

func (*OutboundMessage_LogEvent) GetType

func (*OutboundMessage_LogEvent) ProtoMessage

func (*OutboundMessage_LogEvent) ProtoMessage()

func (*OutboundMessage_LogEvent) ProtoReflect

func (x *OutboundMessage_LogEvent) ProtoReflect() protoreflect.Message

func (*OutboundMessage_LogEvent) Reset

func (x *OutboundMessage_LogEvent) Reset()

func (*OutboundMessage_LogEvent) String

func (x *OutboundMessage_LogEvent) String() string

type OutboundMessage_LogEvent_

type OutboundMessage_LogEvent_ struct {
	LogEvent *OutboundMessage_LogEvent `protobuf:"bytes,3,opt,name=logEvent,proto3,oneof"`
}

type OutboundMessage_LogEvent_Type

type OutboundMessage_LogEvent_Type int32

The type of message.

const (
	// A warning for something other than a deprecated Sass feature. Often
	// emitted due to a stylesheet using the `@warn` rule.
	OutboundMessage_LogEvent_WARNING OutboundMessage_LogEvent_Type = 0
	// A warning indicating that the stylesheet is using a deprecated Sass
	// feature. Compilers should not add text like "deprecation warning" to
	// deprecation warnings; it's up to the host to determine how to signal
	// that to the user.
	OutboundMessage_LogEvent_DEPRECATION_WARNING OutboundMessage_LogEvent_Type = 1
	// A message generated by the user for their own debugging purposes.
	OutboundMessage_LogEvent_DEBUG OutboundMessage_LogEvent_Type = 2
)

func (OutboundMessage_LogEvent_Type) Descriptor

func (OutboundMessage_LogEvent_Type) Enum

func (OutboundMessage_LogEvent_Type) EnumDescriptor deprecated

func (OutboundMessage_LogEvent_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use OutboundMessage_LogEvent_Type.Descriptor instead.

func (OutboundMessage_LogEvent_Type) Number

func (OutboundMessage_LogEvent_Type) String

func (OutboundMessage_LogEvent_Type) Type

type ProtocolError

type ProtocolError struct {
	Type ProtocolError_ErrorType `protobuf:"varint,1,opt,name=type,proto3,enum=sass.embedded_protocol.ProtocolError_ErrorType" json:"type,omitempty"`
	// The ID of the request that had an error. This MUST be `-1` if the request
	// ID couldn't be determined, or if the error is being reported for a response
	// or an event.
	Id int32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// A human-readable message providing more detail about the error.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

An error reported when an endpoint violates the embedded Sass protocol.

func (*ProtocolError) Descriptor deprecated

func (*ProtocolError) Descriptor() ([]byte, []int)

Deprecated: Use ProtocolError.ProtoReflect.Descriptor instead.

func (*ProtocolError) GetId

func (x *ProtocolError) GetId() int32

func (*ProtocolError) GetMessage

func (x *ProtocolError) GetMessage() string

func (*ProtocolError) GetType

func (*ProtocolError) ProtoMessage

func (*ProtocolError) ProtoMessage()

func (*ProtocolError) ProtoReflect

func (x *ProtocolError) ProtoReflect() protoreflect.Message

func (*ProtocolError) Reset

func (x *ProtocolError) Reset()

func (*ProtocolError) String

func (x *ProtocolError) String() string

type ProtocolError_ErrorType

type ProtocolError_ErrorType int32

Potential types of errors.

const (
	// A message was received that couldn't be decoded as an `InboundMessage`
	// (for the compiler) or `OutboundMessage` (for the host).
	ProtocolError_PARSE ProtocolError_ErrorType = 0
	// A message was received that violated a documented restriction, such as
	// not providing a mandatory field.
	ProtocolError_PARAMS ProtocolError_ErrorType = 1
	// Something unexpected went wrong within the endpoint.
	ProtocolError_INTERNAL ProtocolError_ErrorType = 2
)

func (ProtocolError_ErrorType) Descriptor

func (ProtocolError_ErrorType) Enum

func (ProtocolError_ErrorType) EnumDescriptor deprecated

func (ProtocolError_ErrorType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolError_ErrorType.Descriptor instead.

func (ProtocolError_ErrorType) Number

func (ProtocolError_ErrorType) String

func (x ProtocolError_ErrorType) String() string

func (ProtocolError_ErrorType) Type

type SourceSpan

type SourceSpan struct {

	// The text covered by the source span. Compilers must guarantee that this is
	// the text between `start.offset` and `end.offset` in the source file
	// referred to by `url`.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// The location of the first character in this span. Mandatory.
	Start *SourceSpan_SourceLocation `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	// The location of the first character after this span. Optional.
	//
	// If this is omitted, it indicates that the span is empty and points
	// immediately before `start`. In that case, `text` must be empty.
	//
	// This must not point to a location before `start`.
	End *SourceSpan_SourceLocation `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	// The URL of the file to which this span refers.
	//
	// This may be empty, indicating that the span refers to a
	// `CompileRequest.StringInput` file that doesn't specify a URL.
	Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"`
	// Additional source text surrounding this span.
	//
	// If this isn't empty, it must contain `text`. Furthermore, `text` must begin
	// at column `start.column` of a line in `context`.
	//
	// This usually contains the full lines the span begins and ends on if the
	// span itself doesn't cover the full lines.
	Context string `protobuf:"bytes,5,opt,name=context,proto3" json:"context,omitempty"`
	// contains filtered or unexported fields
}

A chunk of a source file.

func (*SourceSpan) Descriptor deprecated

func (*SourceSpan) Descriptor() ([]byte, []int)

Deprecated: Use SourceSpan.ProtoReflect.Descriptor instead.

func (*SourceSpan) GetContext

func (x *SourceSpan) GetContext() string

func (*SourceSpan) GetEnd

func (*SourceSpan) GetStart

func (x *SourceSpan) GetStart() *SourceSpan_SourceLocation

func (*SourceSpan) GetText

func (x *SourceSpan) GetText() string

func (*SourceSpan) GetUrl

func (x *SourceSpan) GetUrl() string

func (*SourceSpan) ProtoMessage

func (*SourceSpan) ProtoMessage()

func (*SourceSpan) ProtoReflect

func (x *SourceSpan) ProtoReflect() protoreflect.Message

func (*SourceSpan) Reset

func (x *SourceSpan) Reset()

func (*SourceSpan) String

func (x *SourceSpan) String() string

type SourceSpan_SourceLocation

type SourceSpan_SourceLocation struct {

	// The 0-based offset of this location within the source file. Mandatory.
	Offset uint32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// The 0-based line number of this location within the source file.
	// Mandatory.
	Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"`
	// The 0-based column number of this location within its line. Mandatory.
	Column uint32 `protobuf:"varint,3,opt,name=column,proto3" json:"column,omitempty"`
	// contains filtered or unexported fields
}

A single point in a source file.

func (*SourceSpan_SourceLocation) Descriptor deprecated

func (*SourceSpan_SourceLocation) Descriptor() ([]byte, []int)

Deprecated: Use SourceSpan_SourceLocation.ProtoReflect.Descriptor instead.

func (*SourceSpan_SourceLocation) GetColumn

func (x *SourceSpan_SourceLocation) GetColumn() uint32

func (*SourceSpan_SourceLocation) GetLine

func (x *SourceSpan_SourceLocation) GetLine() uint32

func (*SourceSpan_SourceLocation) GetOffset

func (x *SourceSpan_SourceLocation) GetOffset() uint32

func (*SourceSpan_SourceLocation) ProtoMessage

func (*SourceSpan_SourceLocation) ProtoMessage()

func (*SourceSpan_SourceLocation) ProtoReflect

func (*SourceSpan_SourceLocation) Reset

func (x *SourceSpan_SourceLocation) Reset()

func (*SourceSpan_SourceLocation) String

func (x *SourceSpan_SourceLocation) String() string

type Value

type Value struct {

	// The value itself. Mandatory.
	//
	// This is wrapped in a message type rather than used directly to reduce
	// repetition, and because oneofs can't be repeated.
	//
	// Types that are assignable to Value:
	//	*Value_String_
	//	*Value_Number_
	//	*Value_RgbColor_
	//	*Value_HslColor_
	//	*Value_List_
	//	*Value_Map_
	//	*Value_Singleton_
	//	*Value_CompilerFunction_
	//	*Value_HostFunction_
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A SassScript value, passed to and returned by functions.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetCompilerFunction

func (x *Value) GetCompilerFunction() *Value_CompilerFunction

func (*Value) GetHostFunction

func (x *Value) GetHostFunction() *Value_HostFunction

func (*Value) GetHslColor

func (x *Value) GetHslColor() *Value_HslColor

func (*Value) GetList

func (x *Value) GetList() *Value_List

func (*Value) GetMap

func (x *Value) GetMap() *Value_Map

func (*Value) GetNumber

func (x *Value) GetNumber() *Value_Number

func (*Value) GetRgbColor

func (x *Value) GetRgbColor() *Value_RgbColor

func (*Value) GetSingleton

func (x *Value) GetSingleton() Value_Singleton

func (*Value) GetString_

func (x *Value) GetString_() *Value_String

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_CompilerFunction

type Value_CompilerFunction struct {

	// A unique ID for this function. This ID can be used in
	// `InboundRequest.FunctionCallRequest` to invoke this function. The
	// compiler is responsible for generating this ID and ensuring it's unique
	// across all functions passed to the host for this compilation. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A first-class function defined in the compiler. New `CompilerFunction`s may only be created by the compiler, but the host may pass `CompilerFunction`s back to the compiler as long as their IDs match IDs of functions received by the host during that same compilation.

func (*Value_CompilerFunction) Descriptor deprecated

func (*Value_CompilerFunction) Descriptor() ([]byte, []int)

Deprecated: Use Value_CompilerFunction.ProtoReflect.Descriptor instead.

func (*Value_CompilerFunction) GetId

func (x *Value_CompilerFunction) GetId() uint32

func (*Value_CompilerFunction) ProtoMessage

func (*Value_CompilerFunction) ProtoMessage()

func (*Value_CompilerFunction) ProtoReflect

func (x *Value_CompilerFunction) ProtoReflect() protoreflect.Message

func (*Value_CompilerFunction) Reset

func (x *Value_CompilerFunction) Reset()

func (*Value_CompilerFunction) String

func (x *Value_CompilerFunction) String() string

type Value_CompilerFunction_

type Value_CompilerFunction_ struct {
	CompilerFunction *Value_CompilerFunction `protobuf:"bytes,8,opt,name=compiler_function,json=compilerFunction,proto3,oneof"`
}

type Value_HostFunction

type Value_HostFunction struct {

	// A unique ID for this function. The compiler must pass this ID as
	// `OutboundRequest.FunctionCallRequest.id` when invoking this function. The
	// host is responsible for generating this ID and ensuring it's unique
	// across all functions for *all* compilations. Mandatory.
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// The signatures for this function. This must be a valid Sass function
	// signature that could appear in after `@function` in a Sass stylesheet,
	// such as `mix($color1, $color2, $weight: 50%)`. Mandatory.
	//
	// The compiler may not invoke the function by its name, since it's not
	// guaranteed to be globally unique. However, it may use the name to
	// generate the string representation of this function.
	Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

An anonymous custom function defined in the host. New `HostFunction`s may only be created by the host, and `HostFunction`s may *never* be passed from the compiler to the host. The compiler must instead pass a `CompilerFunction` that wraps the `HostFunction`.

func (*Value_HostFunction) Descriptor deprecated

func (*Value_HostFunction) Descriptor() ([]byte, []int)

Deprecated: Use Value_HostFunction.ProtoReflect.Descriptor instead.

func (*Value_HostFunction) GetId

func (x *Value_HostFunction) GetId() uint32

func (*Value_HostFunction) GetSignature

func (x *Value_HostFunction) GetSignature() string

func (*Value_HostFunction) ProtoMessage

func (*Value_HostFunction) ProtoMessage()

func (*Value_HostFunction) ProtoReflect

func (x *Value_HostFunction) ProtoReflect() protoreflect.Message

func (*Value_HostFunction) Reset

func (x *Value_HostFunction) Reset()

func (*Value_HostFunction) String

func (x *Value_HostFunction) String() string

type Value_HostFunction_

type Value_HostFunction_ struct {
	HostFunction *Value_HostFunction `protobuf:"bytes,9,opt,name=host_function,json=hostFunction,proto3,oneof"`
}

type Value_HslColor

type Value_HslColor struct {

	// The color's hue. Mandatory.
	Hue float64 `protobuf:"fixed64,1,opt,name=hue,proto3" json:"hue,omitempty"`
	// The color's percent saturation. Mandatory. Must be between 0 and 100,
	// inclusive.
	Saturation float64 `protobuf:"fixed64,2,opt,name=saturation,proto3" json:"saturation,omitempty"`
	// The color's percent lightness. Mandatory. Must be between 0 and 100,
	// inclusive.
	Lightness float64 `protobuf:"fixed64,3,opt,name=lightness,proto3" json:"lightness,omitempty"`
	// The color's alpha channel. Mandatory. Must be between 0 and 1,
	// inclusive.
	Alpha float64 `protobuf:"fixed64,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
	// contains filtered or unexported fields
}

A SassScript color value, represented as hue, saturation, and lightness channels.

func (*Value_HslColor) Descriptor deprecated

func (*Value_HslColor) Descriptor() ([]byte, []int)

Deprecated: Use Value_HslColor.ProtoReflect.Descriptor instead.

func (*Value_HslColor) GetAlpha

func (x *Value_HslColor) GetAlpha() float64

func (*Value_HslColor) GetHue

func (x *Value_HslColor) GetHue() float64

func (*Value_HslColor) GetLightness

func (x *Value_HslColor) GetLightness() float64

func (*Value_HslColor) GetSaturation

func (x *Value_HslColor) GetSaturation() float64

func (*Value_HslColor) ProtoMessage

func (*Value_HslColor) ProtoMessage()

func (*Value_HslColor) ProtoReflect

func (x *Value_HslColor) ProtoReflect() protoreflect.Message

func (*Value_HslColor) Reset

func (x *Value_HslColor) Reset()

func (*Value_HslColor) String

func (x *Value_HslColor) String() string

type Value_HslColor_

type Value_HslColor_ struct {
	HslColor *Value_HslColor `protobuf:"bytes,4,opt,name=hsl_color,json=hslColor,proto3,oneof"`
}

type Value_List

type Value_List struct {

	// The type of separator for this list. Mandatory.
	Separator Value_List_Separator `protobuf:"varint,1,opt,name=separator,proto3,enum=sass.embedded_protocol.Value_List_Separator" json:"separator,omitempty"`
	// Whether this list has square brackets. Mandatory.
	HasBrackets bool `protobuf:"varint,2,opt,name=has_brackets,json=hasBrackets,proto3" json:"has_brackets,omitempty"`
	// The elements of this list.
	Contents []*Value `protobuf:"bytes,3,rep,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

A SassScript list value.

func (*Value_List) Descriptor deprecated

func (*Value_List) Descriptor() ([]byte, []int)

Deprecated: Use Value_List.ProtoReflect.Descriptor instead.

func (*Value_List) GetContents

func (x *Value_List) GetContents() []*Value

func (*Value_List) GetHasBrackets

func (x *Value_List) GetHasBrackets() bool

func (*Value_List) GetSeparator

func (x *Value_List) GetSeparator() Value_List_Separator

func (*Value_List) ProtoMessage

func (*Value_List) ProtoMessage()

func (*Value_List) ProtoReflect

func (x *Value_List) ProtoReflect() protoreflect.Message

func (*Value_List) Reset

func (x *Value_List) Reset()

func (*Value_List) String

func (x *Value_List) String() string

type Value_List_

type Value_List_ struct {
	List *Value_List `protobuf:"bytes,5,opt,name=list,proto3,oneof"`
}

type Value_List_Separator

type Value_List_Separator int32

Different types of separators a list can have.

const (
	// List elements are separated by a comma.
	Value_List_COMMA Value_List_Separator = 0
	// List elements are separated by whitespace.
	Value_List_SPACE Value_List_Separator = 1
	// List elements are separated by a forward slash.
	Value_List_SLASH Value_List_Separator = 2
	// The list's separator hasn't yet been determined.
	//
	// Singleton lists and empty lists don't have separators defiend. This
	// means that list functions will prefer other lists' separators if
	// possible.
	Value_List_UNDECIDED Value_List_Separator = 3
)

func (Value_List_Separator) Descriptor

func (Value_List_Separator) Enum

func (Value_List_Separator) EnumDescriptor deprecated

func (Value_List_Separator) EnumDescriptor() ([]byte, []int)

Deprecated: Use Value_List_Separator.Descriptor instead.

func (Value_List_Separator) Number

func (Value_List_Separator) String

func (x Value_List_Separator) String() string

func (Value_List_Separator) Type

type Value_Map

type Value_Map struct {

	// The entries in this map. The sending endpoint must guarantee that no two
	// entries have the same key.
	Entries []*Value_Map_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

A SassScript map value.

func (*Value_Map) Descriptor deprecated

func (*Value_Map) Descriptor() ([]byte, []int)

Deprecated: Use Value_Map.ProtoReflect.Descriptor instead.

func (*Value_Map) GetEntries

func (x *Value_Map) GetEntries() []*Value_Map_Entry

func (*Value_Map) ProtoMessage

func (*Value_Map) ProtoMessage()

func (*Value_Map) ProtoReflect

func (x *Value_Map) ProtoReflect() protoreflect.Message

func (*Value_Map) Reset

func (x *Value_Map) Reset()

func (*Value_Map) String

func (x *Value_Map) String() string

type Value_Map_

type Value_Map_ struct {
	Map *Value_Map `protobuf:"bytes,6,opt,name=map,proto3,oneof"`
}

type Value_Map_Entry

type Value_Map_Entry struct {

	// The key this entry is associated with. Mandatory.
	Key *Value `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value associated with this key. Mandatory.
	Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A single key/value pair in the map.

func (*Value_Map_Entry) Descriptor deprecated

func (*Value_Map_Entry) Descriptor() ([]byte, []int)

Deprecated: Use Value_Map_Entry.ProtoReflect.Descriptor instead.

func (*Value_Map_Entry) GetKey

func (x *Value_Map_Entry) GetKey() *Value

func (*Value_Map_Entry) GetValue

func (x *Value_Map_Entry) GetValue() *Value

func (*Value_Map_Entry) ProtoMessage

func (*Value_Map_Entry) ProtoMessage()

func (*Value_Map_Entry) ProtoReflect

func (x *Value_Map_Entry) ProtoReflect() protoreflect.Message

func (*Value_Map_Entry) Reset

func (x *Value_Map_Entry) Reset()

func (*Value_Map_Entry) String

func (x *Value_Map_Entry) String() string

type Value_Number

type Value_Number struct {

	// The number's numeric value. Mandatory.
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// The number's numerator units.
	//
	// The endpoint sending the number must ensure that no numerator units are
	// [compatible][] with any denominator units. Such compatible units must be
	// simplified away according to the multiplicative factor between them
	// defined in the CSS Values and Units spec.
	//
	// [compatible]: https://www.w3.org/TR/css-values-4/#compat
	Numerators []string `protobuf:"bytes,2,rep,name=numerators,proto3" json:"numerators,omitempty"`
	// The number's denominator units.
	Denominators []string `protobuf:"bytes,3,rep,name=denominators,proto3" json:"denominators,omitempty"`
	// contains filtered or unexported fields
}

A SassScript number value.

func (*Value_Number) Descriptor deprecated

func (*Value_Number) Descriptor() ([]byte, []int)

Deprecated: Use Value_Number.ProtoReflect.Descriptor instead.

func (*Value_Number) GetDenominators

func (x *Value_Number) GetDenominators() []string

func (*Value_Number) GetNumerators

func (x *Value_Number) GetNumerators() []string

func (*Value_Number) GetValue

func (x *Value_Number) GetValue() float64

func (*Value_Number) ProtoMessage

func (*Value_Number) ProtoMessage()

func (*Value_Number) ProtoReflect

func (x *Value_Number) ProtoReflect() protoreflect.Message

func (*Value_Number) Reset

func (x *Value_Number) Reset()

func (*Value_Number) String

func (x *Value_Number) String() string

type Value_Number_

type Value_Number_ struct {
	Number *Value_Number `protobuf:"bytes,2,opt,name=number,proto3,oneof"`
}

type Value_RgbColor

type Value_RgbColor struct {

	// The color's red channel. Mandatory. May not be above 255.
	Red uint32 `protobuf:"varint,1,opt,name=red,proto3" json:"red,omitempty"`
	// The color's green channel. Mandatory. May not be above 255.
	Green uint32 `protobuf:"varint,2,opt,name=green,proto3" json:"green,omitempty"`
	// The color's blue channel. Mandatory. May not be above 255.
	Blue uint32 `protobuf:"varint,3,opt,name=blue,proto3" json:"blue,omitempty"`
	// The color's alpha channel. Mandatory. Must be between 0 and 1,
	// inclusive.
	Alpha float64 `protobuf:"fixed64,4,opt,name=alpha,proto3" json:"alpha,omitempty"`
	// contains filtered or unexported fields
}

A SassScript color value, represented as red, green, and blue channels.

func (*Value_RgbColor) Descriptor deprecated

func (*Value_RgbColor) Descriptor() ([]byte, []int)

Deprecated: Use Value_RgbColor.ProtoReflect.Descriptor instead.

func (*Value_RgbColor) GetAlpha

func (x *Value_RgbColor) GetAlpha() float64

func (*Value_RgbColor) GetBlue

func (x *Value_RgbColor) GetBlue() uint32

func (*Value_RgbColor) GetGreen

func (x *Value_RgbColor) GetGreen() uint32

func (*Value_RgbColor) GetRed

func (x *Value_RgbColor) GetRed() uint32

func (*Value_RgbColor) ProtoMessage

func (*Value_RgbColor) ProtoMessage()

func (*Value_RgbColor) ProtoReflect

func (x *Value_RgbColor) ProtoReflect() protoreflect.Message

func (*Value_RgbColor) Reset

func (x *Value_RgbColor) Reset()

func (*Value_RgbColor) String

func (x *Value_RgbColor) String() string

type Value_RgbColor_

type Value_RgbColor_ struct {
	RgbColor *Value_RgbColor `protobuf:"bytes,3,opt,name=rgb_color,json=rgbColor,proto3,oneof"`
}

type Value_Singleton

type Value_Singleton int32

Singleton SassScript values that have no internal state.

const (
	// The SassScript boolean true value.
	Value_TRUE Value_Singleton = 0
	// The SassScript boolean false value.
	Value_FALSE Value_Singleton = 1
	// The SassScript null value.
	Value_NULL Value_Singleton = 2
)

func (Value_Singleton) Descriptor

func (Value_Singleton) Enum

func (x Value_Singleton) Enum() *Value_Singleton

func (Value_Singleton) EnumDescriptor deprecated

func (Value_Singleton) EnumDescriptor() ([]byte, []int)

Deprecated: Use Value_Singleton.Descriptor instead.

func (Value_Singleton) Number

func (Value_Singleton) String

func (x Value_Singleton) String() string

func (Value_Singleton) Type

type Value_Singleton_

type Value_Singleton_ struct {
	Singleton Value_Singleton `protobuf:"varint,7,opt,name=singleton,proto3,enum=sass.embedded_protocol.Value_Singleton,oneof"`
}

type Value_String

type Value_String struct {

	// The contents of the string. Mandatory.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// Whether the string is quoted or unquoted. Mandatory.
	Quoted bool `protobuf:"varint,2,opt,name=quoted,proto3" json:"quoted,omitempty"`
	// contains filtered or unexported fields
}

A SassScript string value.

func (*Value_String) Descriptor deprecated

func (*Value_String) Descriptor() ([]byte, []int)

Deprecated: Use Value_String.ProtoReflect.Descriptor instead.

func (*Value_String) GetQuoted

func (x *Value_String) GetQuoted() bool

func (*Value_String) GetText

func (x *Value_String) GetText() string

func (*Value_String) ProtoMessage

func (*Value_String) ProtoMessage()

func (*Value_String) ProtoReflect

func (x *Value_String) ProtoReflect() protoreflect.Message

func (*Value_String) Reset

func (x *Value_String) Reset()

func (*Value_String) String

func (x *Value_String) String() string

type Value_String_

type Value_String_ struct {
	String_ *Value_String `protobuf:"bytes,1,opt,name=string,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL