sass-embedded 1.77.8 → 1.79.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/bin/sass.js +23 -0
  2. package/dist/bin/sass.js.map +1 -0
  3. package/dist/jest.config.js +1 -0
  4. package/dist/jest.config.js.map +1 -1
  5. package/dist/lib/src/compiler/async.js +32 -24
  6. package/dist/lib/src/compiler/async.js.map +1 -1
  7. package/dist/lib/src/compiler/sync.js +40 -32
  8. package/dist/lib/src/compiler/sync.js.map +1 -1
  9. package/dist/lib/src/compiler/utils.js +4 -3
  10. package/dist/lib/src/compiler/utils.js.map +1 -1
  11. package/dist/lib/src/compiler-path.js +14 -6
  12. package/dist/lib/src/compiler-path.js.map +1 -1
  13. package/dist/lib/src/deprecations.js +99 -3
  14. package/dist/lib/src/deprecations.js.map +1 -1
  15. package/dist/lib/src/dispatcher.js +3 -2
  16. package/dist/lib/src/dispatcher.js.map +1 -1
  17. package/dist/lib/src/elf.js +81 -0
  18. package/dist/lib/src/elf.js.map +1 -0
  19. package/dist/lib/src/function-registry.js +3 -2
  20. package/dist/lib/src/function-registry.js.map +1 -1
  21. package/dist/lib/src/importer-registry.js +16 -14
  22. package/dist/lib/src/importer-registry.js.map +1 -1
  23. package/dist/lib/src/legacy/index.js +6 -0
  24. package/dist/lib/src/legacy/index.js.map +1 -1
  25. package/dist/lib/src/legacy/value/wrap.js +2 -2
  26. package/dist/lib/src/legacy/value/wrap.js.map +1 -1
  27. package/dist/lib/src/message-transformer.js +3 -2
  28. package/dist/lib/src/message-transformer.js.map +1 -1
  29. package/dist/lib/src/protofier.js +104 -66
  30. package/dist/lib/src/protofier.js.map +1 -1
  31. package/dist/lib/src/sync-process/sync-message-port.js +8 -4
  32. package/dist/lib/src/sync-process/sync-message-port.js.map +1 -1
  33. package/dist/lib/src/value/calculations.js +4 -2
  34. package/dist/lib/src/value/calculations.js.map +1 -1
  35. package/dist/lib/src/value/color.js +814 -199
  36. package/dist/lib/src/value/color.js.map +1 -1
  37. package/dist/lib/src/vendor/deprecations.js +35 -0
  38. package/dist/lib/src/vendor/deprecations.js.map +1 -1
  39. package/dist/lib/src/vendor/embedded_sass_pb.js +223 -2293
  40. package/dist/lib/src/vendor/embedded_sass_pb.js.map +1 -1
  41. package/dist/package.json +32 -24
  42. package/dist/tool/prepare-optional-release.js +2 -26
  43. package/dist/tool/prepare-optional-release.js.map +1 -1
  44. package/dist/tool/utils.js +2 -5
  45. package/dist/tool/utils.js.map +1 -1
  46. package/dist/types/deprecations.d.ts +36 -1
  47. package/dist/types/index.d.ts +19 -1
  48. package/dist/types/index.m.d.ts +19 -1
  49. package/dist/types/legacy/options.d.ts +40 -0
  50. package/dist/types/logger/index.d.ts +32 -16
  51. package/dist/types/value/color.d.ts +505 -67
  52. package/dist/types/value/index.d.ts +21 -1
  53. package/package.json +32 -24
@@ -3,8 +3,203 @@
3
3
  // MIT-style license that can be found in the LICENSE file or at
4
4
  // https://opensource.org/licenses/MIT.
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.NodePackageImporter = exports.Value_Calculation_CalculationOperation = exports.Value_Calculation_CalculationValue = exports.Value_Calculation = exports.Value_ArgumentList = exports.Value_CompilerMixin = exports.Value_HostFunction = exports.Value_CompilerFunction = exports.Value_Map_Entry = exports.Value_Map = exports.Value_List = exports.Value_HwbColor = exports.Value_HslColor = exports.Value_RgbColor = exports.Value_Number = exports.Value_String = exports.Value = exports.SourceSpan_SourceLocation = exports.SourceSpan = exports.ProtocolError = exports.OutboundMessage_FunctionCallRequest = exports.OutboundMessage_FileImportRequest = exports.OutboundMessage_ImportRequest = exports.OutboundMessage_CanonicalizeRequest = exports.OutboundMessage_LogEvent = exports.OutboundMessage_CompileResponse_CompileFailure = exports.OutboundMessage_CompileResponse_CompileSuccess = exports.OutboundMessage_CompileResponse = exports.OutboundMessage_VersionResponse = exports.OutboundMessage = exports.InboundMessage_FunctionCallResponse = exports.InboundMessage_FileImportResponse = exports.InboundMessage_ImportResponse_ImportSuccess = exports.InboundMessage_ImportResponse = exports.InboundMessage_CanonicalizeResponse = exports.InboundMessage_CompileRequest_Importer = exports.InboundMessage_CompileRequest_StringInput = exports.InboundMessage_CompileRequest = exports.InboundMessage_VersionRequest = exports.InboundMessage = exports.CalculationOperator = exports.SingletonValue = exports.ListSeparator = exports.ProtocolErrorType = exports.LogEventType = exports.Syntax = exports.OutputStyle = void 0;
7
- const protobuf_1 = require("@bufbuild/protobuf");
6
+ exports.SingletonValue = exports.ListSeparatorSchema = exports.ListSeparator = exports.ProtocolErrorTypeSchema = exports.ProtocolErrorType = exports.LogEventTypeSchema = exports.LogEventType = exports.SyntaxSchema = exports.Syntax = exports.OutputStyleSchema = exports.OutputStyle = exports.NodePackageImporterSchema = exports.Value_Calculation_CalculationOperationSchema = exports.Value_Calculation_CalculationValueSchema = exports.Value_CalculationSchema = exports.Value_ArgumentListSchema = exports.Value_CompilerMixinSchema = exports.Value_HostFunctionSchema = exports.Value_CompilerFunctionSchema = exports.Value_Map_EntrySchema = exports.Value_MapSchema = exports.Value_ListSchema = exports.Value_ColorSchema = exports.Value_NumberSchema = exports.Value_StringSchema = exports.ValueSchema = exports.SourceSpan_SourceLocationSchema = exports.SourceSpanSchema = exports.ProtocolErrorSchema = exports.OutboundMessage_FunctionCallRequestSchema = exports.OutboundMessage_FileImportRequestSchema = exports.OutboundMessage_ImportRequestSchema = exports.OutboundMessage_CanonicalizeRequestSchema = exports.OutboundMessage_LogEventSchema = exports.OutboundMessage_CompileResponse_CompileFailureSchema = exports.OutboundMessage_CompileResponse_CompileSuccessSchema = exports.OutboundMessage_CompileResponseSchema = exports.OutboundMessage_VersionResponseSchema = exports.OutboundMessageSchema = exports.InboundMessage_FunctionCallResponseSchema = exports.InboundMessage_FileImportResponseSchema = exports.InboundMessage_ImportResponse_ImportSuccessSchema = exports.InboundMessage_ImportResponseSchema = exports.InboundMessage_CanonicalizeResponseSchema = exports.InboundMessage_CompileRequest_ImporterSchema = exports.InboundMessage_CompileRequest_StringInputSchema = exports.InboundMessage_CompileRequestSchema = exports.InboundMessage_VersionRequestSchema = exports.InboundMessageSchema = exports.file_embedded_sass = void 0;
7
+ exports.CalculationOperatorSchema = exports.CalculationOperator = exports.SingletonValueSchema = void 0;
8
+ const codegenv1_1 = require("@bufbuild/protobuf/codegenv1");
9
+ /**
10
+ * Describes the file embedded_sass.proto.
11
+ */
12
+ exports.file_embedded_sass = (0, codegenv1_1.fileDesc)("ChNlbWJlZGRlZF9zYXNzLnByb3RvEhZzYXNzLmVtYmVkZGVkX3Byb3RvY29sIugQCg5JbmJvdW5kTWVzc2FnZRJQCg9jb21waWxlX3JlcXVlc3QYAiABKAsyNS5zYXNzLmVtYmVkZGVkX3Byb3RvY29sLkluYm91bmRNZXNzYWdlLkNvbXBpbGVSZXF1ZXN0SAASXAoVY2Fub25pY2FsaXplX3Jlc3BvbnNlGAMgASgLMjsuc2Fzcy5lbWJlZGRlZF9wcm90b2NvbC5JbmJvdW5kTWVzc2FnZS5DYW5vbmljYWxpemVSZXNwb25zZUgAElAKD2ltcG9ydF9yZXNwb25zZRgEIAEoCzI1LnNhc3MuZW1iZWRkZWRfcHJvdG9jb2wuSW5ib3VuZE1lc3NhZ2UuSW1wb3J0UmVzcG9uc2VIABJZChRmaWxlX2ltcG9ydF9yZXNwb25zZRgFIAEoCzI5LnNhc3MuZW1iZWRkZWRfcHJvdG9jb2wuSW5ib3VuZE1lc3NhZ2UuRmlsZUltcG9ydFJlc3BvbnNlSAASXQoWZnVuY3Rpb25fY2FsbF9yZXNwb25zZRgGIAEoCzI7LnNhc3MuZW1iZWRkZWRfcHJvdG9jb2wuSW5ib3VuZE1lc3NhZ2UuRnVuY3Rpb25DYWxsUmVzcG9uc2VIABJQCg92ZXJzaW9uX3JlcXVlc3QYByABKAsyNS5zYXNzLmVtYmVkZGVkX3Byb3RvY29sLkluYm91bmRNZXNzYWdlLlZlcnNpb25SZXF1ZXN0SAAaH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UcQAio4ChFQcm90b2NvbEVycm9yVHlwZRIJCgVQQVJTRRAAEgoKBlBBUkFNUxABEgwKCElOVEVSTkFMEAIqPwoNTGlzdFNlcGFyYXRvchIJCgVDT01NQRAAEgkKBVNQQUNFEAESCQoFU0xBU0gQAhINCglVTkRFQ0lERUQQAyovCg5TaW5nbGV0b25WYWx1ZRIICgRUUlVFEAASCQoFRkFMU0UQARIICgROVUxMEAIqQQoTQ2FsY3VsYXRpb25PcGVyYXRvchIICgRQTFVTEAASCQoFTUlOVVMQARIJCgVUSU1FUxACEgoKBkRJVklERRADQiMKH2NvbS5zYXNzX2xhbmcuZW1iZWRkZWRfcHJvdG9jb2xQAWIGcHJvdG8z");
13
+ /**
14
+ * Describes the message sass.embedded_protocol.InboundMessage.
15
+ * Use `create(InboundMessageSchema)` to create a new message.
16
+ */
17
+ exports.InboundMessageSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0);
18
+ /**
19
+ * Describes the message sass.embedded_protocol.InboundMessage.VersionRequest.
20
+ * Use `create(InboundMessage_VersionRequestSchema)` to create a new message.
21
+ */
22
+ exports.InboundMessage_VersionRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 0);
23
+ /**
24
+ * Describes the message sass.embedded_protocol.InboundMessage.CompileRequest.
25
+ * Use `create(InboundMessage_CompileRequestSchema)` to create a new message.
26
+ */
27
+ exports.InboundMessage_CompileRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 1);
28
+ /**
29
+ * Describes the message sass.embedded_protocol.InboundMessage.CompileRequest.StringInput.
30
+ * Use `create(InboundMessage_CompileRequest_StringInputSchema)` to create a new message.
31
+ */
32
+ exports.InboundMessage_CompileRequest_StringInputSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 1, 0);
33
+ /**
34
+ * Describes the message sass.embedded_protocol.InboundMessage.CompileRequest.Importer.
35
+ * Use `create(InboundMessage_CompileRequest_ImporterSchema)` to create a new message.
36
+ */
37
+ exports.InboundMessage_CompileRequest_ImporterSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 1, 1);
38
+ /**
39
+ * Describes the message sass.embedded_protocol.InboundMessage.CanonicalizeResponse.
40
+ * Use `create(InboundMessage_CanonicalizeResponseSchema)` to create a new message.
41
+ */
42
+ exports.InboundMessage_CanonicalizeResponseSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 2);
43
+ /**
44
+ * Describes the message sass.embedded_protocol.InboundMessage.ImportResponse.
45
+ * Use `create(InboundMessage_ImportResponseSchema)` to create a new message.
46
+ */
47
+ exports.InboundMessage_ImportResponseSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 3);
48
+ /**
49
+ * Describes the message sass.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess.
50
+ * Use `create(InboundMessage_ImportResponse_ImportSuccessSchema)` to create a new message.
51
+ */
52
+ exports.InboundMessage_ImportResponse_ImportSuccessSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 3, 0);
53
+ /**
54
+ * Describes the message sass.embedded_protocol.InboundMessage.FileImportResponse.
55
+ * Use `create(InboundMessage_FileImportResponseSchema)` to create a new message.
56
+ */
57
+ exports.InboundMessage_FileImportResponseSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 4);
58
+ /**
59
+ * Describes the message sass.embedded_protocol.InboundMessage.FunctionCallResponse.
60
+ * Use `create(InboundMessage_FunctionCallResponseSchema)` to create a new message.
61
+ */
62
+ exports.InboundMessage_FunctionCallResponseSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 0, 5);
63
+ /**
64
+ * Describes the message sass.embedded_protocol.OutboundMessage.
65
+ * Use `create(OutboundMessageSchema)` to create a new message.
66
+ */
67
+ exports.OutboundMessageSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1);
68
+ /**
69
+ * Describes the message sass.embedded_protocol.OutboundMessage.VersionResponse.
70
+ * Use `create(OutboundMessage_VersionResponseSchema)` to create a new message.
71
+ */
72
+ exports.OutboundMessage_VersionResponseSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 0);
73
+ /**
74
+ * Describes the message sass.embedded_protocol.OutboundMessage.CompileResponse.
75
+ * Use `create(OutboundMessage_CompileResponseSchema)` to create a new message.
76
+ */
77
+ exports.OutboundMessage_CompileResponseSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 1);
78
+ /**
79
+ * Describes the message sass.embedded_protocol.OutboundMessage.CompileResponse.CompileSuccess.
80
+ * Use `create(OutboundMessage_CompileResponse_CompileSuccessSchema)` to create a new message.
81
+ */
82
+ exports.OutboundMessage_CompileResponse_CompileSuccessSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 1, 0);
83
+ /**
84
+ * Describes the message sass.embedded_protocol.OutboundMessage.CompileResponse.CompileFailure.
85
+ * Use `create(OutboundMessage_CompileResponse_CompileFailureSchema)` to create a new message.
86
+ */
87
+ exports.OutboundMessage_CompileResponse_CompileFailureSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 1, 1);
88
+ /**
89
+ * Describes the message sass.embedded_protocol.OutboundMessage.LogEvent.
90
+ * Use `create(OutboundMessage_LogEventSchema)` to create a new message.
91
+ */
92
+ exports.OutboundMessage_LogEventSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 2);
93
+ /**
94
+ * Describes the message sass.embedded_protocol.OutboundMessage.CanonicalizeRequest.
95
+ * Use `create(OutboundMessage_CanonicalizeRequestSchema)` to create a new message.
96
+ */
97
+ exports.OutboundMessage_CanonicalizeRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 3);
98
+ /**
99
+ * Describes the message sass.embedded_protocol.OutboundMessage.ImportRequest.
100
+ * Use `create(OutboundMessage_ImportRequestSchema)` to create a new message.
101
+ */
102
+ exports.OutboundMessage_ImportRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 4);
103
+ /**
104
+ * Describes the message sass.embedded_protocol.OutboundMessage.FileImportRequest.
105
+ * Use `create(OutboundMessage_FileImportRequestSchema)` to create a new message.
106
+ */
107
+ exports.OutboundMessage_FileImportRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 5);
108
+ /**
109
+ * Describes the message sass.embedded_protocol.OutboundMessage.FunctionCallRequest.
110
+ * Use `create(OutboundMessage_FunctionCallRequestSchema)` to create a new message.
111
+ */
112
+ exports.OutboundMessage_FunctionCallRequestSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 1, 6);
113
+ /**
114
+ * Describes the message sass.embedded_protocol.ProtocolError.
115
+ * Use `create(ProtocolErrorSchema)` to create a new message.
116
+ */
117
+ exports.ProtocolErrorSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 2);
118
+ /**
119
+ * Describes the message sass.embedded_protocol.SourceSpan.
120
+ * Use `create(SourceSpanSchema)` to create a new message.
121
+ */
122
+ exports.SourceSpanSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 3);
123
+ /**
124
+ * Describes the message sass.embedded_protocol.SourceSpan.SourceLocation.
125
+ * Use `create(SourceSpan_SourceLocationSchema)` to create a new message.
126
+ */
127
+ exports.SourceSpan_SourceLocationSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 3, 0);
128
+ /**
129
+ * Describes the message sass.embedded_protocol.Value.
130
+ * Use `create(ValueSchema)` to create a new message.
131
+ */
132
+ exports.ValueSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4);
133
+ /**
134
+ * Describes the message sass.embedded_protocol.Value.String.
135
+ * Use `create(Value_StringSchema)` to create a new message.
136
+ */
137
+ exports.Value_StringSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 0);
138
+ /**
139
+ * Describes the message sass.embedded_protocol.Value.Number.
140
+ * Use `create(Value_NumberSchema)` to create a new message.
141
+ */
142
+ exports.Value_NumberSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 1);
143
+ /**
144
+ * Describes the message sass.embedded_protocol.Value.Color.
145
+ * Use `create(Value_ColorSchema)` to create a new message.
146
+ */
147
+ exports.Value_ColorSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 2);
148
+ /**
149
+ * Describes the message sass.embedded_protocol.Value.List.
150
+ * Use `create(Value_ListSchema)` to create a new message.
151
+ */
152
+ exports.Value_ListSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 3);
153
+ /**
154
+ * Describes the message sass.embedded_protocol.Value.Map.
155
+ * Use `create(Value_MapSchema)` to create a new message.
156
+ */
157
+ exports.Value_MapSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 4);
158
+ /**
159
+ * Describes the message sass.embedded_protocol.Value.Map.Entry.
160
+ * Use `create(Value_Map_EntrySchema)` to create a new message.
161
+ */
162
+ exports.Value_Map_EntrySchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 4, 0);
163
+ /**
164
+ * Describes the message sass.embedded_protocol.Value.CompilerFunction.
165
+ * Use `create(Value_CompilerFunctionSchema)` to create a new message.
166
+ */
167
+ exports.Value_CompilerFunctionSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 5);
168
+ /**
169
+ * Describes the message sass.embedded_protocol.Value.HostFunction.
170
+ * Use `create(Value_HostFunctionSchema)` to create a new message.
171
+ */
172
+ exports.Value_HostFunctionSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 6);
173
+ /**
174
+ * Describes the message sass.embedded_protocol.Value.CompilerMixin.
175
+ * Use `create(Value_CompilerMixinSchema)` to create a new message.
176
+ */
177
+ exports.Value_CompilerMixinSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 7);
178
+ /**
179
+ * Describes the message sass.embedded_protocol.Value.ArgumentList.
180
+ * Use `create(Value_ArgumentListSchema)` to create a new message.
181
+ */
182
+ exports.Value_ArgumentListSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 8);
183
+ /**
184
+ * Describes the message sass.embedded_protocol.Value.Calculation.
185
+ * Use `create(Value_CalculationSchema)` to create a new message.
186
+ */
187
+ exports.Value_CalculationSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 9);
188
+ /**
189
+ * Describes the message sass.embedded_protocol.Value.Calculation.CalculationValue.
190
+ * Use `create(Value_Calculation_CalculationValueSchema)` to create a new message.
191
+ */
192
+ exports.Value_Calculation_CalculationValueSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 9, 0);
193
+ /**
194
+ * Describes the message sass.embedded_protocol.Value.Calculation.CalculationOperation.
195
+ * Use `create(Value_Calculation_CalculationOperationSchema)` to create a new message.
196
+ */
197
+ exports.Value_Calculation_CalculationOperationSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 4, 9, 1);
198
+ /**
199
+ * Describes the message sass.embedded_protocol.NodePackageImporter.
200
+ * Use `create(NodePackageImporterSchema)` to create a new message.
201
+ */
202
+ exports.NodePackageImporterSchema = (0, codegenv1_1.messageDesc)(exports.file_embedded_sass, 5);
8
203
  /**
9
204
  * Possible ways to format the CSS output. The compiler is not required to
10
205
  * support all possible options; if the host requests an unsupported style, the
@@ -28,11 +223,10 @@ var OutputStyle;
28
223
  */
29
224
  OutputStyle[OutputStyle["COMPRESSED"] = 1] = "COMPRESSED";
30
225
  })(OutputStyle || (exports.OutputStyle = OutputStyle = {}));
31
- // Retrieve enum metadata with: proto3.getEnumType(OutputStyle)
32
- protobuf_1.proto3.util.setEnumType(OutputStyle, "sass.embedded_protocol.OutputStyle", [
33
- { no: 0, name: "EXPANDED" },
34
- { no: 1, name: "COMPRESSED" },
35
- ]);
226
+ /**
227
+ * Describes the enum sass.embedded_protocol.OutputStyle.
228
+ */
229
+ exports.OutputStyleSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 0);
36
230
  /**
37
231
  * Possible syntaxes for a Sass stylesheet.
38
232
  *
@@ -59,12 +253,10 @@ var Syntax;
59
253
  */
60
254
  Syntax[Syntax["CSS"] = 2] = "CSS";
61
255
  })(Syntax || (exports.Syntax = Syntax = {}));
62
- // Retrieve enum metadata with: proto3.getEnumType(Syntax)
63
- protobuf_1.proto3.util.setEnumType(Syntax, "sass.embedded_protocol.Syntax", [
64
- { no: 0, name: "SCSS" },
65
- { no: 1, name: "INDENTED" },
66
- { no: 2, name: "CSS" },
67
- ]);
256
+ /**
257
+ * Describes the enum sass.embedded_protocol.Syntax.
258
+ */
259
+ exports.SyntaxSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 1);
68
260
  /**
69
261
  * The possible types of [LogEvent].
70
262
  *
@@ -95,12 +287,10 @@ var LogEventType;
95
287
  */
96
288
  LogEventType[LogEventType["DEBUG"] = 2] = "DEBUG";
97
289
  })(LogEventType || (exports.LogEventType = LogEventType = {}));
98
- // Retrieve enum metadata with: proto3.getEnumType(LogEventType)
99
- protobuf_1.proto3.util.setEnumType(LogEventType, "sass.embedded_protocol.LogEventType", [
100
- { no: 0, name: "WARNING" },
101
- { no: 1, name: "DEPRECATION_WARNING" },
102
- { no: 2, name: "DEBUG" },
103
- ]);
290
+ /**
291
+ * Describes the enum sass.embedded_protocol.LogEventType.
292
+ */
293
+ exports.LogEventTypeSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 2);
104
294
  /**
105
295
  * Potential types of protocol errors.
106
296
  *
@@ -129,12 +319,10 @@ var ProtocolErrorType;
129
319
  */
130
320
  ProtocolErrorType[ProtocolErrorType["INTERNAL"] = 2] = "INTERNAL";
131
321
  })(ProtocolErrorType || (exports.ProtocolErrorType = ProtocolErrorType = {}));
132
- // Retrieve enum metadata with: proto3.getEnumType(ProtocolErrorType)
133
- protobuf_1.proto3.util.setEnumType(ProtocolErrorType, "sass.embedded_protocol.ProtocolErrorType", [
134
- { no: 0, name: "PARSE" },
135
- { no: 1, name: "PARAMS" },
136
- { no: 2, name: "INTERNAL" },
137
- ]);
322
+ /**
323
+ * Describes the enum sass.embedded_protocol.ProtocolErrorType.
324
+ */
325
+ exports.ProtocolErrorTypeSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 3);
138
326
  /**
139
327
  * Different types of separators a list can have.
140
328
  *
@@ -171,13 +359,10 @@ var ListSeparator;
171
359
  */
172
360
  ListSeparator[ListSeparator["UNDECIDED"] = 3] = "UNDECIDED";
173
361
  })(ListSeparator || (exports.ListSeparator = ListSeparator = {}));
174
- // Retrieve enum metadata with: proto3.getEnumType(ListSeparator)
175
- protobuf_1.proto3.util.setEnumType(ListSeparator, "sass.embedded_protocol.ListSeparator", [
176
- { no: 0, name: "COMMA" },
177
- { no: 1, name: "SPACE" },
178
- { no: 2, name: "SLASH" },
179
- { no: 3, name: "UNDECIDED" },
180
- ]);
362
+ /**
363
+ * Describes the enum sass.embedded_protocol.ListSeparator.
364
+ */
365
+ exports.ListSeparatorSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 4);
181
366
  /**
182
367
  * Singleton SassScript values that have no internal state.
183
368
  *
@@ -204,12 +389,10 @@ var SingletonValue;
204
389
  */
205
390
  SingletonValue[SingletonValue["NULL"] = 2] = "NULL";
206
391
  })(SingletonValue || (exports.SingletonValue = SingletonValue = {}));
207
- // Retrieve enum metadata with: proto3.getEnumType(SingletonValue)
208
- protobuf_1.proto3.util.setEnumType(SingletonValue, "sass.embedded_protocol.SingletonValue", [
209
- { no: 0, name: "TRUE" },
210
- { no: 1, name: "FALSE" },
211
- { no: 2, name: "NULL" },
212
- ]);
392
+ /**
393
+ * Describes the enum sass.embedded_protocol.SingletonValue.
394
+ */
395
+ exports.SingletonValueSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 5);
213
396
  /**
214
397
  * An operator used in a calculation value's operation.
215
398
  *
@@ -242,2261 +425,8 @@ var CalculationOperator;
242
425
  */
243
426
  CalculationOperator[CalculationOperator["DIVIDE"] = 3] = "DIVIDE";
244
427
  })(CalculationOperator || (exports.CalculationOperator = CalculationOperator = {}));
245
- // Retrieve enum metadata with: proto3.getEnumType(CalculationOperator)
246
- protobuf_1.proto3.util.setEnumType(CalculationOperator, "sass.embedded_protocol.CalculationOperator", [
247
- { no: 0, name: "PLUS" },
248
- { no: 1, name: "MINUS" },
249
- { no: 2, name: "TIMES" },
250
- { no: 3, name: "DIVIDE" },
251
- ]);
252
- /**
253
- * The wrapper type for all messages sent from the host to the compiler. This
254
- * provides a `oneof` that makes it possible to determine the type of each
255
- * inbound message.
256
- *
257
- * @generated from message sass.embedded_protocol.InboundMessage
258
- */
259
- class InboundMessage extends protobuf_1.Message {
260
- constructor(data) {
261
- super();
262
- /**
263
- * The wrapped message. Mandatory.
264
- *
265
- * @generated from oneof sass.embedded_protocol.InboundMessage.message
266
- */
267
- this.message = { case: undefined };
268
- protobuf_1.proto3.util.initPartial(data, this);
269
- }
270
- static fromBinary(bytes, options) {
271
- return new InboundMessage().fromBinary(bytes, options);
272
- }
273
- static fromJson(jsonValue, options) {
274
- return new InboundMessage().fromJson(jsonValue, options);
275
- }
276
- static fromJsonString(jsonString, options) {
277
- return new InboundMessage().fromJsonString(jsonString, options);
278
- }
279
- static equals(a, b) {
280
- return protobuf_1.proto3.util.equals(InboundMessage, a, b);
281
- }
282
- }
283
- exports.InboundMessage = InboundMessage;
284
- InboundMessage.runtime = protobuf_1.proto3;
285
- InboundMessage.typeName = "sass.embedded_protocol.InboundMessage";
286
- InboundMessage.fields = protobuf_1.proto3.util.newFieldList(() => [
287
- { no: 2, name: "compile_request", kind: "message", T: InboundMessage_CompileRequest, oneof: "message" },
288
- { no: 3, name: "canonicalize_response", kind: "message", T: InboundMessage_CanonicalizeResponse, oneof: "message" },
289
- { no: 4, name: "import_response", kind: "message", T: InboundMessage_ImportResponse, oneof: "message" },
290
- { no: 5, name: "file_import_response", kind: "message", T: InboundMessage_FileImportResponse, oneof: "message" },
291
- { no: 6, name: "function_call_response", kind: "message", T: InboundMessage_FunctionCallResponse, oneof: "message" },
292
- { no: 7, name: "version_request", kind: "message", T: InboundMessage_VersionRequest, oneof: "message" },
293
- ]);
294
- /**
295
- * A request for information about the version of the embedded compiler. The
296
- * host can use this to provide diagnostic information to the user, to check
297
- * which features the compiler supports, or to ensure that it's compatible
298
- * with the same protocol version the compiler supports.
299
- *
300
- * @generated from message sass.embedded_protocol.InboundMessage.VersionRequest
301
- */
302
- class InboundMessage_VersionRequest extends protobuf_1.Message {
303
- constructor(data) {
304
- super();
305
- /**
306
- * This version request's id.
307
- *
308
- * @generated from field: uint32 id = 1;
309
- */
310
- this.id = 0;
311
- protobuf_1.proto3.util.initPartial(data, this);
312
- }
313
- static fromBinary(bytes, options) {
314
- return new InboundMessage_VersionRequest().fromBinary(bytes, options);
315
- }
316
- static fromJson(jsonValue, options) {
317
- return new InboundMessage_VersionRequest().fromJson(jsonValue, options);
318
- }
319
- static fromJsonString(jsonString, options) {
320
- return new InboundMessage_VersionRequest().fromJsonString(jsonString, options);
321
- }
322
- static equals(a, b) {
323
- return protobuf_1.proto3.util.equals(InboundMessage_VersionRequest, a, b);
324
- }
325
- }
326
- exports.InboundMessage_VersionRequest = InboundMessage_VersionRequest;
327
- InboundMessage_VersionRequest.runtime = protobuf_1.proto3;
328
- InboundMessage_VersionRequest.typeName = "sass.embedded_protocol.InboundMessage.VersionRequest";
329
- InboundMessage_VersionRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
330
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
331
- ]);
332
- /**
333
- * A request that compiles an entrypoint to CSS.
334
- *
335
- * @generated from message sass.embedded_protocol.InboundMessage.CompileRequest
336
- */
337
- class InboundMessage_CompileRequest extends protobuf_1.Message {
338
- constructor(data) {
339
- super();
340
- /**
341
- * The input stylesheet to parse. Mandatory.
342
- *
343
- * @generated from oneof sass.embedded_protocol.InboundMessage.CompileRequest.input
344
- */
345
- this.input = { case: undefined };
346
- /**
347
- * How to format the CSS output.
348
- *
349
- * @generated from field: sass.embedded_protocol.OutputStyle style = 4;
350
- */
351
- this.style = OutputStyle.EXPANDED;
352
- /**
353
- * Whether to generate a source map. Note that this will *not* add a source
354
- * map comment to the stylesheet; that's up to the host or its users.
355
- *
356
- * @generated from field: bool source_map = 5;
357
- */
358
- this.sourceMap = false;
359
- /**
360
- * Importers (including load paths on the filesystem) to use when resolving
361
- * imports that can't be resolved relative to the file that contains it. Each
362
- * importer is checked in order until one recognizes the imported URL.
363
- *
364
- * @generated from field: repeated sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
365
- */
366
- this.importers = [];
367
- /**
368
- * Signatures for custom global functions whose behavior is defined by the
369
- * host.
370
- *
371
- * If this is not a valid Sass function signature that could appear after
372
- * `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight:
373
- * 50%)`), or if it conflicts with a function name that's built into the
374
- * Sass language, the compiler must treat the compilation as failed.
375
- *
376
- * Compilers must ensure that pure-Sass functions take precedence over
377
- * custom global functions.
378
- *
379
- * @generated from field: repeated string global_functions = 7;
380
- */
381
- this.globalFunctions = [];
382
- /**
383
- * Whether to use terminal colors in the formatted message of errors and
384
- * logs.
385
- *
386
- * @generated from field: bool alert_color = 8;
387
- */
388
- this.alertColor = false;
389
- /**
390
- * Whether to encode the formatted message of errors and logs in ASCII.
391
- *
392
- * @generated from field: bool alert_ascii = 9;
393
- */
394
- this.alertAscii = false;
395
- /**
396
- * Whether to report all deprecation warnings or only the first few ones.
397
- * If this is `false`, the compiler may choose not to send events for
398
- * repeated deprecation warnings. If this is `true`, the compiler must emit
399
- * an event for every deprecation warning it encounters.
400
- *
401
- * @generated from field: bool verbose = 10;
402
- */
403
- this.verbose = false;
404
- /**
405
- * Whether to omit events for deprecation warnings coming from dependencies
406
- * (files loaded from a different importer than the input).
407
- *
408
- * @generated from field: bool quiet_deps = 11;
409
- */
410
- this.quietDeps = false;
411
- /**
412
- * Whether to include sources in the generated sourcemap
413
- *
414
- * @generated from field: bool source_map_include_sources = 12;
415
- */
416
- this.sourceMapIncludeSources = false;
417
- /**
418
- * Whether to emit a `@charset`/BOM for non-ASCII stylesheets.
419
- *
420
- * @generated from field: bool charset = 13;
421
- */
422
- this.charset = false;
423
- /**
424
- * Whether to silently suppresses all `LogEvent`s.
425
- *
426
- * @generated from field: bool silent = 14;
427
- */
428
- this.silent = false;
429
- /**
430
- * Deprecation IDs or versions to treat as fatal.
431
- *
432
- * @generated from field: repeated string fatal_deprecation = 15;
433
- */
434
- this.fatalDeprecation = [];
435
- /**
436
- * Deprecation IDs to ignore.
437
- *
438
- * @generated from field: repeated string silence_deprecation = 16;
439
- */
440
- this.silenceDeprecation = [];
441
- /**
442
- * Deprecation IDs to opt into early.
443
- *
444
- * @generated from field: repeated string future_deprecation = 17;
445
- */
446
- this.futureDeprecation = [];
447
- protobuf_1.proto3.util.initPartial(data, this);
448
- }
449
- static fromBinary(bytes, options) {
450
- return new InboundMessage_CompileRequest().fromBinary(bytes, options);
451
- }
452
- static fromJson(jsonValue, options) {
453
- return new InboundMessage_CompileRequest().fromJson(jsonValue, options);
454
- }
455
- static fromJsonString(jsonString, options) {
456
- return new InboundMessage_CompileRequest().fromJsonString(jsonString, options);
457
- }
458
- static equals(a, b) {
459
- return protobuf_1.proto3.util.equals(InboundMessage_CompileRequest, a, b);
460
- }
461
- }
462
- exports.InboundMessage_CompileRequest = InboundMessage_CompileRequest;
463
- InboundMessage_CompileRequest.runtime = protobuf_1.proto3;
464
- InboundMessage_CompileRequest.typeName = "sass.embedded_protocol.InboundMessage.CompileRequest";
465
- InboundMessage_CompileRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
466
- { no: 2, name: "string", kind: "message", T: InboundMessage_CompileRequest_StringInput, oneof: "input" },
467
- { no: 3, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "input" },
468
- { no: 4, name: "style", kind: "enum", T: protobuf_1.proto3.getEnumType(OutputStyle) },
469
- { no: 5, name: "source_map", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
470
- { no: 6, name: "importers", kind: "message", T: InboundMessage_CompileRequest_Importer, repeated: true },
471
- { no: 7, name: "global_functions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
472
- { no: 8, name: "alert_color", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
473
- { no: 9, name: "alert_ascii", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
474
- { no: 10, name: "verbose", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
475
- { no: 11, name: "quiet_deps", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
476
- { no: 12, name: "source_map_include_sources", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
477
- { no: 13, name: "charset", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
478
- { no: 14, name: "silent", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
479
- { no: 15, name: "fatal_deprecation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
480
- { no: 16, name: "silence_deprecation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
481
- { no: 17, name: "future_deprecation", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
482
- ]);
483
- /**
484
- * An input stylesheet provided as plain text, rather than loaded from the
485
- * filesystem.
486
- *
487
- * @generated from message sass.embedded_protocol.InboundMessage.CompileRequest.StringInput
488
- */
489
- class InboundMessage_CompileRequest_StringInput extends protobuf_1.Message {
490
- constructor(data) {
491
- super();
492
- /**
493
- * The contents of the stylesheet.
494
- *
495
- * @generated from field: string source = 1;
496
- */
497
- this.source = "";
498
- /**
499
- * The location from which `source` was loaded. If this is empty, it
500
- * indicates that the URL is unknown.
501
- *
502
- * This must be a canonical URL recognized by `importer`, if it's passed.
503
- *
504
- * @generated from field: string url = 2;
505
- */
506
- this.url = "";
507
- /**
508
- * The syntax to use to parse `source`.
509
- *
510
- * @generated from field: sass.embedded_protocol.Syntax syntax = 3;
511
- */
512
- this.syntax = Syntax.SCSS;
513
- protobuf_1.proto3.util.initPartial(data, this);
514
- }
515
- static fromBinary(bytes, options) {
516
- return new InboundMessage_CompileRequest_StringInput().fromBinary(bytes, options);
517
- }
518
- static fromJson(jsonValue, options) {
519
- return new InboundMessage_CompileRequest_StringInput().fromJson(jsonValue, options);
520
- }
521
- static fromJsonString(jsonString, options) {
522
- return new InboundMessage_CompileRequest_StringInput().fromJsonString(jsonString, options);
523
- }
524
- static equals(a, b) {
525
- return protobuf_1.proto3.util.equals(InboundMessage_CompileRequest_StringInput, a, b);
526
- }
527
- }
528
- exports.InboundMessage_CompileRequest_StringInput = InboundMessage_CompileRequest_StringInput;
529
- InboundMessage_CompileRequest_StringInput.runtime = protobuf_1.proto3;
530
- InboundMessage_CompileRequest_StringInput.typeName = "sass.embedded_protocol.InboundMessage.CompileRequest.StringInput";
531
- InboundMessage_CompileRequest_StringInput.fields = protobuf_1.proto3.util.newFieldList(() => [
532
- { no: 1, name: "source", kind: "scalar", T: 9 /* ScalarType.STRING */ },
533
- { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
534
- { no: 3, name: "syntax", kind: "enum", T: protobuf_1.proto3.getEnumType(Syntax) },
535
- { no: 4, name: "importer", kind: "message", T: InboundMessage_CompileRequest_Importer },
536
- ]);
537
- /**
538
- * A wrapper message that represents either a user-defined importer or a
539
- * load path on disk. This must be a wrapper because `oneof` types can't be
540
- * `repeated`.
541
- *
542
- * @generated from message sass.embedded_protocol.InboundMessage.CompileRequest.Importer
543
- */
544
- class InboundMessage_CompileRequest_Importer extends protobuf_1.Message {
545
- constructor(data) {
546
- super();
547
- /**
548
- * The possible types of importer. Mandatory.
549
- *
550
- * @generated from oneof sass.embedded_protocol.InboundMessage.CompileRequest.Importer.importer
551
- */
552
- this.importer = { case: undefined };
553
- /**
554
- * The set of URL schemes that are considered *non-canonical* for this
555
- * importer. This must be empty unless `importer.importer_id` is set.
556
- *
557
- * If any element of this contains a character other than a lowercase
558
- * ASCII letter, an ASCII numeral, U+002B (`+`), U+002D (`-`), or U+002E
559
- * (`.`), the compiler must treat the compilation as failed.
560
- *
561
- * @generated from field: repeated string non_canonical_scheme = 4;
562
- */
563
- this.nonCanonicalScheme = [];
564
- protobuf_1.proto3.util.initPartial(data, this);
565
- }
566
- static fromBinary(bytes, options) {
567
- return new InboundMessage_CompileRequest_Importer().fromBinary(bytes, options);
568
- }
569
- static fromJson(jsonValue, options) {
570
- return new InboundMessage_CompileRequest_Importer().fromJson(jsonValue, options);
571
- }
572
- static fromJsonString(jsonString, options) {
573
- return new InboundMessage_CompileRequest_Importer().fromJsonString(jsonString, options);
574
- }
575
- static equals(a, b) {
576
- return protobuf_1.proto3.util.equals(InboundMessage_CompileRequest_Importer, a, b);
577
- }
578
- }
579
- exports.InboundMessage_CompileRequest_Importer = InboundMessage_CompileRequest_Importer;
580
- InboundMessage_CompileRequest_Importer.runtime = protobuf_1.proto3;
581
- InboundMessage_CompileRequest_Importer.typeName = "sass.embedded_protocol.InboundMessage.CompileRequest.Importer";
582
- InboundMessage_CompileRequest_Importer.fields = protobuf_1.proto3.util.newFieldList(() => [
583
- { no: 1, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "importer" },
584
- { no: 2, name: "importer_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "importer" },
585
- { no: 3, name: "file_importer_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "importer" },
586
- { no: 5, name: "node_package_importer", kind: "message", T: NodePackageImporter, oneof: "importer" },
587
- { no: 4, name: "non_canonical_scheme", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
588
- ]);
589
- /**
590
- * A response indicating the result of canonicalizing an imported URL.
591
- *
592
- * @generated from message sass.embedded_protocol.InboundMessage.CanonicalizeResponse
593
- */
594
- class InboundMessage_CanonicalizeResponse extends protobuf_1.Message {
595
- constructor(data) {
596
- super();
597
- /**
598
- * @generated from field: uint32 id = 1;
599
- */
600
- this.id = 0;
601
- /**
602
- * The result of canonicalization. If this is unset, it indicates that the
603
- * importer either did not recognize the URL, or could not find a stylesheet
604
- * at the location it referred to. Optional.
605
- *
606
- * @generated from oneof sass.embedded_protocol.InboundMessage.CanonicalizeResponse.result
607
- */
608
- this.result = { case: undefined };
609
- /**
610
- * Whether `containing_url` in `CanonicalizeRequest` is unused.
611
- *
612
- * The compiler can cache the `CanonicalizeResponse` if the `containing_url`
613
- * is unused.
614
- *
615
- * The default value is `false`, thus when the value is not set by the host,
616
- * the `CanonicalizeResponse` will not be cached by the compiler.
617
- *
618
- * @generated from field: bool containing_url_unused = 4;
619
- */
620
- this.containingUrlUnused = false;
621
- protobuf_1.proto3.util.initPartial(data, this);
622
- }
623
- static fromBinary(bytes, options) {
624
- return new InboundMessage_CanonicalizeResponse().fromBinary(bytes, options);
625
- }
626
- static fromJson(jsonValue, options) {
627
- return new InboundMessage_CanonicalizeResponse().fromJson(jsonValue, options);
628
- }
629
- static fromJsonString(jsonString, options) {
630
- return new InboundMessage_CanonicalizeResponse().fromJsonString(jsonString, options);
631
- }
632
- static equals(a, b) {
633
- return protobuf_1.proto3.util.equals(InboundMessage_CanonicalizeResponse, a, b);
634
- }
635
- }
636
- exports.InboundMessage_CanonicalizeResponse = InboundMessage_CanonicalizeResponse;
637
- InboundMessage_CanonicalizeResponse.runtime = protobuf_1.proto3;
638
- InboundMessage_CanonicalizeResponse.typeName = "sass.embedded_protocol.InboundMessage.CanonicalizeResponse";
639
- InboundMessage_CanonicalizeResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
640
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
641
- { no: 2, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
642
- { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
643
- { no: 4, name: "containing_url_unused", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
644
- ]);
645
- /**
646
- * A response indicating the result of importing a canonical URL.
647
- *
648
- * @generated from message sass.embedded_protocol.InboundMessage.ImportResponse
649
- */
650
- class InboundMessage_ImportResponse extends protobuf_1.Message {
651
- constructor(data) {
652
- super();
653
- /**
654
- * @generated from field: uint32 id = 1;
655
- */
656
- this.id = 0;
657
- /**
658
- * The result of loading the URL. If this is unset, it indicates that the
659
- * importer either did not recognize the URL, or could not find a stylesheet
660
- * at the location it referred to. Optional.
661
- *
662
- * @generated from oneof sass.embedded_protocol.InboundMessage.ImportResponse.result
663
- */
664
- this.result = { case: undefined };
665
- protobuf_1.proto3.util.initPartial(data, this);
666
- }
667
- static fromBinary(bytes, options) {
668
- return new InboundMessage_ImportResponse().fromBinary(bytes, options);
669
- }
670
- static fromJson(jsonValue, options) {
671
- return new InboundMessage_ImportResponse().fromJson(jsonValue, options);
672
- }
673
- static fromJsonString(jsonString, options) {
674
- return new InboundMessage_ImportResponse().fromJsonString(jsonString, options);
675
- }
676
- static equals(a, b) {
677
- return protobuf_1.proto3.util.equals(InboundMessage_ImportResponse, a, b);
678
- }
679
- }
680
- exports.InboundMessage_ImportResponse = InboundMessage_ImportResponse;
681
- InboundMessage_ImportResponse.runtime = protobuf_1.proto3;
682
- InboundMessage_ImportResponse.typeName = "sass.embedded_protocol.InboundMessage.ImportResponse";
683
- InboundMessage_ImportResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
684
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
685
- { no: 2, name: "success", kind: "message", T: InboundMessage_ImportResponse_ImportSuccess, oneof: "result" },
686
- { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
687
- ]);
688
- /**
689
- * The stylesheet's contents were loaded successfully.
690
- *
691
- * @generated from message sass.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess
692
- */
693
- class InboundMessage_ImportResponse_ImportSuccess extends protobuf_1.Message {
694
- constructor(data) {
695
- super();
696
- /**
697
- * The text of the stylesheet.
698
- *
699
- * @generated from field: string contents = 1;
700
- */
701
- this.contents = "";
702
- /**
703
- * The syntax of `contents`.
704
- *
705
- * @generated from field: sass.embedded_protocol.Syntax syntax = 2;
706
- */
707
- this.syntax = Syntax.SCSS;
708
- protobuf_1.proto3.util.initPartial(data, this);
709
- }
710
- static fromBinary(bytes, options) {
711
- return new InboundMessage_ImportResponse_ImportSuccess().fromBinary(bytes, options);
712
- }
713
- static fromJson(jsonValue, options) {
714
- return new InboundMessage_ImportResponse_ImportSuccess().fromJson(jsonValue, options);
715
- }
716
- static fromJsonString(jsonString, options) {
717
- return new InboundMessage_ImportResponse_ImportSuccess().fromJsonString(jsonString, options);
718
- }
719
- static equals(a, b) {
720
- return protobuf_1.proto3.util.equals(InboundMessage_ImportResponse_ImportSuccess, a, b);
721
- }
722
- }
723
- exports.InboundMessage_ImportResponse_ImportSuccess = InboundMessage_ImportResponse_ImportSuccess;
724
- InboundMessage_ImportResponse_ImportSuccess.runtime = protobuf_1.proto3;
725
- InboundMessage_ImportResponse_ImportSuccess.typeName = "sass.embedded_protocol.InboundMessage.ImportResponse.ImportSuccess";
726
- InboundMessage_ImportResponse_ImportSuccess.fields = protobuf_1.proto3.util.newFieldList(() => [
727
- { no: 1, name: "contents", kind: "scalar", T: 9 /* ScalarType.STRING */ },
728
- { no: 2, name: "syntax", kind: "enum", T: protobuf_1.proto3.getEnumType(Syntax) },
729
- { no: 3, name: "source_map_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
730
- ]);
731
- /**
732
- * A response indicating the result of redirecting a URL to the filesystem.
733
- *
734
- * @generated from message sass.embedded_protocol.InboundMessage.FileImportResponse
735
- */
736
- class InboundMessage_FileImportResponse extends protobuf_1.Message {
737
- constructor(data) {
738
- super();
739
- /**
740
- * @generated from field: uint32 id = 1;
741
- */
742
- this.id = 0;
743
- /**
744
- * The result of loading the URL. An unset result indicates that the
745
- * importer did not recognize the URL and other importers or load paths
746
- * should be tried. Optional.
747
- *
748
- * @generated from oneof sass.embedded_protocol.InboundMessage.FileImportResponse.result
749
- */
750
- this.result = { case: undefined };
751
- /**
752
- * Whether `containing_url` in `FileImportRequest` is unused.
753
- *
754
- * The compiler can cache the `FileImportResponse` if the `containing_url`
755
- * is unused.
756
- *
757
- * The default value is `false`, thus when the value is not set by the host,
758
- * the `FileImportResponse` will not be cached by the compiler.
759
- *
760
- * @generated from field: bool containing_url_unused = 4;
761
- */
762
- this.containingUrlUnused = false;
763
- protobuf_1.proto3.util.initPartial(data, this);
764
- }
765
- static fromBinary(bytes, options) {
766
- return new InboundMessage_FileImportResponse().fromBinary(bytes, options);
767
- }
768
- static fromJson(jsonValue, options) {
769
- return new InboundMessage_FileImportResponse().fromJson(jsonValue, options);
770
- }
771
- static fromJsonString(jsonString, options) {
772
- return new InboundMessage_FileImportResponse().fromJsonString(jsonString, options);
773
- }
774
- static equals(a, b) {
775
- return protobuf_1.proto3.util.equals(InboundMessage_FileImportResponse, a, b);
776
- }
777
- }
778
- exports.InboundMessage_FileImportResponse = InboundMessage_FileImportResponse;
779
- InboundMessage_FileImportResponse.runtime = protobuf_1.proto3;
780
- InboundMessage_FileImportResponse.typeName = "sass.embedded_protocol.InboundMessage.FileImportResponse";
781
- InboundMessage_FileImportResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
782
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
783
- { no: 2, name: "file_url", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
784
- { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
785
- { no: 4, name: "containing_url_unused", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
786
- ]);
787
- /**
788
- * A response indicating the result of calling a custom Sass function defined
789
- * in the host.
790
- *
791
- * @generated from message sass.embedded_protocol.InboundMessage.FunctionCallResponse
792
- */
793
- class InboundMessage_FunctionCallResponse extends protobuf_1.Message {
794
- constructor(data) {
795
- super();
796
- /**
797
- * @generated from field: uint32 id = 1;
798
- */
799
- this.id = 0;
800
- /**
801
- * The result of calling the function. Mandatory.
802
- *
803
- * @generated from oneof sass.embedded_protocol.InboundMessage.FunctionCallResponse.result
804
- */
805
- this.result = { case: undefined };
806
- /**
807
- * The IDs of all `Value.ArgumentList`s in `FunctionCallRequest.arguments`
808
- * whose keywords were accessed. See `Value.ArgumentList` for details. This
809
- * may not include the special value `0` and it may not include multiple
810
- * instances of the same ID.
811
- *
812
- * @generated from field: repeated uint32 accessed_argument_lists = 4;
813
- */
814
- this.accessedArgumentLists = [];
815
- protobuf_1.proto3.util.initPartial(data, this);
816
- }
817
- static fromBinary(bytes, options) {
818
- return new InboundMessage_FunctionCallResponse().fromBinary(bytes, options);
819
- }
820
- static fromJson(jsonValue, options) {
821
- return new InboundMessage_FunctionCallResponse().fromJson(jsonValue, options);
822
- }
823
- static fromJsonString(jsonString, options) {
824
- return new InboundMessage_FunctionCallResponse().fromJsonString(jsonString, options);
825
- }
826
- static equals(a, b) {
827
- return protobuf_1.proto3.util.equals(InboundMessage_FunctionCallResponse, a, b);
828
- }
829
- }
830
- exports.InboundMessage_FunctionCallResponse = InboundMessage_FunctionCallResponse;
831
- InboundMessage_FunctionCallResponse.runtime = protobuf_1.proto3;
832
- InboundMessage_FunctionCallResponse.typeName = "sass.embedded_protocol.InboundMessage.FunctionCallResponse";
833
- InboundMessage_FunctionCallResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
834
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
835
- { no: 2, name: "success", kind: "message", T: Value, oneof: "result" },
836
- { no: 3, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "result" },
837
- { no: 4, name: "accessed_argument_lists", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
838
- ]);
839
- /**
840
- * The wrapper type for all messages sent from the compiler to the host. This
841
- * provides a `oneof` that makes it possible to determine the type of each
842
- * outbound message.
843
- *
844
- * @generated from message sass.embedded_protocol.OutboundMessage
845
- */
846
- class OutboundMessage extends protobuf_1.Message {
847
- constructor(data) {
848
- super();
849
- /**
850
- * The wrapped message. Mandatory.
851
- *
852
- * @generated from oneof sass.embedded_protocol.OutboundMessage.message
853
- */
854
- this.message = { case: undefined };
855
- protobuf_1.proto3.util.initPartial(data, this);
856
- }
857
- static fromBinary(bytes, options) {
858
- return new OutboundMessage().fromBinary(bytes, options);
859
- }
860
- static fromJson(jsonValue, options) {
861
- return new OutboundMessage().fromJson(jsonValue, options);
862
- }
863
- static fromJsonString(jsonString, options) {
864
- return new OutboundMessage().fromJsonString(jsonString, options);
865
- }
866
- static equals(a, b) {
867
- return protobuf_1.proto3.util.equals(OutboundMessage, a, b);
868
- }
869
- }
870
- exports.OutboundMessage = OutboundMessage;
871
- OutboundMessage.runtime = protobuf_1.proto3;
872
- OutboundMessage.typeName = "sass.embedded_protocol.OutboundMessage";
873
- OutboundMessage.fields = protobuf_1.proto3.util.newFieldList(() => [
874
- { no: 1, name: "error", kind: "message", T: ProtocolError, oneof: "message" },
875
- { no: 2, name: "compile_response", kind: "message", T: OutboundMessage_CompileResponse, oneof: "message" },
876
- { no: 3, name: "log_event", kind: "message", T: OutboundMessage_LogEvent, oneof: "message" },
877
- { no: 4, name: "canonicalize_request", kind: "message", T: OutboundMessage_CanonicalizeRequest, oneof: "message" },
878
- { no: 5, name: "import_request", kind: "message", T: OutboundMessage_ImportRequest, oneof: "message" },
879
- { no: 6, name: "file_import_request", kind: "message", T: OutboundMessage_FileImportRequest, oneof: "message" },
880
- { no: 7, name: "function_call_request", kind: "message", T: OutboundMessage_FunctionCallRequest, oneof: "message" },
881
- { no: 8, name: "version_response", kind: "message", T: OutboundMessage_VersionResponse, oneof: "message" },
882
- ]);
883
- /**
884
- * A response that contains the version of the embedded compiler.
885
- *
886
- * @generated from message sass.embedded_protocol.OutboundMessage.VersionResponse
887
- */
888
- class OutboundMessage_VersionResponse extends protobuf_1.Message {
889
- constructor(data) {
890
- super();
891
- /**
892
- * This version request's id.
893
- *
894
- * @generated from field: uint32 id = 5;
895
- */
896
- this.id = 0;
897
- /**
898
- * The version of the embedded protocol, in semver format.
899
- *
900
- * @generated from field: string protocol_version = 1;
901
- */
902
- this.protocolVersion = "";
903
- /**
904
- * The version of the embedded compiler package. This has no guaranteed
905
- * format, although compilers are encouraged to use semver.
906
- *
907
- * @generated from field: string compiler_version = 2;
908
- */
909
- this.compilerVersion = "";
910
- /**
911
- * The version of the Sass implementation that the embedded compiler wraps.
912
- * This has no guaranteed format, although Sass implementations are
913
- * encouraged to use semver.
914
- *
915
- * @generated from field: string implementation_version = 3;
916
- */
917
- this.implementationVersion = "";
918
- /**
919
- * The name of the Sass implementation that the embedded compiler wraps.
920
- *
921
- * @generated from field: string implementation_name = 4;
922
- */
923
- this.implementationName = "";
924
- protobuf_1.proto3.util.initPartial(data, this);
925
- }
926
- static fromBinary(bytes, options) {
927
- return new OutboundMessage_VersionResponse().fromBinary(bytes, options);
928
- }
929
- static fromJson(jsonValue, options) {
930
- return new OutboundMessage_VersionResponse().fromJson(jsonValue, options);
931
- }
932
- static fromJsonString(jsonString, options) {
933
- return new OutboundMessage_VersionResponse().fromJsonString(jsonString, options);
934
- }
935
- static equals(a, b) {
936
- return protobuf_1.proto3.util.equals(OutboundMessage_VersionResponse, a, b);
937
- }
938
- }
939
- exports.OutboundMessage_VersionResponse = OutboundMessage_VersionResponse;
940
- OutboundMessage_VersionResponse.runtime = protobuf_1.proto3;
941
- OutboundMessage_VersionResponse.typeName = "sass.embedded_protocol.OutboundMessage.VersionResponse";
942
- OutboundMessage_VersionResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
943
- { no: 5, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
944
- { no: 1, name: "protocol_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
945
- { no: 2, name: "compiler_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
946
- { no: 3, name: "implementation_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
947
- { no: 4, name: "implementation_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
948
- ]);
949
- /**
950
- * A response that contains the result of a compilation.
951
- *
952
- * @generated from message sass.embedded_protocol.OutboundMessage.CompileResponse
953
- */
954
- class OutboundMessage_CompileResponse extends protobuf_1.Message {
955
- constructor(data) {
956
- super();
957
- /**
958
- * The success or failure result of the compilation. Mandatory.
959
- *
960
- * @generated from oneof sass.embedded_protocol.OutboundMessage.CompileResponse.result
961
- */
962
- this.result = { case: undefined };
963
- /**
964
- * The canonical URLs of all source files loaded during the compilation.
965
- *
966
- * The compiler must ensure that each canonical URL appears only once in
967
- * this list. This must include the entrypoint file's URL if either
968
- * `CompileRequest.input.path` or `CompileRequest.StringInput.url` was
969
- * passed.
970
- *
971
- * @generated from field: repeated string loaded_urls = 4;
972
- */
973
- this.loadedUrls = [];
974
- protobuf_1.proto3.util.initPartial(data, this);
975
- }
976
- static fromBinary(bytes, options) {
977
- return new OutboundMessage_CompileResponse().fromBinary(bytes, options);
978
- }
979
- static fromJson(jsonValue, options) {
980
- return new OutboundMessage_CompileResponse().fromJson(jsonValue, options);
981
- }
982
- static fromJsonString(jsonString, options) {
983
- return new OutboundMessage_CompileResponse().fromJsonString(jsonString, options);
984
- }
985
- static equals(a, b) {
986
- return protobuf_1.proto3.util.equals(OutboundMessage_CompileResponse, a, b);
987
- }
988
- }
989
- exports.OutboundMessage_CompileResponse = OutboundMessage_CompileResponse;
990
- OutboundMessage_CompileResponse.runtime = protobuf_1.proto3;
991
- OutboundMessage_CompileResponse.typeName = "sass.embedded_protocol.OutboundMessage.CompileResponse";
992
- OutboundMessage_CompileResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
993
- { no: 2, name: "success", kind: "message", T: OutboundMessage_CompileResponse_CompileSuccess, oneof: "result" },
994
- { no: 3, name: "failure", kind: "message", T: OutboundMessage_CompileResponse_CompileFailure, oneof: "result" },
995
- { no: 4, name: "loaded_urls", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
996
- ]);
997
- /**
998
- * A message indicating that the Sass file was successfully compiled to CSS.
999
- *
1000
- * @generated from message sass.embedded_protocol.OutboundMessage.CompileResponse.CompileSuccess
1001
- */
1002
- class OutboundMessage_CompileResponse_CompileSuccess extends protobuf_1.Message {
1003
- constructor(data) {
1004
- super();
1005
- /**
1006
- * The compiled CSS.
1007
- *
1008
- * @generated from field: string css = 1;
1009
- */
1010
- this.css = "";
1011
- /**
1012
- * The JSON-encoded source map, or the empty string if
1013
- * `CompileRequest.source_map` was `false`.
1014
- *
1015
- * The compiler must not add a `"file"` key to this source map. It's the
1016
- * host's (or the host's user's) responsibility to determine how the
1017
- * generated CSS can be reached from the source map.
1018
- *
1019
- * @generated from field: string source_map = 2;
1020
- */
1021
- this.sourceMap = "";
1022
- protobuf_1.proto3.util.initPartial(data, this);
1023
- }
1024
- static fromBinary(bytes, options) {
1025
- return new OutboundMessage_CompileResponse_CompileSuccess().fromBinary(bytes, options);
1026
- }
1027
- static fromJson(jsonValue, options) {
1028
- return new OutboundMessage_CompileResponse_CompileSuccess().fromJson(jsonValue, options);
1029
- }
1030
- static fromJsonString(jsonString, options) {
1031
- return new OutboundMessage_CompileResponse_CompileSuccess().fromJsonString(jsonString, options);
1032
- }
1033
- static equals(a, b) {
1034
- return protobuf_1.proto3.util.equals(OutboundMessage_CompileResponse_CompileSuccess, a, b);
1035
- }
1036
- }
1037
- exports.OutboundMessage_CompileResponse_CompileSuccess = OutboundMessage_CompileResponse_CompileSuccess;
1038
- OutboundMessage_CompileResponse_CompileSuccess.runtime = protobuf_1.proto3;
1039
- OutboundMessage_CompileResponse_CompileSuccess.typeName = "sass.embedded_protocol.OutboundMessage.CompileResponse.CompileSuccess";
1040
- OutboundMessage_CompileResponse_CompileSuccess.fields = protobuf_1.proto3.util.newFieldList(() => [
1041
- { no: 1, name: "css", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1042
- { no: 2, name: "source_map", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1043
- ]);
1044
- /**
1045
- * A message indicating that the Sass file could not be successfully
1046
- * compiled to CSS.
1047
- *
1048
- * @generated from message sass.embedded_protocol.OutboundMessage.CompileResponse.CompileFailure
1049
- */
1050
- class OutboundMessage_CompileResponse_CompileFailure extends protobuf_1.Message {
1051
- constructor(data) {
1052
- super();
1053
- /**
1054
- * A message describing the reason for the failure.
1055
- *
1056
- * @generated from field: string message = 1;
1057
- */
1058
- this.message = "";
1059
- /**
1060
- * The stack trace associated with the failure.
1061
- *
1062
- * The empty string indicates that no stack trace is available. Otherwise,
1063
- * the format of this stack trace is not specified and is likely to be
1064
- * inconsistent between implementations.
1065
- *
1066
- * @generated from field: string stack_trace = 3;
1067
- */
1068
- this.stackTrace = "";
1069
- /**
1070
- * A formatted, human-readable string that contains the message, span
1071
- * (if available), and trace (if available). The format of this string is
1072
- * not specified and is likely to be inconsistent between implementations.
1073
- *
1074
- * @generated from field: string formatted = 4;
1075
- */
1076
- this.formatted = "";
1077
- protobuf_1.proto3.util.initPartial(data, this);
1078
- }
1079
- static fromBinary(bytes, options) {
1080
- return new OutboundMessage_CompileResponse_CompileFailure().fromBinary(bytes, options);
1081
- }
1082
- static fromJson(jsonValue, options) {
1083
- return new OutboundMessage_CompileResponse_CompileFailure().fromJson(jsonValue, options);
1084
- }
1085
- static fromJsonString(jsonString, options) {
1086
- return new OutboundMessage_CompileResponse_CompileFailure().fromJsonString(jsonString, options);
1087
- }
1088
- static equals(a, b) {
1089
- return protobuf_1.proto3.util.equals(OutboundMessage_CompileResponse_CompileFailure, a, b);
1090
- }
1091
- }
1092
- exports.OutboundMessage_CompileResponse_CompileFailure = OutboundMessage_CompileResponse_CompileFailure;
1093
- OutboundMessage_CompileResponse_CompileFailure.runtime = protobuf_1.proto3;
1094
- OutboundMessage_CompileResponse_CompileFailure.typeName = "sass.embedded_protocol.OutboundMessage.CompileResponse.CompileFailure";
1095
- OutboundMessage_CompileResponse_CompileFailure.fields = protobuf_1.proto3.util.newFieldList(() => [
1096
- { no: 1, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1097
- { no: 2, name: "span", kind: "message", T: SourceSpan },
1098
- { no: 3, name: "stack_trace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1099
- { no: 4, name: "formatted", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1100
- ]);
1101
- /**
1102
- * An event indicating that a message should be displayed to the user.
1103
- *
1104
- * @generated from message sass.embedded_protocol.OutboundMessage.LogEvent
1105
- */
1106
- class OutboundMessage_LogEvent extends protobuf_1.Message {
1107
- constructor(data) {
1108
- super();
1109
- /**
1110
- * @generated from field: sass.embedded_protocol.LogEventType type = 2;
1111
- */
1112
- this.type = LogEventType.WARNING;
1113
- /**
1114
- * The text of the message.
1115
- *
1116
- * @generated from field: string message = 3;
1117
- */
1118
- this.message = "";
1119
- /**
1120
- * The stack trace associated with this message.
1121
- *
1122
- * The empty string indicates that no stack trace is available. Otherwise,
1123
- * the format of this stack trace is not specified and is likely to be
1124
- * inconsistent between implementations.
1125
- *
1126
- * @generated from field: string stack_trace = 5;
1127
- */
1128
- this.stackTrace = "";
1129
- /**
1130
- * A formatted, human-readable string that contains the message, span (if
1131
- * available), and trace (if available). The format of this string is not
1132
- * specified and is likely to be inconsistent between implementations.
1133
- *
1134
- * @generated from field: string formatted = 6;
1135
- */
1136
- this.formatted = "";
1137
- protobuf_1.proto3.util.initPartial(data, this);
1138
- }
1139
- static fromBinary(bytes, options) {
1140
- return new OutboundMessage_LogEvent().fromBinary(bytes, options);
1141
- }
1142
- static fromJson(jsonValue, options) {
1143
- return new OutboundMessage_LogEvent().fromJson(jsonValue, options);
1144
- }
1145
- static fromJsonString(jsonString, options) {
1146
- return new OutboundMessage_LogEvent().fromJsonString(jsonString, options);
1147
- }
1148
- static equals(a, b) {
1149
- return protobuf_1.proto3.util.equals(OutboundMessage_LogEvent, a, b);
1150
- }
1151
- }
1152
- exports.OutboundMessage_LogEvent = OutboundMessage_LogEvent;
1153
- OutboundMessage_LogEvent.runtime = protobuf_1.proto3;
1154
- OutboundMessage_LogEvent.typeName = "sass.embedded_protocol.OutboundMessage.LogEvent";
1155
- OutboundMessage_LogEvent.fields = protobuf_1.proto3.util.newFieldList(() => [
1156
- { no: 2, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(LogEventType) },
1157
- { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1158
- { no: 4, name: "span", kind: "message", T: SourceSpan, opt: true },
1159
- { no: 5, name: "stack_trace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1160
- { no: 6, name: "formatted", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1161
- { no: 7, name: "deprecation_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1162
- ]);
1163
- /**
1164
- * A request for a custom importer to convert an imported URL to its canonical
1165
- * format.
1166
- *
1167
- * If the URL is not recognized by this importer, or if no stylesheet is found
1168
- * at that URL, `CanonicalizeResponse.result` must be `null`. Otherwise, the
1169
- * importer must return an absolute URL, including a scheme.
1170
- *
1171
- * > The host's documentation should encourage the use of file importers (via
1172
- * > `CompileRequest.Importer.file_importer_id`, `FileImportRequest`, and
1173
- * > `FileImportResponse`) for any importers that simply refer to files on
1174
- * > disk. This will allow Sass to handle the logic of resolving partials,
1175
- * > file extensions, and index files.
1176
- *
1177
- * If Sass has already loaded a stylesheet with the returned canonical URL, it
1178
- * re-uses the existing parse tree. This means that importers must ensure that
1179
- * the same canonical URL always refers to the same stylesheet, *even across
1180
- * different importers*. Importers must also ensure that any canonicalized
1181
- * URLs they return can be passed back to `CanonicalizeRequest` and will be
1182
- * returned unchanged.
1183
- *
1184
- * If this importer's URL format supports file extensions, it should
1185
- * canonicalize them the same way as the default filesystem importer:
1186
- *
1187
- * * The importer should look for stylesheets by adding the prefix `_` to the
1188
- * URL's basename, and by adding the extensions `.sass` and `.scss` if the
1189
- * URL doesn't already have one of those extensions. For example, if the URL
1190
- * was `foo/bar/baz`, the importer would look for:
1191
- *
1192
- * * `foo/bar/baz.sass`
1193
- * * `foo/bar/baz.scss`
1194
- * * `foo/bar/_baz.sass`
1195
- * * `foo/bar/_baz.scss`
1196
- *
1197
- * If the URL was foo/bar/baz.scss, the importer would just look for:
1198
- *
1199
- * * `foo/bar/baz.scss`
1200
- * * `foo/bar/_baz.scss`
1201
- *
1202
- * If the importer finds a stylesheet at more than one of these URLs, it
1203
- * should respond with a `CanonicalizeResponse.result.error` indicating that
1204
- * the import is ambiguous. Note that if the extension is explicitly
1205
- * specified, a stylesheet with another extension may exist without error.
1206
- *
1207
- * * If none of the possible paths is valid, the importer should perform the
1208
- * same resolution on the URL followed by `/index`. In the example above, it
1209
- * would look for:
1210
- *
1211
- * * `foo/bar/baz/_index.sass`
1212
- * * `foo/bar/baz/index.sass`
1213
- * * `foo/bar/baz/_index.scss`
1214
- * * `foo/bar/baz/index.scss`
1215
- *
1216
- * As above, if the importer finds a stylesheet at more than one of these
1217
- * URLs, it should respond with a `CanonicalizeResponse.result.error`
1218
- * indicating that the import is ambiguous.
1219
- *
1220
- * @generated from message sass.embedded_protocol.OutboundMessage.CanonicalizeRequest
1221
- */
1222
- class OutboundMessage_CanonicalizeRequest extends protobuf_1.Message {
1223
- constructor(data) {
1224
- super();
1225
- /**
1226
- * @generated from field: uint32 id = 1;
1227
- */
1228
- this.id = 0;
1229
- /**
1230
- * The unique ID of the importer being invoked. This must match an importer
1231
- * ID passed to this compilation in `CompileRequest.importers` or
1232
- * `CompileRequest.input.string.importer`.
1233
- *
1234
- * @generated from field: uint32 importer_id = 3;
1235
- */
1236
- this.importerId = 0;
1237
- /**
1238
- * The URL of the import to be canonicalized. This may be either absolute or
1239
- * relative.
1240
- *
1241
- * When loading a URL, the compiler must first try resolving that URL
1242
- * relative to the canonical URL of the current file, and canonicalizing the
1243
- * result using the importer that loaded the current file. If this returns
1244
- * `null`, the compiler must then try canonicalizing the original URL with
1245
- * each importer in order until one returns something other than `null`.
1246
- * That is the result of the import.
1247
- *
1248
- * @generated from field: string url = 4;
1249
- */
1250
- this.url = "";
1251
- /**
1252
- * Whether this request comes from an `@import` rule.
1253
- *
1254
- * When evaluating `@import` rules, URLs should canonicalize to an
1255
- * [import-only file] if one exists for the URL being canonicalized.
1256
- * Otherwise, canonicalization should be identical for `@import` and `@use`
1257
- * rules.
1258
- *
1259
- * [import-only file]: https://sass-lang.com/documentation/at-rules/import#import-only-files
1260
- *
1261
- * @generated from field: bool from_import = 5;
1262
- */
1263
- this.fromImport = false;
1264
- protobuf_1.proto3.util.initPartial(data, this);
1265
- }
1266
- static fromBinary(bytes, options) {
1267
- return new OutboundMessage_CanonicalizeRequest().fromBinary(bytes, options);
1268
- }
1269
- static fromJson(jsonValue, options) {
1270
- return new OutboundMessage_CanonicalizeRequest().fromJson(jsonValue, options);
1271
- }
1272
- static fromJsonString(jsonString, options) {
1273
- return new OutboundMessage_CanonicalizeRequest().fromJsonString(jsonString, options);
1274
- }
1275
- static equals(a, b) {
1276
- return protobuf_1.proto3.util.equals(OutboundMessage_CanonicalizeRequest, a, b);
1277
- }
1278
- }
1279
- exports.OutboundMessage_CanonicalizeRequest = OutboundMessage_CanonicalizeRequest;
1280
- OutboundMessage_CanonicalizeRequest.runtime = protobuf_1.proto3;
1281
- OutboundMessage_CanonicalizeRequest.typeName = "sass.embedded_protocol.OutboundMessage.CanonicalizeRequest";
1282
- OutboundMessage_CanonicalizeRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1283
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1284
- { no: 3, name: "importer_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1285
- { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1286
- { no: 5, name: "from_import", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1287
- { no: 6, name: "containing_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1288
- ]);
1289
- /**
1290
- * A request for a custom importer to load the contents of a stylesheet.
1291
- *
1292
- * @generated from message sass.embedded_protocol.OutboundMessage.ImportRequest
1293
- */
1294
- class OutboundMessage_ImportRequest extends protobuf_1.Message {
1295
- constructor(data) {
1296
- super();
1297
- /**
1298
- * @generated from field: uint32 id = 1;
1299
- */
1300
- this.id = 0;
1301
- /**
1302
- * The unique ID of the importer being invoked. This must match an
1303
- * `Importer.importer_id` passed to this compilation in
1304
- * `CompileRequest.importers` or `CompileRequest.input.string.importer`.
1305
- *
1306
- * @generated from field: uint32 importer_id = 3;
1307
- */
1308
- this.importerId = 0;
1309
- /**
1310
- * The canonical URL of the import. This is guaranteed to be a URL returned
1311
- * by a `CanonicalizeRequest` to this importer.
1312
- *
1313
- * @generated from field: string url = 4;
1314
- */
1315
- this.url = "";
1316
- protobuf_1.proto3.util.initPartial(data, this);
1317
- }
1318
- static fromBinary(bytes, options) {
1319
- return new OutboundMessage_ImportRequest().fromBinary(bytes, options);
1320
- }
1321
- static fromJson(jsonValue, options) {
1322
- return new OutboundMessage_ImportRequest().fromJson(jsonValue, options);
1323
- }
1324
- static fromJsonString(jsonString, options) {
1325
- return new OutboundMessage_ImportRequest().fromJsonString(jsonString, options);
1326
- }
1327
- static equals(a, b) {
1328
- return protobuf_1.proto3.util.equals(OutboundMessage_ImportRequest, a, b);
1329
- }
1330
- }
1331
- exports.OutboundMessage_ImportRequest = OutboundMessage_ImportRequest;
1332
- OutboundMessage_ImportRequest.runtime = protobuf_1.proto3;
1333
- OutboundMessage_ImportRequest.typeName = "sass.embedded_protocol.OutboundMessage.ImportRequest";
1334
- OutboundMessage_ImportRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1335
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1336
- { no: 3, name: "importer_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1337
- { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1338
- ]);
1339
- /**
1340
- * A request for a custom filesystem importer to load the contents of a
1341
- * stylesheet.
1342
- *
1343
- * A filesystem importer is represented in the compiler as an [importer]. When
1344
- * the importer is invoked with a string `string`:
1345
- *
1346
- * [importer]: https://github.com/sass/sass/tree/main/spec/modules.md#importer
1347
- *
1348
- * * If `string` is an absolute URL whose scheme is `file`:
1349
- *
1350
- * * Let `url` be string.
1351
- *
1352
- * * Otherwise:
1353
- *
1354
- * * Let `fromImport` be `true` if the importer is being run for an
1355
- * `@import` and `false` otherwise.
1356
- *
1357
- * * Let `containingUrl` be the canonical URL of the [current source file]
1358
- * if it has one, or undefined otherwise.
1359
- *
1360
- *
1361
- * * Let `response` be the result of sending a `FileImportRequest` with
1362
- * `string` as its `url`, `fromImport` as `from_import`, and
1363
- * `containingUrl` as `containing_url`.
1364
- *
1365
- * * If `response.result` is null, return null.
1366
- *
1367
- * * Otherwise, if `response.result.error` is set, throw an error.
1368
- *
1369
- * * Otherwise, let `url` be `response.result.file_url`.
1370
- *
1371
- * * Let `resolved` be the result of [resolving `url`].
1372
- *
1373
- * * If `resolved` is null, return null.
1374
- *
1375
- * * Let `text` be the contents of the file at `resolved`.
1376
- *
1377
- * * Let `syntax` be:
1378
- * * "scss" if `url` ends in `.scss`.
1379
- * * "indented" if `url` ends in `.sass`.
1380
- * * "css" if `url` ends in `.css`.
1381
- *
1382
- * > The algorithm for resolving a `file:` URL guarantees that `url` will have
1383
- * > one of these extensions.
1384
- *
1385
- * * Return `text`, `syntax`, and `resolved`.
1386
- *
1387
- * [current source file]: ../spec.md#current-source-file
1388
- * [resolving `url`]: https://github.com/sass/sass/tree/main/spec/modules.md#resolving-a-file-url
1389
- *
1390
- * @generated from message sass.embedded_protocol.OutboundMessage.FileImportRequest
1391
- */
1392
- class OutboundMessage_FileImportRequest extends protobuf_1.Message {
1393
- constructor(data) {
1394
- super();
1395
- /**
1396
- * @generated from field: uint32 id = 1;
1397
- */
1398
- this.id = 0;
1399
- /**
1400
- * The unique ID of the importer being invoked. This must match an
1401
- * `Importer.file_importer_id` passed to this compilation in
1402
- * `CompileRequest.importers` or `CompileRequest.input.string.importer`.
1403
- *
1404
- * @generated from field: uint32 importer_id = 3;
1405
- */
1406
- this.importerId = 0;
1407
- /**
1408
- * The (non-canonicalized) URL of the import.
1409
- *
1410
- * @generated from field: string url = 4;
1411
- */
1412
- this.url = "";
1413
- /**
1414
- * Whether this request comes from an `@import` rule.
1415
- *
1416
- * When evaluating `@import` rules, filesystem importers should load an
1417
- * [import-only file] if one exists for the URL being canonicalized.
1418
- * Otherwise, canonicalization should be identical for `@import` and `@use`
1419
- * rules.
1420
- *
1421
- * [import-only file]: https://sass-lang.com/documentation/at-rules/import#import-only-files
1422
- *
1423
- * @generated from field: bool from_import = 5;
1424
- */
1425
- this.fromImport = false;
1426
- protobuf_1.proto3.util.initPartial(data, this);
1427
- }
1428
- static fromBinary(bytes, options) {
1429
- return new OutboundMessage_FileImportRequest().fromBinary(bytes, options);
1430
- }
1431
- static fromJson(jsonValue, options) {
1432
- return new OutboundMessage_FileImportRequest().fromJson(jsonValue, options);
1433
- }
1434
- static fromJsonString(jsonString, options) {
1435
- return new OutboundMessage_FileImportRequest().fromJsonString(jsonString, options);
1436
- }
1437
- static equals(a, b) {
1438
- return protobuf_1.proto3.util.equals(OutboundMessage_FileImportRequest, a, b);
1439
- }
1440
- }
1441
- exports.OutboundMessage_FileImportRequest = OutboundMessage_FileImportRequest;
1442
- OutboundMessage_FileImportRequest.runtime = protobuf_1.proto3;
1443
- OutboundMessage_FileImportRequest.typeName = "sass.embedded_protocol.OutboundMessage.FileImportRequest";
1444
- OutboundMessage_FileImportRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1445
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1446
- { no: 3, name: "importer_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1447
- { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1448
- { no: 5, name: "from_import", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1449
- { no: 6, name: "containing_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1450
- ]);
1451
- /**
1452
- * A request to invoke a custom Sass function and return its result.
1453
- *
1454
- * @generated from message sass.embedded_protocol.OutboundMessage.FunctionCallRequest
1455
- */
1456
- class OutboundMessage_FunctionCallRequest extends protobuf_1.Message {
1457
- constructor(data) {
1458
- super();
1459
- /**
1460
- * @generated from field: uint32 id = 1;
1461
- */
1462
- this.id = 0;
1463
- /**
1464
- * An identifier that indicates which function to invoke. Mandatory.
1465
- *
1466
- * @generated from oneof sass.embedded_protocol.OutboundMessage.FunctionCallRequest.identifier
1467
- */
1468
- this.identifier = { case: undefined };
1469
- /**
1470
- * The arguments passed to the function, in the order they appear in the
1471
- * function signature passed to `CompileRequest.global_functions`.
1472
- *
1473
- * The compiler must ensure that a valid number of arguments are passed for
1474
- * the given signature, that default argument values are instantiated
1475
- * appropriately, and that variable argument lists (`$args...`) are passed
1476
- * as `Value.ArgumentList`s.
1477
- *
1478
- * @generated from field: repeated sass.embedded_protocol.Value arguments = 5;
1479
- */
1480
- this.arguments = [];
1481
- protobuf_1.proto3.util.initPartial(data, this);
1482
- }
1483
- static fromBinary(bytes, options) {
1484
- return new OutboundMessage_FunctionCallRequest().fromBinary(bytes, options);
1485
- }
1486
- static fromJson(jsonValue, options) {
1487
- return new OutboundMessage_FunctionCallRequest().fromJson(jsonValue, options);
1488
- }
1489
- static fromJsonString(jsonString, options) {
1490
- return new OutboundMessage_FunctionCallRequest().fromJsonString(jsonString, options);
1491
- }
1492
- static equals(a, b) {
1493
- return protobuf_1.proto3.util.equals(OutboundMessage_FunctionCallRequest, a, b);
1494
- }
1495
- }
1496
- exports.OutboundMessage_FunctionCallRequest = OutboundMessage_FunctionCallRequest;
1497
- OutboundMessage_FunctionCallRequest.runtime = protobuf_1.proto3;
1498
- OutboundMessage_FunctionCallRequest.typeName = "sass.embedded_protocol.OutboundMessage.FunctionCallRequest";
1499
- OutboundMessage_FunctionCallRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
1500
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1501
- { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "identifier" },
1502
- { no: 4, name: "function_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */, oneof: "identifier" },
1503
- { no: 5, name: "arguments", kind: "message", T: Value, repeated: true },
1504
- ]);
1505
- /**
1506
- * An error reported when an endpoint violates the embedded Sass protocol.
1507
- *
1508
- * @generated from message sass.embedded_protocol.ProtocolError
1509
- */
1510
- class ProtocolError extends protobuf_1.Message {
1511
- constructor(data) {
1512
- super();
1513
- /**
1514
- * @generated from field: sass.embedded_protocol.ProtocolErrorType type = 1;
1515
- */
1516
- this.type = ProtocolErrorType.PARSE;
1517
- /**
1518
- * The ID of the request that had an error. This MUST be `4294967295` if the
1519
- * request ID couldn't be determined, or if the error is being reported for a
1520
- * response or an event.
1521
- *
1522
- * @generated from field: uint32 id = 2;
1523
- */
1524
- this.id = 0;
1525
- /**
1526
- * A human-readable message providing more detail about the error.
1527
- *
1528
- * @generated from field: string message = 3;
1529
- */
1530
- this.message = "";
1531
- protobuf_1.proto3.util.initPartial(data, this);
1532
- }
1533
- static fromBinary(bytes, options) {
1534
- return new ProtocolError().fromBinary(bytes, options);
1535
- }
1536
- static fromJson(jsonValue, options) {
1537
- return new ProtocolError().fromJson(jsonValue, options);
1538
- }
1539
- static fromJsonString(jsonString, options) {
1540
- return new ProtocolError().fromJsonString(jsonString, options);
1541
- }
1542
- static equals(a, b) {
1543
- return protobuf_1.proto3.util.equals(ProtocolError, a, b);
1544
- }
1545
- }
1546
- exports.ProtocolError = ProtocolError;
1547
- ProtocolError.runtime = protobuf_1.proto3;
1548
- ProtocolError.typeName = "sass.embedded_protocol.ProtocolError";
1549
- ProtocolError.fields = protobuf_1.proto3.util.newFieldList(() => [
1550
- { no: 1, name: "type", kind: "enum", T: protobuf_1.proto3.getEnumType(ProtocolErrorType) },
1551
- { no: 2, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1552
- { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1553
- ]);
1554
- /**
1555
- * A chunk of a source file.
1556
- *
1557
- * @generated from message sass.embedded_protocol.SourceSpan
1558
- */
1559
- class SourceSpan extends protobuf_1.Message {
1560
- constructor(data) {
1561
- super();
1562
- /**
1563
- * The text covered by the source span. Compilers must guarantee that this is
1564
- * the text between `start.offset` and `end.offset` in the source file
1565
- * referred to by `url`.
1566
- *
1567
- * @generated from field: string text = 1;
1568
- */
1569
- this.text = "";
1570
- /**
1571
- * The URL of the file to which this span refers.
1572
- *
1573
- * This may be empty, indicating that the span refers to a
1574
- * `CompileRequest.StringInput` file that doesn't specify a URL.
1575
- *
1576
- * @generated from field: string url = 4;
1577
- */
1578
- this.url = "";
1579
- /**
1580
- * Additional source text surrounding this span.
1581
- *
1582
- * If this isn't empty, it must contain `text`. Furthermore, `text` must begin
1583
- * at column `start.column` of a line in `context`.
1584
- *
1585
- * This usually contains the full lines the span begins and ends on if the
1586
- * span itself doesn't cover the full lines.
1587
- *
1588
- * @generated from field: string context = 5;
1589
- */
1590
- this.context = "";
1591
- protobuf_1.proto3.util.initPartial(data, this);
1592
- }
1593
- static fromBinary(bytes, options) {
1594
- return new SourceSpan().fromBinary(bytes, options);
1595
- }
1596
- static fromJson(jsonValue, options) {
1597
- return new SourceSpan().fromJson(jsonValue, options);
1598
- }
1599
- static fromJsonString(jsonString, options) {
1600
- return new SourceSpan().fromJsonString(jsonString, options);
1601
- }
1602
- static equals(a, b) {
1603
- return protobuf_1.proto3.util.equals(SourceSpan, a, b);
1604
- }
1605
- }
1606
- exports.SourceSpan = SourceSpan;
1607
- SourceSpan.runtime = protobuf_1.proto3;
1608
- SourceSpan.typeName = "sass.embedded_protocol.SourceSpan";
1609
- SourceSpan.fields = protobuf_1.proto3.util.newFieldList(() => [
1610
- { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1611
- { no: 2, name: "start", kind: "message", T: SourceSpan_SourceLocation },
1612
- { no: 3, name: "end", kind: "message", T: SourceSpan_SourceLocation, opt: true },
1613
- { no: 4, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1614
- { no: 5, name: "context", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1615
- ]);
1616
- /**
1617
- * A single point in a source file.
1618
- *
1619
- * @generated from message sass.embedded_protocol.SourceSpan.SourceLocation
1620
- */
1621
- class SourceSpan_SourceLocation extends protobuf_1.Message {
1622
- constructor(data) {
1623
- super();
1624
- /**
1625
- * The 0-based offset of this location within the source file.
1626
- *
1627
- * @generated from field: uint32 offset = 1;
1628
- */
1629
- this.offset = 0;
1630
- /**
1631
- * The 0-based line number of this location within the source file.
1632
- *
1633
- * @generated from field: uint32 line = 2;
1634
- */
1635
- this.line = 0;
1636
- /**
1637
- * The 0-based column number of this location within its line.
1638
- *
1639
- * @generated from field: uint32 column = 3;
1640
- */
1641
- this.column = 0;
1642
- protobuf_1.proto3.util.initPartial(data, this);
1643
- }
1644
- static fromBinary(bytes, options) {
1645
- return new SourceSpan_SourceLocation().fromBinary(bytes, options);
1646
- }
1647
- static fromJson(jsonValue, options) {
1648
- return new SourceSpan_SourceLocation().fromJson(jsonValue, options);
1649
- }
1650
- static fromJsonString(jsonString, options) {
1651
- return new SourceSpan_SourceLocation().fromJsonString(jsonString, options);
1652
- }
1653
- static equals(a, b) {
1654
- return protobuf_1.proto3.util.equals(SourceSpan_SourceLocation, a, b);
1655
- }
1656
- }
1657
- exports.SourceSpan_SourceLocation = SourceSpan_SourceLocation;
1658
- SourceSpan_SourceLocation.runtime = protobuf_1.proto3;
1659
- SourceSpan_SourceLocation.typeName = "sass.embedded_protocol.SourceSpan.SourceLocation";
1660
- SourceSpan_SourceLocation.fields = protobuf_1.proto3.util.newFieldList(() => [
1661
- { no: 1, name: "offset", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1662
- { no: 2, name: "line", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1663
- { no: 3, name: "column", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1664
- ]);
1665
- /**
1666
- * A SassScript value, passed to and returned by functions.
1667
- *
1668
- * @generated from message sass.embedded_protocol.Value
1669
- */
1670
- class Value extends protobuf_1.Message {
1671
- constructor(data) {
1672
- super();
1673
- /**
1674
- * The value itself. Mandatory.
1675
- *
1676
- * This is wrapped in a message type rather than used directly to reduce
1677
- * repetition, and because oneofs can't be repeated.
1678
- *
1679
- * @generated from oneof sass.embedded_protocol.Value.value
1680
- */
1681
- this.value = { case: undefined };
1682
- protobuf_1.proto3.util.initPartial(data, this);
1683
- }
1684
- static fromBinary(bytes, options) {
1685
- return new Value().fromBinary(bytes, options);
1686
- }
1687
- static fromJson(jsonValue, options) {
1688
- return new Value().fromJson(jsonValue, options);
1689
- }
1690
- static fromJsonString(jsonString, options) {
1691
- return new Value().fromJsonString(jsonString, options);
1692
- }
1693
- static equals(a, b) {
1694
- return protobuf_1.proto3.util.equals(Value, a, b);
1695
- }
1696
- }
1697
- exports.Value = Value;
1698
- Value.runtime = protobuf_1.proto3;
1699
- Value.typeName = "sass.embedded_protocol.Value";
1700
- Value.fields = protobuf_1.proto3.util.newFieldList(() => [
1701
- { no: 1, name: "string", kind: "message", T: Value_String, oneof: "value" },
1702
- { no: 2, name: "number", kind: "message", T: Value_Number, oneof: "value" },
1703
- { no: 3, name: "rgb_color", kind: "message", T: Value_RgbColor, oneof: "value" },
1704
- { no: 4, name: "hsl_color", kind: "message", T: Value_HslColor, oneof: "value" },
1705
- { no: 5, name: "list", kind: "message", T: Value_List, oneof: "value" },
1706
- { no: 6, name: "map", kind: "message", T: Value_Map, oneof: "value" },
1707
- { no: 7, name: "singleton", kind: "enum", T: protobuf_1.proto3.getEnumType(SingletonValue), oneof: "value" },
1708
- { no: 8, name: "compiler_function", kind: "message", T: Value_CompilerFunction, oneof: "value" },
1709
- { no: 9, name: "host_function", kind: "message", T: Value_HostFunction, oneof: "value" },
1710
- { no: 10, name: "argument_list", kind: "message", T: Value_ArgumentList, oneof: "value" },
1711
- { no: 11, name: "hwb_color", kind: "message", T: Value_HwbColor, oneof: "value" },
1712
- { no: 12, name: "calculation", kind: "message", T: Value_Calculation, oneof: "value" },
1713
- { no: 13, name: "compiler_mixin", kind: "message", T: Value_CompilerMixin, oneof: "value" },
1714
- ]);
1715
- /**
1716
- * A SassScript string value.
1717
- *
1718
- * @generated from message sass.embedded_protocol.Value.String
1719
- */
1720
- class Value_String extends protobuf_1.Message {
1721
- constructor(data) {
1722
- super();
1723
- /**
1724
- * The contents of the string.
1725
- *
1726
- * @generated from field: string text = 1;
1727
- */
1728
- this.text = "";
1729
- /**
1730
- * Whether the string is quoted or unquoted.
1731
- *
1732
- * @generated from field: bool quoted = 2;
1733
- */
1734
- this.quoted = false;
1735
- protobuf_1.proto3.util.initPartial(data, this);
1736
- }
1737
- static fromBinary(bytes, options) {
1738
- return new Value_String().fromBinary(bytes, options);
1739
- }
1740
- static fromJson(jsonValue, options) {
1741
- return new Value_String().fromJson(jsonValue, options);
1742
- }
1743
- static fromJsonString(jsonString, options) {
1744
- return new Value_String().fromJsonString(jsonString, options);
1745
- }
1746
- static equals(a, b) {
1747
- return protobuf_1.proto3.util.equals(Value_String, a, b);
1748
- }
1749
- }
1750
- exports.Value_String = Value_String;
1751
- Value_String.runtime = protobuf_1.proto3;
1752
- Value_String.typeName = "sass.embedded_protocol.Value.String";
1753
- Value_String.fields = protobuf_1.proto3.util.newFieldList(() => [
1754
- { no: 1, name: "text", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1755
- { no: 2, name: "quoted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1756
- ]);
1757
- /**
1758
- * A SassScript number value.
1759
- *
1760
- * @generated from message sass.embedded_protocol.Value.Number
1761
- */
1762
- class Value_Number extends protobuf_1.Message {
1763
- constructor(data) {
1764
- super();
1765
- /**
1766
- * The number's numeric value.
1767
- *
1768
- * @generated from field: double value = 1;
1769
- */
1770
- this.value = 0;
1771
- /**
1772
- * The number's numerator units.
1773
- *
1774
- * The endpoint sending the number must ensure that no numerator units are
1775
- * [compatible][] with any denominator units. Such compatible units must be
1776
- * simplified away according to the multiplicative factor between them
1777
- * defined in the CSS Values and Units spec.
1778
- *
1779
- * [compatible]: https://www.w3.org/TR/css-values-4/#compat
1780
- *
1781
- * @generated from field: repeated string numerators = 2;
1782
- */
1783
- this.numerators = [];
1784
- /**
1785
- * The number's denominator units.
1786
- *
1787
- * @generated from field: repeated string denominators = 3;
1788
- */
1789
- this.denominators = [];
1790
- protobuf_1.proto3.util.initPartial(data, this);
1791
- }
1792
- static fromBinary(bytes, options) {
1793
- return new Value_Number().fromBinary(bytes, options);
1794
- }
1795
- static fromJson(jsonValue, options) {
1796
- return new Value_Number().fromJson(jsonValue, options);
1797
- }
1798
- static fromJsonString(jsonString, options) {
1799
- return new Value_Number().fromJsonString(jsonString, options);
1800
- }
1801
- static equals(a, b) {
1802
- return protobuf_1.proto3.util.equals(Value_Number, a, b);
1803
- }
1804
- }
1805
- exports.Value_Number = Value_Number;
1806
- Value_Number.runtime = protobuf_1.proto3;
1807
- Value_Number.typeName = "sass.embedded_protocol.Value.Number";
1808
- Value_Number.fields = protobuf_1.proto3.util.newFieldList(() => [
1809
- { no: 1, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1810
- { no: 2, name: "numerators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1811
- { no: 3, name: "denominators", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1812
- ]);
1813
428
  /**
1814
- * A SassScript color value, represented as red, green, and blue channels.
1815
- *
1816
- * All Sass color values can be equivalently represented as `RgbColor`,
1817
- * `HslColor`, and `HwbColor` messages without loss of color information that
1818
- * can affect CSS rendering. As such, either endpoint may choose to send any
1819
- * color value as any one of these three messages.
1820
- *
1821
- * @generated from message sass.embedded_protocol.Value.RgbColor
1822
- */
1823
- class Value_RgbColor extends protobuf_1.Message {
1824
- constructor(data) {
1825
- super();
1826
- /**
1827
- * The color's red channel. May not be above 255.
1828
- *
1829
- * @generated from field: uint32 red = 1;
1830
- */
1831
- this.red = 0;
1832
- /**
1833
- * The color's green channel. May not be above 255.
1834
- *
1835
- * @generated from field: uint32 green = 2;
1836
- */
1837
- this.green = 0;
1838
- /**
1839
- * The color's blue channel. May not be above 255.
1840
- *
1841
- * @generated from field: uint32 blue = 3;
1842
- */
1843
- this.blue = 0;
1844
- /**
1845
- * The color's alpha channel. Must be between 0 and 1,
1846
- * inclusive.
1847
- *
1848
- * @generated from field: double alpha = 4;
1849
- */
1850
- this.alpha = 0;
1851
- protobuf_1.proto3.util.initPartial(data, this);
1852
- }
1853
- static fromBinary(bytes, options) {
1854
- return new Value_RgbColor().fromBinary(bytes, options);
1855
- }
1856
- static fromJson(jsonValue, options) {
1857
- return new Value_RgbColor().fromJson(jsonValue, options);
1858
- }
1859
- static fromJsonString(jsonString, options) {
1860
- return new Value_RgbColor().fromJsonString(jsonString, options);
1861
- }
1862
- static equals(a, b) {
1863
- return protobuf_1.proto3.util.equals(Value_RgbColor, a, b);
1864
- }
1865
- }
1866
- exports.Value_RgbColor = Value_RgbColor;
1867
- Value_RgbColor.runtime = protobuf_1.proto3;
1868
- Value_RgbColor.typeName = "sass.embedded_protocol.Value.RgbColor";
1869
- Value_RgbColor.fields = protobuf_1.proto3.util.newFieldList(() => [
1870
- { no: 1, name: "red", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1871
- { no: 2, name: "green", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1872
- { no: 3, name: "blue", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1873
- { no: 4, name: "alpha", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1874
- ]);
1875
- /**
1876
- * A SassScript color value, represented as hue, saturation, and lightness channels.
1877
- *
1878
- * @generated from message sass.embedded_protocol.Value.HslColor
1879
- */
1880
- class Value_HslColor extends protobuf_1.Message {
1881
- constructor(data) {
1882
- super();
1883
- /**
1884
- * The color's hue.
1885
- *
1886
- * @generated from field: double hue = 1;
1887
- */
1888
- this.hue = 0;
1889
- /**
1890
- * The color's percent saturation. Must be between 0 and 100,
1891
- * inclusive.
1892
- *
1893
- * @generated from field: double saturation = 2;
1894
- */
1895
- this.saturation = 0;
1896
- /**
1897
- * The color's percent lightness. Must be between 0 and 100,
1898
- * inclusive.
1899
- *
1900
- * @generated from field: double lightness = 3;
1901
- */
1902
- this.lightness = 0;
1903
- /**
1904
- * The color's alpha channel. Must be between 0 and 1,
1905
- * inclusive.
1906
- *
1907
- * @generated from field: double alpha = 4;
1908
- */
1909
- this.alpha = 0;
1910
- protobuf_1.proto3.util.initPartial(data, this);
1911
- }
1912
- static fromBinary(bytes, options) {
1913
- return new Value_HslColor().fromBinary(bytes, options);
1914
- }
1915
- static fromJson(jsonValue, options) {
1916
- return new Value_HslColor().fromJson(jsonValue, options);
1917
- }
1918
- static fromJsonString(jsonString, options) {
1919
- return new Value_HslColor().fromJsonString(jsonString, options);
1920
- }
1921
- static equals(a, b) {
1922
- return protobuf_1.proto3.util.equals(Value_HslColor, a, b);
1923
- }
1924
- }
1925
- exports.Value_HslColor = Value_HslColor;
1926
- Value_HslColor.runtime = protobuf_1.proto3;
1927
- Value_HslColor.typeName = "sass.embedded_protocol.Value.HslColor";
1928
- Value_HslColor.fields = protobuf_1.proto3.util.newFieldList(() => [
1929
- { no: 1, name: "hue", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1930
- { no: 2, name: "saturation", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1931
- { no: 3, name: "lightness", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1932
- { no: 4, name: "alpha", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1933
- ]);
1934
- /**
1935
- * A SassScript color value, represented as hue, whiteness, and blackness
1936
- * channels.
1937
- *
1938
- * @generated from message sass.embedded_protocol.Value.HwbColor
1939
- */
1940
- class Value_HwbColor extends protobuf_1.Message {
1941
- constructor(data) {
1942
- super();
1943
- /**
1944
- * The color's hue.
1945
- *
1946
- * @generated from field: double hue = 1;
1947
- */
1948
- this.hue = 0;
1949
- /**
1950
- * The color's percent whiteness. Must be between 0 and 100,
1951
- * inclusive. The sum of `whiteness` and `blackness` must not exceed 100.
1952
- *
1953
- * @generated from field: double whiteness = 2;
1954
- */
1955
- this.whiteness = 0;
1956
- /**
1957
- * The color's percent blackness. Must be between 0 and 100,
1958
- * inclusive. The sum of `whiteness` and `blackness` must not exceed 100.
1959
- *
1960
- * @generated from field: double blackness = 3;
1961
- */
1962
- this.blackness = 0;
1963
- /**
1964
- * The color's alpha channel. Mandatory. Must be between 0 and 1,
1965
- * inclusive.
1966
- *
1967
- * @generated from field: double alpha = 4;
1968
- */
1969
- this.alpha = 0;
1970
- protobuf_1.proto3.util.initPartial(data, this);
1971
- }
1972
- static fromBinary(bytes, options) {
1973
- return new Value_HwbColor().fromBinary(bytes, options);
1974
- }
1975
- static fromJson(jsonValue, options) {
1976
- return new Value_HwbColor().fromJson(jsonValue, options);
1977
- }
1978
- static fromJsonString(jsonString, options) {
1979
- return new Value_HwbColor().fromJsonString(jsonString, options);
1980
- }
1981
- static equals(a, b) {
1982
- return protobuf_1.proto3.util.equals(Value_HwbColor, a, b);
1983
- }
1984
- }
1985
- exports.Value_HwbColor = Value_HwbColor;
1986
- Value_HwbColor.runtime = protobuf_1.proto3;
1987
- Value_HwbColor.typeName = "sass.embedded_protocol.Value.HwbColor";
1988
- Value_HwbColor.fields = protobuf_1.proto3.util.newFieldList(() => [
1989
- { no: 1, name: "hue", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1990
- { no: 2, name: "whiteness", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1991
- { no: 3, name: "blackness", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1992
- { no: 4, name: "alpha", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1993
- ]);
1994
- /**
1995
- * A SassScript list value.
1996
- *
1997
- * @generated from message sass.embedded_protocol.Value.List
1998
- */
1999
- class Value_List extends protobuf_1.Message {
2000
- constructor(data) {
2001
- super();
2002
- /**
2003
- * The type of separator for this list. Mandatory.
2004
- *
2005
- * @generated from field: sass.embedded_protocol.ListSeparator separator = 1;
2006
- */
2007
- this.separator = ListSeparator.COMMA;
2008
- /**
2009
- * Whether this list has square brackets. Mandatory.
2010
- *
2011
- * @generated from field: bool has_brackets = 2;
2012
- */
2013
- this.hasBrackets = false;
2014
- /**
2015
- * The elements of this list.
2016
- *
2017
- * @generated from field: repeated sass.embedded_protocol.Value contents = 3;
2018
- */
2019
- this.contents = [];
2020
- protobuf_1.proto3.util.initPartial(data, this);
2021
- }
2022
- static fromBinary(bytes, options) {
2023
- return new Value_List().fromBinary(bytes, options);
2024
- }
2025
- static fromJson(jsonValue, options) {
2026
- return new Value_List().fromJson(jsonValue, options);
2027
- }
2028
- static fromJsonString(jsonString, options) {
2029
- return new Value_List().fromJsonString(jsonString, options);
2030
- }
2031
- static equals(a, b) {
2032
- return protobuf_1.proto3.util.equals(Value_List, a, b);
2033
- }
2034
- }
2035
- exports.Value_List = Value_List;
2036
- Value_List.runtime = protobuf_1.proto3;
2037
- Value_List.typeName = "sass.embedded_protocol.Value.List";
2038
- Value_List.fields = protobuf_1.proto3.util.newFieldList(() => [
2039
- { no: 1, name: "separator", kind: "enum", T: protobuf_1.proto3.getEnumType(ListSeparator) },
2040
- { no: 2, name: "has_brackets", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2041
- { no: 3, name: "contents", kind: "message", T: Value, repeated: true },
2042
- ]);
2043
- /**
2044
- * A SassScript map value.
2045
- *
2046
- * @generated from message sass.embedded_protocol.Value.Map
2047
- */
2048
- class Value_Map extends protobuf_1.Message {
2049
- constructor(data) {
2050
- super();
2051
- /**
2052
- * The entries in this map. The sending endpoint must guarantee that no two
2053
- * entries have the same key.
2054
- *
2055
- * @generated from field: repeated sass.embedded_protocol.Value.Map.Entry entries = 1;
2056
- */
2057
- this.entries = [];
2058
- protobuf_1.proto3.util.initPartial(data, this);
2059
- }
2060
- static fromBinary(bytes, options) {
2061
- return new Value_Map().fromBinary(bytes, options);
2062
- }
2063
- static fromJson(jsonValue, options) {
2064
- return new Value_Map().fromJson(jsonValue, options);
2065
- }
2066
- static fromJsonString(jsonString, options) {
2067
- return new Value_Map().fromJsonString(jsonString, options);
2068
- }
2069
- static equals(a, b) {
2070
- return protobuf_1.proto3.util.equals(Value_Map, a, b);
2071
- }
2072
- }
2073
- exports.Value_Map = Value_Map;
2074
- Value_Map.runtime = protobuf_1.proto3;
2075
- Value_Map.typeName = "sass.embedded_protocol.Value.Map";
2076
- Value_Map.fields = protobuf_1.proto3.util.newFieldList(() => [
2077
- { no: 1, name: "entries", kind: "message", T: Value_Map_Entry, repeated: true },
2078
- ]);
2079
- /**
2080
- * A single key/value pair in the map.
2081
- *
2082
- * @generated from message sass.embedded_protocol.Value.Map.Entry
2083
- */
2084
- class Value_Map_Entry extends protobuf_1.Message {
2085
- constructor(data) {
2086
- super();
2087
- protobuf_1.proto3.util.initPartial(data, this);
2088
- }
2089
- static fromBinary(bytes, options) {
2090
- return new Value_Map_Entry().fromBinary(bytes, options);
2091
- }
2092
- static fromJson(jsonValue, options) {
2093
- return new Value_Map_Entry().fromJson(jsonValue, options);
2094
- }
2095
- static fromJsonString(jsonString, options) {
2096
- return new Value_Map_Entry().fromJsonString(jsonString, options);
2097
- }
2098
- static equals(a, b) {
2099
- return protobuf_1.proto3.util.equals(Value_Map_Entry, a, b);
2100
- }
2101
- }
2102
- exports.Value_Map_Entry = Value_Map_Entry;
2103
- Value_Map_Entry.runtime = protobuf_1.proto3;
2104
- Value_Map_Entry.typeName = "sass.embedded_protocol.Value.Map.Entry";
2105
- Value_Map_Entry.fields = protobuf_1.proto3.util.newFieldList(() => [
2106
- { no: 1, name: "key", kind: "message", T: Value },
2107
- { no: 2, name: "value", kind: "message", T: Value },
2108
- ]);
2109
- /**
2110
- * A first-class function defined in the compiler. New `CompilerFunction`s may
2111
- * only be created by the compiler, but the host may pass `CompilerFunction`s
2112
- * back to the compiler as long as their IDs match IDs of functions received
2113
- * by the host during that same compilation.
2114
- *
2115
- * @generated from message sass.embedded_protocol.Value.CompilerFunction
2116
- */
2117
- class Value_CompilerFunction extends protobuf_1.Message {
2118
- constructor(data) {
2119
- super();
2120
- /**
2121
- * A unique ID for this function. The compiler is responsible for generating
2122
- * this ID and ensuring it's unique across all functions passed to the host
2123
- * for this compilation. Mandatory.
2124
- *
2125
- * @generated from field: uint32 id = 1;
2126
- */
2127
- this.id = 0;
2128
- protobuf_1.proto3.util.initPartial(data, this);
2129
- }
2130
- static fromBinary(bytes, options) {
2131
- return new Value_CompilerFunction().fromBinary(bytes, options);
2132
- }
2133
- static fromJson(jsonValue, options) {
2134
- return new Value_CompilerFunction().fromJson(jsonValue, options);
2135
- }
2136
- static fromJsonString(jsonString, options) {
2137
- return new Value_CompilerFunction().fromJsonString(jsonString, options);
2138
- }
2139
- static equals(a, b) {
2140
- return protobuf_1.proto3.util.equals(Value_CompilerFunction, a, b);
2141
- }
2142
- }
2143
- exports.Value_CompilerFunction = Value_CompilerFunction;
2144
- Value_CompilerFunction.runtime = protobuf_1.proto3;
2145
- Value_CompilerFunction.typeName = "sass.embedded_protocol.Value.CompilerFunction";
2146
- Value_CompilerFunction.fields = protobuf_1.proto3.util.newFieldList(() => [
2147
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2148
- ]);
2149
- /**
2150
- * An anonymous custom function defined in the host. New `HostFunction`s may
2151
- * only be created by the host, and `HostFunction`s may *never* be passed from
2152
- * the compiler to the host. The compiler must instead pass a
2153
- * `CompilerFunction` that wraps the `HostFunction`.
2154
- *
2155
- * @generated from message sass.embedded_protocol.Value.HostFunction
2156
- */
2157
- class Value_HostFunction extends protobuf_1.Message {
2158
- constructor(data) {
2159
- super();
2160
- /**
2161
- * A unique ID for this function. The compiler must pass this ID as
2162
- * `OutboundRequest.FunctionCallRequest.id` when invoking this function. The
2163
- * host is responsible for generating this ID and ensuring it's unique
2164
- * across all functions for *all* compilations. Mandatory.
2165
- *
2166
- * @generated from field: uint32 id = 1;
2167
- */
2168
- this.id = 0;
2169
- /**
2170
- * The signature for this function. Mandatory.
2171
- *
2172
- * If this isn't a valid Sass function signature that could appear after
2173
- * `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight:
2174
- * 50%)`), the compiler must treat it as though the function that returned
2175
- * this `HostFunction` threw an error.
2176
- *
2177
- * > This ensures that the host doesn't need to be able to correctly parse
2178
- * > the entire function declaration syntax.
2179
- *
2180
- * The compiler may not invoke the function by its name, since it's not
2181
- * guaranteed to be globally unique. However, it may use the name to
2182
- * generate the string representation of this function.
2183
- *
2184
- * @generated from field: string signature = 2;
2185
- */
2186
- this.signature = "";
2187
- protobuf_1.proto3.util.initPartial(data, this);
2188
- }
2189
- static fromBinary(bytes, options) {
2190
- return new Value_HostFunction().fromBinary(bytes, options);
2191
- }
2192
- static fromJson(jsonValue, options) {
2193
- return new Value_HostFunction().fromJson(jsonValue, options);
2194
- }
2195
- static fromJsonString(jsonString, options) {
2196
- return new Value_HostFunction().fromJsonString(jsonString, options);
2197
- }
2198
- static equals(a, b) {
2199
- return protobuf_1.proto3.util.equals(Value_HostFunction, a, b);
2200
- }
2201
- }
2202
- exports.Value_HostFunction = Value_HostFunction;
2203
- Value_HostFunction.runtime = protobuf_1.proto3;
2204
- Value_HostFunction.typeName = "sass.embedded_protocol.Value.HostFunction";
2205
- Value_HostFunction.fields = protobuf_1.proto3.util.newFieldList(() => [
2206
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2207
- { no: 2, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2208
- ]);
2209
- /**
2210
- * A first-class mixin defined in the compiler. New `CompilerMixin`s may
2211
- * only be created by the compiler, but the host may pass `CompilerMixin`s
2212
- * back to the compiler as long as their IDs match IDs of mixins received
2213
- * by the host during that same compilation.
2214
- *
2215
- * @generated from message sass.embedded_protocol.Value.CompilerMixin
2216
- */
2217
- class Value_CompilerMixin extends protobuf_1.Message {
2218
- constructor(data) {
2219
- super();
2220
- /**
2221
- * A unique ID for this mixin. The compiler is responsible for generating
2222
- * this ID and ensuring it's unique across all mixins passed to the host
2223
- * for this compilation. Mandatory.
2224
- *
2225
- * @generated from field: uint32 id = 1;
2226
- */
2227
- this.id = 0;
2228
- protobuf_1.proto3.util.initPartial(data, this);
2229
- }
2230
- static fromBinary(bytes, options) {
2231
- return new Value_CompilerMixin().fromBinary(bytes, options);
2232
- }
2233
- static fromJson(jsonValue, options) {
2234
- return new Value_CompilerMixin().fromJson(jsonValue, options);
2235
- }
2236
- static fromJsonString(jsonString, options) {
2237
- return new Value_CompilerMixin().fromJsonString(jsonString, options);
2238
- }
2239
- static equals(a, b) {
2240
- return protobuf_1.proto3.util.equals(Value_CompilerMixin, a, b);
2241
- }
2242
- }
2243
- exports.Value_CompilerMixin = Value_CompilerMixin;
2244
- Value_CompilerMixin.runtime = protobuf_1.proto3;
2245
- Value_CompilerMixin.typeName = "sass.embedded_protocol.Value.CompilerMixin";
2246
- Value_CompilerMixin.fields = protobuf_1.proto3.util.newFieldList(() => [
2247
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2248
- ]);
2249
- /**
2250
- * A SassScript argument list value. This represents rest arguments passed to
2251
- * a function's `$arg...` parameter. Unlike a normal `List`, an argument list
2252
- * has an associated keywords map which tracks keyword arguments passed in
2253
- * alongside positional arguments.
2254
- *
2255
- * For each `ArgumentList` in `FunctionCallRequest.arguments` (including those
2256
- * nested within `List`s and `Map`s), the host must track whether its keyword
2257
- * arguments were accessed by the user. If they were, it must add its
2258
- * `ArgumentList.id` to `FunctionCallResponse.accessed_argument_lists`.
2259
- *
2260
- * The compiler must treat every `ArgumentList` whose `ArgumentList.id`
2261
- * appears in `FunctionCallResponse.accessed_argument_lists` as though it had
2262
- * been passed to `meta.keywords()`.
2263
- *
2264
- * @generated from message sass.embedded_protocol.Value.ArgumentList
2265
- */
2266
- class Value_ArgumentList extends protobuf_1.Message {
2267
- constructor(data) {
2268
- super();
2269
- /**
2270
- * An ID for this argument list that's unique within the scope of a given
2271
- * `FunctionCallRequest`.
2272
- *
2273
- * The special ID `0` is reserved for `ArgumentList`s created by the host,
2274
- * and may not be used by the compiler. These `ArgumentList`s do not need to
2275
- * have their IDs added to `FunctionCallResponse.accessed_argument_lists`,
2276
- * and the compiler should treat them as though their keywords have always
2277
- * been accessed.
2278
- *
2279
- * @generated from field: uint32 id = 1;
2280
- */
2281
- this.id = 0;
2282
- /**
2283
- * The type of separator for this list. The compiler must set this, but
2284
- * the host may omit it for `ArgumentList`s that were originally created by
2285
- * the compiler (that is, those with a non-0 ID).
2286
- *
2287
- * @generated from field: sass.embedded_protocol.ListSeparator separator = 2;
2288
- */
2289
- this.separator = ListSeparator.COMMA;
2290
- /**
2291
- * The argument list's positional contents. The compiler must set this, but
2292
- * the host may omit it for `ArgumentList`s that were originally created by
2293
- * the compiler (that is, those with a non-0 ID).
2294
- *
2295
- * @generated from field: repeated sass.embedded_protocol.Value contents = 3;
2296
- */
2297
- this.contents = [];
2298
- /**
2299
- * The argument list's keywords. The compiler must set this, but the host
2300
- * may omit it for `ArgumentList`s that were originally created by the
2301
- * compiler (that is, those with a non-0 ID).
2302
- *
2303
- * @generated from field: map<string, sass.embedded_protocol.Value> keywords = 4;
2304
- */
2305
- this.keywords = {};
2306
- protobuf_1.proto3.util.initPartial(data, this);
2307
- }
2308
- static fromBinary(bytes, options) {
2309
- return new Value_ArgumentList().fromBinary(bytes, options);
2310
- }
2311
- static fromJson(jsonValue, options) {
2312
- return new Value_ArgumentList().fromJson(jsonValue, options);
2313
- }
2314
- static fromJsonString(jsonString, options) {
2315
- return new Value_ArgumentList().fromJsonString(jsonString, options);
2316
- }
2317
- static equals(a, b) {
2318
- return protobuf_1.proto3.util.equals(Value_ArgumentList, a, b);
2319
- }
2320
- }
2321
- exports.Value_ArgumentList = Value_ArgumentList;
2322
- Value_ArgumentList.runtime = protobuf_1.proto3;
2323
- Value_ArgumentList.typeName = "sass.embedded_protocol.Value.ArgumentList";
2324
- Value_ArgumentList.fields = protobuf_1.proto3.util.newFieldList(() => [
2325
- { no: 1, name: "id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2326
- { no: 2, name: "separator", kind: "enum", T: protobuf_1.proto3.getEnumType(ListSeparator) },
2327
- { no: 3, name: "contents", kind: "message", T: Value, repeated: true },
2328
- { no: 4, name: "keywords", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: Value } },
2329
- ]);
2330
- /**
2331
- * A SassScript calculation value. The compiler must send fully [simplified]
2332
- * calculations, meaning that simplifying it again will produce the same
2333
- * calculation. The host is not required to simplify calculations.
2334
- *
2335
- * [simplified]: https://github.com/sass/sass/tree/main/spec/types/calculation.md#simplifying-a-calculation
2336
- *
2337
- * The compiler must simplify any calculations it receives from the host
2338
- * before returning them from a function. If this simplification produces an
2339
- * error, it should be treated as though the function call threw that error.
2340
- * It should *not* be treated as a protocol error.
2341
- *
2342
- * @generated from message sass.embedded_protocol.Value.Calculation
2343
- */
2344
- class Value_Calculation extends protobuf_1.Message {
2345
- constructor(data) {
2346
- super();
2347
- /**
2348
- * The calculation's name. Mandatory. The host may only set this to names
2349
- * that the Sass specification uses to create calculations.
2350
- *
2351
- * @generated from field: string name = 1;
2352
- */
2353
- this.name = "";
2354
- /**
2355
- * The calculation's arguments. Mandatory. The host must use exactly the
2356
- * number of arguments used by the Sass specification for calculations with
2357
- * the given `name`.
2358
- *
2359
- * @generated from field: repeated sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
2360
- */
2361
- this.arguments = [];
2362
- protobuf_1.proto3.util.initPartial(data, this);
2363
- }
2364
- static fromBinary(bytes, options) {
2365
- return new Value_Calculation().fromBinary(bytes, options);
2366
- }
2367
- static fromJson(jsonValue, options) {
2368
- return new Value_Calculation().fromJson(jsonValue, options);
2369
- }
2370
- static fromJsonString(jsonString, options) {
2371
- return new Value_Calculation().fromJsonString(jsonString, options);
2372
- }
2373
- static equals(a, b) {
2374
- return protobuf_1.proto3.util.equals(Value_Calculation, a, b);
2375
- }
2376
- }
2377
- exports.Value_Calculation = Value_Calculation;
2378
- Value_Calculation.runtime = protobuf_1.proto3;
2379
- Value_Calculation.typeName = "sass.embedded_protocol.Value.Calculation";
2380
- Value_Calculation.fields = protobuf_1.proto3.util.newFieldList(() => [
2381
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2382
- { no: 2, name: "arguments", kind: "message", T: Value_Calculation_CalculationValue, repeated: true },
2383
- ]);
2384
- /**
2385
- * A single component of a calculation expression.
2386
- *
2387
- * @generated from message sass.embedded_protocol.Value.Calculation.CalculationValue
2388
- */
2389
- class Value_Calculation_CalculationValue extends protobuf_1.Message {
2390
- constructor(data) {
2391
- super();
2392
- /**
2393
- * The value of the component. Mandatory.
2394
- *
2395
- * @generated from oneof sass.embedded_protocol.Value.Calculation.CalculationValue.value
2396
- */
2397
- this.value = { case: undefined };
2398
- protobuf_1.proto3.util.initPartial(data, this);
2399
- }
2400
- static fromBinary(bytes, options) {
2401
- return new Value_Calculation_CalculationValue().fromBinary(bytes, options);
2402
- }
2403
- static fromJson(jsonValue, options) {
2404
- return new Value_Calculation_CalculationValue().fromJson(jsonValue, options);
2405
- }
2406
- static fromJsonString(jsonString, options) {
2407
- return new Value_Calculation_CalculationValue().fromJsonString(jsonString, options);
2408
- }
2409
- static equals(a, b) {
2410
- return protobuf_1.proto3.util.equals(Value_Calculation_CalculationValue, a, b);
2411
- }
2412
- }
2413
- exports.Value_Calculation_CalculationValue = Value_Calculation_CalculationValue;
2414
- Value_Calculation_CalculationValue.runtime = protobuf_1.proto3;
2415
- Value_Calculation_CalculationValue.typeName = "sass.embedded_protocol.Value.Calculation.CalculationValue";
2416
- Value_Calculation_CalculationValue.fields = protobuf_1.proto3.util.newFieldList(() => [
2417
- { no: 1, name: "number", kind: "message", T: Value_Number, oneof: "value" },
2418
- { no: 2, name: "string", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
2419
- { no: 3, name: "interpolation", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "value" },
2420
- { no: 4, name: "operation", kind: "message", T: Value_Calculation_CalculationOperation, oneof: "value" },
2421
- { no: 5, name: "calculation", kind: "message", T: Value_Calculation, oneof: "value" },
2422
- ]);
2423
- /**
2424
- * A binary operation that appears in a calculation.
2425
- *
2426
- * @generated from message sass.embedded_protocol.Value.Calculation.CalculationOperation
2427
- */
2428
- class Value_Calculation_CalculationOperation extends protobuf_1.Message {
2429
- constructor(data) {
2430
- super();
2431
- /**
2432
- * The operator to perform.
2433
- *
2434
- * @generated from field: sass.embedded_protocol.CalculationOperator operator = 1;
2435
- */
2436
- this.operator = CalculationOperator.PLUS;
2437
- protobuf_1.proto3.util.initPartial(data, this);
2438
- }
2439
- static fromBinary(bytes, options) {
2440
- return new Value_Calculation_CalculationOperation().fromBinary(bytes, options);
2441
- }
2442
- static fromJson(jsonValue, options) {
2443
- return new Value_Calculation_CalculationOperation().fromJson(jsonValue, options);
2444
- }
2445
- static fromJsonString(jsonString, options) {
2446
- return new Value_Calculation_CalculationOperation().fromJsonString(jsonString, options);
2447
- }
2448
- static equals(a, b) {
2449
- return protobuf_1.proto3.util.equals(Value_Calculation_CalculationOperation, a, b);
2450
- }
2451
- }
2452
- exports.Value_Calculation_CalculationOperation = Value_Calculation_CalculationOperation;
2453
- Value_Calculation_CalculationOperation.runtime = protobuf_1.proto3;
2454
- Value_Calculation_CalculationOperation.typeName = "sass.embedded_protocol.Value.Calculation.CalculationOperation";
2455
- Value_Calculation_CalculationOperation.fields = protobuf_1.proto3.util.newFieldList(() => [
2456
- { no: 1, name: "operator", kind: "enum", T: protobuf_1.proto3.getEnumType(CalculationOperator) },
2457
- { no: 2, name: "left", kind: "message", T: Value_Calculation_CalculationValue },
2458
- { no: 3, name: "right", kind: "message", T: Value_Calculation_CalculationValue },
2459
- ]);
2460
- /**
2461
- * The built-in Node.js Package Importer, which is a Package Importer that
2462
- * resolves using the standards and conventions of the Node.js ecosystem. It
2463
- * enables a `pkg:` URL scheme for usage with `@use` that directs an
2464
- * implementation to resolve a URL within a dependency.
2465
- *
2466
- * @generated from message sass.embedded_protocol.NodePackageImporter
429
+ * Describes the enum sass.embedded_protocol.CalculationOperator.
2467
430
  */
2468
- class NodePackageImporter extends protobuf_1.Message {
2469
- constructor(data) {
2470
- super();
2471
- /**
2472
- * The absolute path to associate with the Node Package Importer, with
2473
- * semantics identical to the [entryPointDirectory option] in the JavaScript
2474
- * API.
2475
- *
2476
- * [entryPointDirectory option]: https://sass-lang.com/documentation/js-api/classes/NodePackageImporter.html#constructor
2477
- *
2478
- * @generated from field: string entry_point_directory = 1;
2479
- */
2480
- this.entryPointDirectory = "";
2481
- protobuf_1.proto3.util.initPartial(data, this);
2482
- }
2483
- static fromBinary(bytes, options) {
2484
- return new NodePackageImporter().fromBinary(bytes, options);
2485
- }
2486
- static fromJson(jsonValue, options) {
2487
- return new NodePackageImporter().fromJson(jsonValue, options);
2488
- }
2489
- static fromJsonString(jsonString, options) {
2490
- return new NodePackageImporter().fromJsonString(jsonString, options);
2491
- }
2492
- static equals(a, b) {
2493
- return protobuf_1.proto3.util.equals(NodePackageImporter, a, b);
2494
- }
2495
- }
2496
- exports.NodePackageImporter = NodePackageImporter;
2497
- NodePackageImporter.runtime = protobuf_1.proto3;
2498
- NodePackageImporter.typeName = "sass.embedded_protocol.NodePackageImporter";
2499
- NodePackageImporter.fields = protobuf_1.proto3.util.newFieldList(() => [
2500
- { no: 1, name: "entry_point_directory", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2501
- ]);
431
+ exports.CalculationOperatorSchema = (0, codegenv1_1.enumDesc)(exports.file_embedded_sass, 6);
2502
432
  //# sourceMappingURL=embedded_sass_pb.js.map