@nstudio/nativescript-compiler 9.2.0-alpha.16 → 9.2.0-alpha.18
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.
- package/README.md +3 -0
- package/dist/kit/kit-index.js +9 -0
- package/dist/kotlin/access.js +14 -15
- package/dist/kotlin/arguments.js +2 -2
- package/dist/kotlin/assignment.js +22 -13
- package/dist/kotlin/builtins.js +67 -0
- package/dist/kotlin/calls.js +3 -2
- package/dist/kotlin/class-declaration.js +16 -1
- package/dist/kotlin/class-methods.js +2 -2
- package/dist/kotlin/components.js +2 -7
- package/dist/kotlin/core-api.js +3 -22
- package/dist/kotlin/declarations.js +86 -9
- package/dist/kotlin/expression-statements.js +13 -1
- package/dist/kotlin/functions.js +2 -4
- package/dist/kotlin/global-calls.js +1 -4
- package/dist/kotlin/literals.js +3 -10
- package/dist/kotlin/names.js +6 -4
- package/dist/kotlin/native/api.js +1 -1
- package/dist/kotlin/native/classfiles.js +2 -13
- package/dist/kotlin/operators.js +36 -30
- package/dist/kotlin/optional-chains.js +3 -10
- package/dist/kotlin/overrides.js +5 -17
- package/dist/kotlin/placement.js +1 -12
- package/dist/kotlin/state-backend.js +6 -2
- package/dist/kotlin/statements.js +1 -13
- package/dist/kotlin/translator.js +3 -11
- package/dist/kotlin/type-tests.js +1 -1
- package/dist/kotlin/types.js +6 -23
- package/dist/program/core-facts.js +9 -0
- package/dist/semantics/classes.js +15 -0
- package/dist/semantics/facts.js +38 -2
- package/dist/semantics/lang.js +29 -0
- package/dist/semantics/lower.js +144 -0
- package/dist/semantics/lowering-methods.js +120 -3
- package/dist/semantics/marks.js +30 -0
- package/dist/semantics/placement.js +9 -3
- package/dist/semantics/refusals.js +12 -11
- package/dist/semantics/signals.js +11 -0
- package/dist/semantics/states/missing.js +7 -0
- package/dist/semantics/tdz.js +142 -8
- package/dist/semantics/throws.js +1 -1
- package/dist/semantics/translator-methods.js +1 -1
- package/dist/swift/access.js +13 -17
- package/dist/swift/assignment.js +30 -16
- package/dist/swift/calls.js +13 -5
- package/dist/swift/classes.js +22 -10
- package/dist/swift/components.js +3 -7
- package/dist/swift/control-flow.js +1 -1
- package/dist/swift/conversion.js +5 -2
- package/dist/swift/core-api.js +11 -31
- package/dist/swift/declarations.js +1 -6
- package/dist/swift/expression-statements.js +7 -0
- package/dist/swift/expressions.js +6 -2
- package/dist/swift/from-any.js +1 -1
- package/dist/swift/functions.js +5 -6
- package/dist/swift/global-calls.js +1 -5
- package/dist/swift/lenient.js +0 -7
- package/dist/swift/literals.js +8 -3
- package/dist/swift/method-values.js +1 -19
- package/dist/swift/modules.js +5 -3
- package/dist/swift/names.js +3 -12
- package/dist/swift/native/api.js +3 -1
- package/dist/swift/native/calls.js +1 -1
- package/dist/swift/native/dispatch.js +2 -8
- package/dist/swift/object-classes.js +84 -1
- package/dist/swift/operators.js +37 -34
- package/dist/swift/optional-chains.js +1 -8
- package/dist/swift/parameters.js +0 -4
- package/dist/swift/placement.js +5 -15
- package/dist/swift/results.js +0 -4
- package/dist/swift/state-backend.js +3 -2
- package/dist/swift/statements.js +1 -13
- package/dist/swift/static-calls.js +2 -3
- package/dist/swift/syntax.js +9 -5
- package/dist/swift/translator.js +1 -11
- package/dist/swift/type-facts.js +3 -3
- package/dist/swift/types.js +3 -3
- package/dist/targets/ios/build.js +1 -1
- package/dist/types/adapter-api.d.ts +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/__Modules.kt +1 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/__Objects.kt +525 -99
- package/kit-android/generated/kotlin/org/nativescript/kit/accessibility_accessibility_common.kt +2 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/application_application_common.kt +29 -6
- package/kit-android/generated/kotlin/org/nativescript/kit/application_helpers_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/color_color_utils.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/css_mediaquery_index.kt +49 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_array_index.kt +0 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/data_observable_index.kt +0 -16
- package/kit-android/generated/kotlin/org/nativescript/kit/data_virtual_array_index.kt +6 -4
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_index.kt +19 -7
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_http_request_internal_common.kt +14 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/http_http_request_internal_index.kt +19 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/matrix_index.kt +17 -29
- package/kit-android/generated/kotlin/org/nativescript/kit/media_query_list_index.kt +144 -22
- package/kit-android/generated/kotlin/org/nativescript/kit/npm_css_what_src_parse.kt +8 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/org.nativescript.NativeScriptLifecycleCallbacks.kt +2 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_builder_index.kt +0 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_bindable_expression_parser.kt +6 -10
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_properties_index.kt +531 -8
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_view_base_index.kt +0 -9
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_core_weak_event_listener_index.kt +3 -3
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_index.kt +19 -0
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_properties.kt +5 -2
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_styling_style_scope.kt +232 -174
- package/kit-android/generated/kotlin/org/nativescript/kit/ui_text_view_text_view_common.kt +1 -1
- package/kit-android/generated/kotlin/org/nativescript/kit/utils_android_runtime_version.kt +75 -0
- package/kit-android/generated/manifest.json +21 -18
- package/kit-android/generated/source-lines.json +1 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Array.kt +547 -51
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Intl.kt +1 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/JSON.kt +52 -6
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Language.kt +33 -0
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Prototypes.kt +9 -1
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Strings.kt +32 -18
- package/kit-android/src/main/kotlin/org/nativescript/kit/runtime/Values.kt +137 -28
- package/kit-apple/Overlays/xml-free/Core/ui.builder.index.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity1.swift +14 -10
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity2.swift +3 -9
- package/kit-apple/Sources/NativeScriptKit/Core/FunctionCells.Arity3Plus.swift +20 -21
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_index_section_view_ios_android.swift +5 -7
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_ios_android_.swift +130 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_eventName_object_oldIndex_newIndex.swift +2 -4
- package/kit-apple/Sources/NativeScriptKit/Core/Object_specified_substituted_reads.swift +115 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/Object_substituted_values_reads_.swift +113 -0
- package/kit-apple/Sources/NativeScriptKit/Core/application.application-common.swift +348 -330
- package/kit-apple/Sources/NativeScriptKit/Core/application.application.ios.swift +358 -359
- package/kit-apple/Sources/NativeScriptKit/Core/application.helpers-common.swift +47 -29
- package/kit-apple/Sources/NativeScriptKit/Core/connectivity.index.ios.swift +3 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css-mediaquery.index.swift +95 -53
- package/kit-apple/Sources/NativeScriptKit/Core/css.CSS3Parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/css.parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/data.observable-array.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/file-system.file-system-access.ios.swift +52 -43
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.http-request-internal-common.swift +18 -0
- package/kit-apple/Sources/NativeScriptKit/Core/http.http-request-internal.index.ios.swift +66 -51
- package/kit-apple/Sources/NativeScriptKit/Core/image-source.index.ios.swift +67 -51
- package/kit-apple/Sources/NativeScriptKit/Core/js-libs.easysax.easysax.swift +24 -6
- package/kit-apple/Sources/NativeScriptKit/Core/kit-index.json +143 -32
- package/kit-apple/Sources/NativeScriptKit/Core/manifest.json +30 -19
- package/kit-apple/Sources/NativeScriptKit/Core/media-query-list.index.swift +190 -78
- package/kit-apple/Sources/NativeScriptKit/Core/native-window.native-window.ios.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.parse.swift +205 -201
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.stringify.swift +41 -42
- package/kit-apple/Sources/NativeScriptKit/Core/npm.css-what.src.types.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/trace.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.animation.index.ios.swift +77 -65
- package/kit-apple/Sources/NativeScriptKit/Core/ui.builder.index.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.properties.index.swift +1272 -824
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view-base.index.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.index.ios.swift +8 -8
- package/kit-apple/Sources/NativeScriptKit/Core/ui.core.view.view-common.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.frame-common.swift +2 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.frame.index.ios.swift +6 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.layouts.flexbox-layout.index.ios.swift +22 -21
- package/kit-apple/Sources/NativeScriptKit/Core/ui.page.index.ios.swift +202 -188
- package/kit-apple/Sources/NativeScriptKit/Core/ui.repeater.index.swift +2 -6
- package/kit-apple/Sources/NativeScriptKit/Core/ui.split-view.index.ios.swift +3 -3
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.background.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.clip-path-function.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-animation-parser.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.css-selector.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.font-common.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style-scope.swift +869 -838
- package/kit-apple/Sources/NativeScriptKit/Core/ui.styling.style.index.swift +46 -31
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-base.formatted-string.swift +1 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.text-view.text-view-common.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.index.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.modal-transition.ios.swift +4 -4
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.page-transition.ios.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/ui.transition.shared-transition-helper.ios.swift +17 -17
- package/kit-apple/Sources/NativeScriptKit/Core/utils.android-runtime-version.swift +77 -0
- package/kit-apple/Sources/NativeScriptKit/Core/utils.debug-source.swift +2 -2
- package/kit-apple/Sources/NativeScriptKit/Core/xhr.index.swift +62 -61
- package/kit-apple/Sources/NativeScriptKit/Runtime/Array.swift +4 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Dynamic.swift +2 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Interop.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Intl.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Iterators.swift +1 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/JSON.swift +413 -73
- package/kit-apple/Sources/NativeScriptKit/Runtime/Lowering.swift +3 -2
- package/kit-apple/Sources/NativeScriptKit/Runtime/Prototypes.swift +14 -1
- package/kit-apple/Sources/NativeScriptKit/Runtime/Symbol.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Values.swift +1 -0
- package/kit-apple/Sources/NativeScriptKit/Runtime/Views.swift +2 -0
- package/package.json +2 -2
|
@@ -65,10 +65,9 @@ public enum Package_css_what_src_parse {
|
|
|
65
65
|
/// Checks whether a specific selector is a traversal.
|
|
66
66
|
/// This is useful eg. in swapping the order of elements that
|
|
67
67
|
/// are not traversals.
|
|
68
|
-
///
|
|
69
68
|
/// @param selector Selector to check.
|
|
70
69
|
public static func isTraversal(_ selector: Any?) throws -> Bool {
|
|
71
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
70
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:88)
|
|
72
71
|
let __switch1: String = try jsConvertedString(jsGet(selector, "type"))
|
|
73
72
|
switch __switch1 {
|
|
74
73
|
case _
|
|
@@ -76,21 +75,27 @@ public enum Package_css_what_src_parse {
|
|
|
76
75
|
|| jsStringEquals(__switch1, SelectorType.Descendant) || jsStringEquals(__switch1, SelectorType.Parent)
|
|
77
76
|
|| jsStringEquals(__switch1, SelectorType.Sibling)
|
|
78
77
|
|| jsStringEquals(__switch1, SelectorType.ColumnCombinator):
|
|
79
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
78
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:95)
|
|
80
79
|
return true
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
case _
|
|
81
|
+
where jsStringEquals(__switch1, SelectorType.Attribute) || jsStringEquals(__switch1, SelectorType.Pseudo)
|
|
82
|
+
|| jsStringEquals(__switch1, SelectorType.PseudoElement) || jsStringEquals(__switch1, SelectorType.Tag)
|
|
83
|
+
|| jsStringEquals(__switch1, SelectorType.Universal):
|
|
84
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:102)
|
|
83
85
|
return false
|
|
86
|
+
default:
|
|
87
|
+
break
|
|
84
88
|
}
|
|
89
|
+
return false
|
|
85
90
|
}
|
|
86
91
|
#sourceLocation()
|
|
87
92
|
public static let stripQuotesFromPseudos: JSSet<String> = JSSet<String>(JSArray<String>(["contains", "icontains"]))
|
|
88
93
|
public static func funescape(_ _: String, _ escaped: String, _ escapedWhitespace: String? = nil) -> String {
|
|
89
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
94
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:111)
|
|
90
95
|
let high: Double = jsParseInt(escaped, 16) - 65536
|
|
91
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
96
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:114)
|
|
92
97
|
return
|
|
93
|
-
((high
|
|
98
|
+
(((high).isNaN || jsTruthy(escapedWhitespace as Any?))
|
|
94
99
|
? escaped
|
|
95
100
|
: (high < 0
|
|
96
101
|
? jsFromCharCode(high + 65536)
|
|
@@ -98,7 +103,7 @@ public enum Package_css_what_src_parse {
|
|
|
98
103
|
}
|
|
99
104
|
#sourceLocation()
|
|
100
105
|
public static func unescapeCSS(_ cssString: String) throws -> String {
|
|
101
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
106
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:127)
|
|
102
107
|
return try jsReplace(cssString, Package_css_what_src_parse.reEscape) { (__m: JSMatch) throws -> String in
|
|
103
108
|
jsToString(
|
|
104
109
|
try jsCall(
|
|
@@ -108,12 +113,12 @@ public enum Package_css_what_src_parse {
|
|
|
108
113
|
}
|
|
109
114
|
#sourceLocation()
|
|
110
115
|
public static func isQuote(_ c: Double) -> Bool {
|
|
111
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
116
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:131)
|
|
112
117
|
return jsLenientNumberEquals(c, CharCode.SingleQuote) || jsLenientNumberEquals(c, CharCode.DoubleQuote)
|
|
113
118
|
}
|
|
114
119
|
#sourceLocation()
|
|
115
120
|
public static func isWhitespace(_ c: Double) -> Bool {
|
|
116
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
121
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:135)
|
|
117
122
|
return
|
|
118
123
|
(jsLenientNumberEquals(c, CharCode.Space) || jsLenientNumberEquals(c, CharCode.Tab)
|
|
119
124
|
|| jsLenientNumberEquals(c, CharCode.NewLine) || jsLenientNumberEquals(c, CharCode.FormFeed)
|
|
@@ -121,22 +126,21 @@ public enum Package_css_what_src_parse {
|
|
|
121
126
|
}
|
|
122
127
|
#sourceLocation()
|
|
123
128
|
/// Parses `selector`.
|
|
124
|
-
///
|
|
125
129
|
/// @param selector Selector to parse.
|
|
126
130
|
/// @returns Returns a two-dimensional array.
|
|
127
131
|
/// The first dimension represents selectors separated by commas (eg. `sub1, sub2`),
|
|
128
132
|
/// the second contains the relevant tokens for that selector.
|
|
129
133
|
public static func parse(_ selector: String) throws -> JSArray<JSArray<Any?>>? {
|
|
130
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
134
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:152)
|
|
131
135
|
let subselects: JSArray<JSArray<Any?>> = JSArray<JSArray<Any?>>()
|
|
132
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
136
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:154)
|
|
133
137
|
let endIndex: Double = try Package_css_what_src_parse.parseSelector(subselects, "\(selector)", 0)
|
|
134
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
138
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:156)
|
|
135
139
|
if endIndex < Double(selector.utf16.count) {
|
|
136
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
140
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:157)
|
|
137
141
|
throw JSException(value: JSError("Unmatched selector: \(jsSlice(selector, endIndex))"))
|
|
138
142
|
}
|
|
139
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
143
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:160)
|
|
140
144
|
return subselects
|
|
141
145
|
}
|
|
142
146
|
#sourceLocation()
|
|
@@ -145,356 +149,356 @@ public enum Package_css_what_src_parse {
|
|
|
145
149
|
{
|
|
146
150
|
var selectorIndex = selectorIndex
|
|
147
151
|
var tokens: JSArray<Any?> = JSArray<Any?>()
|
|
148
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
152
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:170)
|
|
149
153
|
func getName(_ offset: Double) throws -> String {
|
|
150
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
154
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:171)
|
|
151
155
|
let match: JSMatch? = jsMatch(jsSlice(selector, selectorIndex + offset), Package_css_what_src_parse.reName)
|
|
152
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
156
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:173)
|
|
153
157
|
if !jsTruthy(match as Any?) {
|
|
154
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
158
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:174)
|
|
155
159
|
throw JSException(value: JSError("Expected name, found \(jsSlice(selector, selectorIndex))"))
|
|
156
160
|
}
|
|
157
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
161
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:179)
|
|
158
162
|
let __d_1: JSMatch = try jsDestructured(match, nil)
|
|
159
163
|
let name: String? = (__d_1.values.element(0) ?? nil)
|
|
160
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:179)
|
|
161
|
-
selectorIndex += offset + Double((name ?? "undefined").utf16.count)
|
|
162
164
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:180)
|
|
165
|
+
selectorIndex += offset + Double((name ?? "undefined").utf16.count)
|
|
166
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:181)
|
|
163
167
|
return try Package_css_what_src_parse.unescapeCSS((name ?? "undefined"))
|
|
164
168
|
}
|
|
165
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
169
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:184)
|
|
166
170
|
func stripWhitespace(_ offset: Double) {
|
|
167
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
171
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:185)
|
|
168
172
|
selectorIndex += offset
|
|
169
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
173
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:187)
|
|
170
174
|
while selectorIndex < Double(selector.utf16.count)
|
|
171
175
|
&& Package_css_what_src_parse.isWhitespace(jsCharCodeAt(selector, selectorIndex))
|
|
172
176
|
{
|
|
173
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
177
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:191)
|
|
174
178
|
selectorIndex += 1
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
181
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:195)
|
|
178
182
|
func readValueWithParenthesis() throws -> String {
|
|
179
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:195)
|
|
180
|
-
selectorIndex += 1
|
|
181
183
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:196)
|
|
184
|
+
selectorIndex += 1
|
|
185
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:197)
|
|
182
186
|
let start: Double = selectorIndex
|
|
183
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
187
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:199)
|
|
184
188
|
var counter: Double = 1
|
|
185
189
|
while selectorIndex < Double(selector.utf16.count) {
|
|
186
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
190
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:204)
|
|
187
191
|
let __switch2: Double = jsCharCodeAt(selector, selectorIndex)
|
|
188
192
|
switch __switch2 {
|
|
189
193
|
case _ where __switch2 == (CharCode.BackSlash):
|
|
190
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:206)
|
|
191
|
-
selectorIndex += 1
|
|
192
194
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:207)
|
|
195
|
+
selectorIndex += 1
|
|
196
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:208)
|
|
193
197
|
break
|
|
194
198
|
case _ where __switch2 == (CharCode.LeftParenthesis):
|
|
195
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:210)
|
|
196
|
-
counter += 1
|
|
197
199
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:211)
|
|
200
|
+
counter += 1
|
|
201
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:212)
|
|
198
202
|
break
|
|
199
203
|
case _ where __switch2 == (CharCode.RightParenthesis):
|
|
200
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
204
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:215)
|
|
201
205
|
counter -= 1
|
|
202
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
206
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:217)
|
|
203
207
|
if counter == 0 {
|
|
204
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
208
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:218)
|
|
205
209
|
return try Package_css_what_src_parse.unescapeCSS(
|
|
206
210
|
jsSlice(selector, start, jsPostIncrement(&selectorIndex)))
|
|
207
211
|
}
|
|
208
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
212
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:223)
|
|
209
213
|
break
|
|
210
214
|
default:
|
|
211
215
|
break
|
|
212
216
|
}
|
|
213
217
|
selectorIndex += 1
|
|
214
218
|
}
|
|
215
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
219
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:228)
|
|
216
220
|
throw JSException(value: JSError("Parenthesis not matched"))
|
|
217
221
|
}
|
|
218
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
222
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:231)
|
|
219
223
|
func ensureNotTraversal() throws {
|
|
220
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
224
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:232)
|
|
221
225
|
if try jsUnwrap(tokens, "length").length > 0
|
|
222
226
|
&& Package_css_what_src_parse.isTraversal(
|
|
223
227
|
((jsUnwrap(tokens, "tokens.length - 1").element(jsUnwrap(tokens, "length").length - 1) ?? nil)
|
|
224
228
|
as Any?))
|
|
225
229
|
{
|
|
226
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
230
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:233)
|
|
227
231
|
throw JSException(value: JSError("Did not expect successive traversals."))
|
|
228
232
|
}
|
|
229
233
|
}
|
|
230
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
234
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:237)
|
|
231
235
|
func addTraversal(_ type: String) throws {
|
|
232
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
236
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:238)
|
|
233
237
|
if try jsUnwrap(tokens, "length").length > 0
|
|
234
238
|
&& jsStrictEquals(
|
|
235
239
|
jsGet(
|
|
236
240
|
(jsUnwrap(tokens, "tokens.length - 1").element(jsUnwrap(tokens, "length").length - 1) ?? nil),
|
|
237
241
|
"type"), SelectorType.Descendant)
|
|
238
242
|
{
|
|
239
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
243
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:242)
|
|
240
244
|
try jsSet(
|
|
241
245
|
(jsUnwrap(tokens, "tokens.length - 1").element(jsUnwrap(tokens, "length").length - 1) ?? nil),
|
|
242
246
|
"type", type)
|
|
243
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
247
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:243)
|
|
244
248
|
return
|
|
245
249
|
}
|
|
246
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
250
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:246)
|
|
247
251
|
try ensureNotTraversal()
|
|
248
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
252
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:248)
|
|
249
253
|
_ = try jsUnwrap(tokens, "push").push(JSObject([("type", type as Any?)]))
|
|
250
254
|
}
|
|
251
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
255
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:251)
|
|
252
256
|
func addSpecialAttribute(_ name: String, _ action: String) throws {
|
|
253
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
257
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:252)
|
|
254
258
|
_ = try jsUnwrap(tokens, "push").push(
|
|
255
259
|
JSObject([
|
|
256
260
|
("type", SelectorType.Attribute), ("name", name as Any?), ("action", action as Any?),
|
|
257
261
|
("value", getName(1)), ("namespace", jsNull), ("ignoreCase", "quirks"),
|
|
258
262
|
]))
|
|
259
263
|
}
|
|
260
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
264
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:269)
|
|
261
265
|
func finalizeSubselector() throws {
|
|
262
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
266
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:270)
|
|
263
267
|
if try jsUnwrap(tokens, "length").length > 0
|
|
264
268
|
&& jsStrictEquals(
|
|
265
269
|
jsGet(
|
|
266
270
|
(jsUnwrap(tokens, "tokens.length - 1").element(jsUnwrap(tokens, "length").length - 1) ?? nil),
|
|
267
271
|
"type"), SelectorType.Descendant)
|
|
268
272
|
{
|
|
269
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
273
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:274)
|
|
270
274
|
_ = try jsUnwrap(tokens, "pop").pop()
|
|
271
275
|
}
|
|
272
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
276
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:277)
|
|
273
277
|
if try jsUnwrap(tokens, "length").length == 0 {
|
|
274
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
278
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:278)
|
|
275
279
|
throw JSException(value: JSError("Empty sub-selector"))
|
|
276
280
|
}
|
|
277
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
281
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:281)
|
|
278
282
|
_ = try jsUnwrap(subselects, "push").push(jsObjectRequired(tokens))
|
|
279
283
|
}
|
|
280
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
284
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:168)
|
|
281
285
|
tokens = JSArray<Any?>()
|
|
282
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
286
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:284)
|
|
283
287
|
stripWhitespace(0)
|
|
284
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
288
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:286)
|
|
285
289
|
if jsLenientNumberEquals(Double(selector.utf16.count), selectorIndex) {
|
|
286
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
290
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:287)
|
|
287
291
|
return selectorIndex
|
|
288
292
|
}
|
|
289
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
293
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:290)
|
|
290
294
|
loop: while selectorIndex < Double(selector.utf16.count) {
|
|
291
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
295
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:291)
|
|
292
296
|
let firstChar: Double = jsCharCodeAt(selector, selectorIndex)
|
|
293
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
297
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:293)
|
|
294
298
|
let __switch3: Double = firstChar
|
|
295
299
|
switch __switch3 {
|
|
296
300
|
case _
|
|
297
301
|
where __switch3 == (CharCode.Space) || __switch3 == (CharCode.Tab) || __switch3 == (CharCode.NewLine)
|
|
298
302
|
|| __switch3 == (CharCode.FormFeed) || __switch3 == (CharCode.CarriageReturn):
|
|
299
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
303
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:300)
|
|
300
304
|
if try jsUnwrap(tokens, "length").length == 0
|
|
301
305
|
|| !jsStrictEquals(
|
|
302
306
|
jsGet((jsUnwrap(tokens, "0").element(0) ?? nil), "type"), SelectorType.Descendant)
|
|
303
307
|
{
|
|
304
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:303)
|
|
305
|
-
try ensureNotTraversal()
|
|
306
308
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:304)
|
|
309
|
+
try ensureNotTraversal()
|
|
310
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:305)
|
|
307
311
|
_ = try jsUnwrap(tokens, "push").push(JSObject([("type", SelectorType.Descendant)]))
|
|
308
312
|
}
|
|
309
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:307)
|
|
310
|
-
stripWhitespace(1)
|
|
311
313
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:308)
|
|
314
|
+
stripWhitespace(1)
|
|
315
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:309)
|
|
312
316
|
break
|
|
313
317
|
case _ where __switch3 == (CharCode.GreaterThan):
|
|
314
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:312)
|
|
315
|
-
try addTraversal(SelectorType.Child)
|
|
316
318
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:313)
|
|
317
|
-
|
|
319
|
+
try addTraversal(SelectorType.Child)
|
|
318
320
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:314)
|
|
321
|
+
stripWhitespace(1)
|
|
322
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:315)
|
|
319
323
|
break
|
|
320
324
|
case _ where __switch3 == (CharCode.LessThan):
|
|
321
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:317)
|
|
322
|
-
try addTraversal(SelectorType.Parent)
|
|
323
325
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:318)
|
|
324
|
-
|
|
326
|
+
try addTraversal(SelectorType.Parent)
|
|
325
327
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:319)
|
|
328
|
+
stripWhitespace(1)
|
|
329
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:320)
|
|
326
330
|
break
|
|
327
331
|
case _ where __switch3 == (CharCode.Tilde):
|
|
328
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:322)
|
|
329
|
-
try addTraversal(SelectorType.Sibling)
|
|
330
332
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:323)
|
|
331
|
-
|
|
333
|
+
try addTraversal(SelectorType.Sibling)
|
|
332
334
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:324)
|
|
335
|
+
stripWhitespace(1)
|
|
336
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:325)
|
|
333
337
|
break
|
|
334
338
|
case _ where __switch3 == (CharCode.Plus):
|
|
335
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:327)
|
|
336
|
-
try addTraversal(SelectorType.Adjacent)
|
|
337
339
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:328)
|
|
338
|
-
|
|
340
|
+
try addTraversal(SelectorType.Adjacent)
|
|
339
341
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:329)
|
|
342
|
+
stripWhitespace(1)
|
|
343
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:330)
|
|
340
344
|
break
|
|
341
345
|
case _ where __switch3 == (CharCode.Period):
|
|
342
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:333)
|
|
343
|
-
try addSpecialAttribute("class", AttributeAction.Element)
|
|
344
346
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:334)
|
|
347
|
+
try addSpecialAttribute("class", AttributeAction.Element)
|
|
348
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:335)
|
|
345
349
|
break
|
|
346
350
|
case _ where __switch3 == (CharCode.Hash):
|
|
347
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:337)
|
|
348
|
-
try addSpecialAttribute("id", AttributeAction.Equals)
|
|
349
351
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:338)
|
|
352
|
+
try addSpecialAttribute("id", AttributeAction.Equals)
|
|
353
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:339)
|
|
350
354
|
break
|
|
351
355
|
case _ where __switch3 == (CharCode.LeftSquareBracket):
|
|
352
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
356
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:341)
|
|
353
357
|
do {
|
|
354
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
358
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:342)
|
|
355
359
|
stripWhitespace(1)
|
|
356
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:345)
|
|
357
|
-
var name: String? = nil
|
|
358
360
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:346)
|
|
361
|
+
var name: String? = nil
|
|
362
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:347)
|
|
359
363
|
var namespace: Any? = jsNull
|
|
360
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
364
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:349)
|
|
361
365
|
if jsCharCodeAt(selector, selectorIndex) == CharCode.Pipe {
|
|
362
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
366
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:351)
|
|
363
367
|
name = try getName(1)
|
|
364
368
|
} else if jsStartsWith(selector, "*|", selectorIndex) {
|
|
365
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:352)
|
|
366
|
-
namespace = "*"
|
|
367
369
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:353)
|
|
370
|
+
namespace = "*"
|
|
371
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:354)
|
|
368
372
|
name = try getName(2)
|
|
369
373
|
} else {
|
|
370
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
374
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:356)
|
|
371
375
|
name = try getName(0)
|
|
372
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
376
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:358)
|
|
373
377
|
if jsCharCodeAt(selector, selectorIndex) == CharCode.Pipe
|
|
374
378
|
&& jsCharCodeAt(selector, selectorIndex + 1) != CharCode.Equal
|
|
375
379
|
{
|
|
376
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:362)
|
|
377
|
-
namespace = name
|
|
378
380
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:363)
|
|
381
|
+
namespace = name
|
|
382
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:364)
|
|
379
383
|
name = try getName(1)
|
|
380
384
|
}
|
|
381
385
|
}
|
|
382
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
386
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:368)
|
|
383
387
|
stripWhitespace(0)
|
|
384
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:371)
|
|
385
|
-
var action: String = AttributeAction.Exists
|
|
386
388
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:372)
|
|
389
|
+
var action: String = AttributeAction.Exists
|
|
390
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:373)
|
|
387
391
|
let possibleAction: String? = Package_css_what_src_parse.actionTypes.get(
|
|
388
392
|
jsCharCodeAt(selector, selectorIndex))
|
|
389
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
393
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:377)
|
|
390
394
|
if jsTruthy(possibleAction as Any?) {
|
|
391
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
395
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:378)
|
|
392
396
|
action = (possibleAction ?? "undefined")
|
|
393
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
397
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:380)
|
|
394
398
|
if jsCharCodeAt(selector, selectorIndex + 1) != CharCode.Equal {
|
|
395
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
399
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:384)
|
|
396
400
|
throw JSException(value: JSError("Expected `=`"))
|
|
397
401
|
}
|
|
398
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
402
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:387)
|
|
399
403
|
stripWhitespace(2)
|
|
400
404
|
} else if jsCharCodeAt(selector, selectorIndex) == CharCode.Equal {
|
|
401
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:390)
|
|
402
|
-
action = AttributeAction.Equals
|
|
403
405
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:391)
|
|
406
|
+
action = AttributeAction.Equals
|
|
407
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:392)
|
|
404
408
|
stripWhitespace(1)
|
|
405
409
|
}
|
|
406
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:396)
|
|
407
|
-
var value: String = ""
|
|
408
410
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:397)
|
|
411
|
+
var value: String = ""
|
|
412
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:398)
|
|
409
413
|
var ignoreCase: Any? = jsNull
|
|
410
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
414
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:400)
|
|
411
415
|
if !jsStringEquals(action, "exists") {
|
|
412
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
416
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:401)
|
|
413
417
|
if Package_css_what_src_parse.isQuote(jsCharCodeAt(selector, selectorIndex)) {
|
|
414
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:401)
|
|
415
|
-
let quote: Double = jsCharCodeAt(selector, selectorIndex)
|
|
416
418
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:402)
|
|
417
|
-
|
|
419
|
+
let quote: Double = jsCharCodeAt(selector, selectorIndex)
|
|
418
420
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:403)
|
|
419
|
-
|
|
421
|
+
selectorIndex += 1
|
|
420
422
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:404)
|
|
423
|
+
let sectionStart: Double = selectorIndex
|
|
424
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:405)
|
|
421
425
|
while selectorIndex < Double(selector.utf16.count)
|
|
422
426
|
&& jsCharCodeAt(selector, selectorIndex) != quote
|
|
423
427
|
{
|
|
424
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
428
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:409)
|
|
425
429
|
selectorIndex += (jsCharCodeAt(selector, selectorIndex) == CharCode.BackSlash ? 2 : 1)
|
|
426
430
|
}
|
|
427
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
431
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:417)
|
|
428
432
|
if jsCharCodeAt(selector, selectorIndex) != quote {
|
|
429
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
433
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:418)
|
|
430
434
|
throw JSException(value: JSError("Attribute value didn't end"))
|
|
431
435
|
}
|
|
432
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
436
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:421)
|
|
433
437
|
value = try Package_css_what_src_parse.unescapeCSS(
|
|
434
438
|
jsSlice(selector, sectionStart, selectorIndex))
|
|
435
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
439
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:424)
|
|
436
440
|
selectorIndex += 1
|
|
437
441
|
} else {
|
|
438
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
442
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:426)
|
|
439
443
|
let valueStart: Double = selectorIndex
|
|
440
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
444
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:428)
|
|
441
445
|
while selectorIndex < Double(selector.utf16.count)
|
|
442
446
|
&& !Package_css_what_src_parse.isWhitespace(jsCharCodeAt(selector, selectorIndex))
|
|
443
447
|
&& jsCharCodeAt(selector, selectorIndex) != CharCode.RightSquareBracket
|
|
444
448
|
{
|
|
445
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
449
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:434)
|
|
446
450
|
selectorIndex += (jsCharCodeAt(selector, selectorIndex) == CharCode.BackSlash ? 2 : 1)
|
|
447
451
|
}
|
|
448
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
452
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:442)
|
|
449
453
|
value = try Package_css_what_src_parse.unescapeCSS(
|
|
450
454
|
jsSlice(selector, valueStart, selectorIndex))
|
|
451
455
|
}
|
|
452
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
456
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:447)
|
|
453
457
|
stripWhitespace(0)
|
|
454
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
458
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:450)
|
|
455
459
|
let __switch4: Double = jsBitOr(jsCharCodeAt(selector, selectorIndex), 32)
|
|
456
460
|
switch __switch4 {
|
|
457
461
|
case _ where __switch4 == (CharCode.LowerI):
|
|
458
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:452)
|
|
459
|
-
ignoreCase = true
|
|
460
462
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:453)
|
|
461
|
-
|
|
463
|
+
ignoreCase = true
|
|
462
464
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:454)
|
|
465
|
+
stripWhitespace(1)
|
|
466
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:455)
|
|
463
467
|
break
|
|
464
468
|
case _ where __switch4 == (CharCode.LowerS):
|
|
465
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:457)
|
|
466
|
-
ignoreCase = false
|
|
467
469
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:458)
|
|
468
|
-
|
|
470
|
+
ignoreCase = false
|
|
469
471
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:459)
|
|
472
|
+
stripWhitespace(1)
|
|
473
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:460)
|
|
470
474
|
break
|
|
471
475
|
default:
|
|
472
476
|
break
|
|
473
477
|
}
|
|
474
478
|
}
|
|
475
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
479
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:465)
|
|
476
480
|
if jsCharCodeAt(selector, selectorIndex) != CharCode.RightSquareBracket {
|
|
477
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
481
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:469)
|
|
478
482
|
throw JSException(value: JSError("Attribute selector didn't terminate"))
|
|
479
483
|
}
|
|
480
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
484
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:472)
|
|
481
485
|
selectorIndex += 1
|
|
482
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
486
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:474)
|
|
483
487
|
let attributeSelector: Any? = JSObject([
|
|
484
488
|
("type", SelectorType.Attribute), ("name", (name as Any?) as Any?), ("action", action as Any?),
|
|
485
489
|
("value", value as Any?), ("namespace", namespace as Any?), ("ignoreCase", ignoreCase as Any?),
|
|
486
490
|
])
|
|
487
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:482)
|
|
488
|
-
_ = try jsUnwrap(tokens, "push").push(attributeSelector)
|
|
489
491
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:483)
|
|
492
|
+
_ = try jsUnwrap(tokens, "push").push(attributeSelector)
|
|
493
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:484)
|
|
490
494
|
break
|
|
491
495
|
}
|
|
492
496
|
case _ where __switch3 == (CharCode.Colon):
|
|
493
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
497
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:486)
|
|
494
498
|
do {
|
|
495
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
499
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:487)
|
|
496
500
|
if jsCharCodeAt(selector, selectorIndex + 1) == CharCode.Colon {
|
|
497
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
501
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:488)
|
|
498
502
|
_ = try jsUnwrap(tokens, "push").push(
|
|
499
503
|
JSObject([
|
|
500
504
|
("type", SelectorType.PseudoElement), ("name", getName(2).lowercased()),
|
|
@@ -504,151 +508,151 @@ public enum Package_css_what_src_parse {
|
|
|
504
508
|
? readValueWithParenthesis() : jsNull)
|
|
505
509
|
),
|
|
506
510
|
]))
|
|
507
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
511
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:497)
|
|
508
512
|
break
|
|
509
513
|
}
|
|
510
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
514
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:500)
|
|
511
515
|
let name: String = try getName(1).lowercased()
|
|
512
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
516
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:502)
|
|
513
517
|
if Package_css_what_src_parse.pseudosToPseudoElements.has(name) {
|
|
514
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
518
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:503)
|
|
515
519
|
_ = try jsUnwrap(tokens, "push").push(
|
|
516
520
|
JSObject([("type", SelectorType.PseudoElement), ("name", name as Any?), ("data", jsNull)]))
|
|
517
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
521
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:508)
|
|
518
522
|
break
|
|
519
523
|
}
|
|
520
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
524
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:511)
|
|
521
525
|
var data: Any? = jsNull
|
|
522
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
526
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:513)
|
|
523
527
|
if jsCharCodeAt(selector, selectorIndex) == CharCode.LeftParenthesis {
|
|
524
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
528
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:517)
|
|
525
529
|
if Package_css_what_src_parse.unpackPseudos.has(name) {
|
|
526
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
530
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:518)
|
|
527
531
|
if Package_css_what_src_parse.isQuote(jsCharCodeAt(selector, selectorIndex + 1)) {
|
|
528
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
532
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:519)
|
|
529
533
|
throw JSException(value: JSError("Pseudo-selector \(name) cannot be quoted"))
|
|
530
534
|
}
|
|
531
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:523)
|
|
532
|
-
data = JSArray<JSArray<Any?>>()
|
|
533
535
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:524)
|
|
536
|
+
data = JSArray<JSArray<Any?>>()
|
|
537
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:525)
|
|
534
538
|
selectorIndex = try Package_css_what_src_parse.parseSelector(
|
|
535
539
|
try jsArrayOrNil(
|
|
536
540
|
data, as: JSArray<JSArray<Any?>>.self,
|
|
537
541
|
{ try jsObjectRequired(jsArrayOrNil($0, as: JSArray<Any?>.self, { $0 })) }),
|
|
538
542
|
selector, selectorIndex + 1)
|
|
539
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
543
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:531)
|
|
540
544
|
if jsCharCodeAt(selector, selectorIndex) != CharCode.RightParenthesis {
|
|
541
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
545
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:535)
|
|
542
546
|
throw JSException(
|
|
543
547
|
value: JSError("Missing closing parenthesis in :\(name) (\(selector))"))
|
|
544
548
|
}
|
|
545
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
549
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:540)
|
|
546
550
|
selectorIndex += 1
|
|
547
551
|
} else {
|
|
548
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
552
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:542)
|
|
549
553
|
data = try readValueWithParenthesis()
|
|
550
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
554
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:544)
|
|
551
555
|
if Package_css_what_src_parse.stripQuotesFromPseudos.has(name) {
|
|
552
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
556
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:545)
|
|
553
557
|
let quot: Double = jsCharCodeAt(jsLenientString(data), 0)
|
|
554
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
558
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:547)
|
|
555
559
|
if quot
|
|
556
560
|
== jsCharCodeAt(
|
|
557
561
|
jsLenientString(data), Double(jsLenientString(data).utf16.count) - 1)
|
|
558
562
|
&& Package_css_what_src_parse.isQuote(quot)
|
|
559
563
|
{
|
|
560
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
564
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:551)
|
|
561
565
|
data = jsSlice(jsLenientString(data), 1, -1)
|
|
562
566
|
}
|
|
563
567
|
}
|
|
564
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
568
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:555)
|
|
565
569
|
data = try Package_css_what_src_parse.unescapeCSS(jsLenientString(data))
|
|
566
570
|
}
|
|
567
571
|
}
|
|
568
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
572
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:559)
|
|
569
573
|
_ = try jsUnwrap(tokens, "push").push(
|
|
570
574
|
JSObject([("type", SelectorType.Pseudo), ("name", name as Any?), ("data", data as Any?)]))
|
|
571
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
575
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:560)
|
|
572
576
|
break
|
|
573
577
|
}
|
|
574
578
|
case _ where __switch3 == (CharCode.Comma):
|
|
575
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:562)
|
|
576
|
-
try finalizeSubselector()
|
|
577
579
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:563)
|
|
578
|
-
|
|
580
|
+
try finalizeSubselector()
|
|
579
581
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:564)
|
|
580
|
-
|
|
582
|
+
tokens = JSArray<Any?>()
|
|
581
583
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:565)
|
|
584
|
+
stripWhitespace(1)
|
|
585
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:566)
|
|
582
586
|
break
|
|
583
587
|
default:
|
|
584
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
588
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:568)
|
|
585
589
|
do {
|
|
586
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
590
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:569)
|
|
587
591
|
if jsStartsWith(selector, "/*", selectorIndex) {
|
|
588
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
592
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:570)
|
|
589
593
|
let endIndex: Double = jsIndexOf(selector, "*/", selectorIndex + 2)
|
|
590
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
591
|
-
if endIndex
|
|
592
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
594
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:572)
|
|
595
|
+
if endIndex == -1 {
|
|
596
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:573)
|
|
593
597
|
throw JSException(value: JSError("Comment was not terminated"))
|
|
594
598
|
}
|
|
595
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
599
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:576)
|
|
596
600
|
selectorIndex = endIndex + 2
|
|
597
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
601
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:579)
|
|
598
602
|
if try jsUnwrap(tokens, "length").length == 0 {
|
|
599
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
603
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:580)
|
|
600
604
|
stripWhitespace(0)
|
|
601
605
|
}
|
|
602
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
606
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:583)
|
|
603
607
|
break
|
|
604
608
|
}
|
|
605
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:585)
|
|
606
|
-
var namespace: Any? = jsNull
|
|
607
609
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:586)
|
|
610
|
+
var namespace: Any? = jsNull
|
|
611
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:587)
|
|
608
612
|
var name: String? = nil
|
|
609
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
613
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:589)
|
|
610
614
|
if jsLenientNumberEquals(firstChar, CharCode.Asterisk) {
|
|
611
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:589)
|
|
612
|
-
selectorIndex += 1
|
|
613
615
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:590)
|
|
616
|
+
selectorIndex += 1
|
|
617
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:591)
|
|
614
618
|
name = "*"
|
|
615
619
|
} else if jsLenientNumberEquals(firstChar, CharCode.Pipe) {
|
|
616
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
620
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:593)
|
|
617
621
|
name = ""
|
|
618
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
622
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:595)
|
|
619
623
|
if jsCharCodeAt(selector, selectorIndex + 1) == CharCode.Pipe {
|
|
620
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:597)
|
|
621
|
-
try addTraversal(SelectorType.ColumnCombinator)
|
|
622
624
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:598)
|
|
623
|
-
|
|
625
|
+
try addTraversal(SelectorType.ColumnCombinator)
|
|
624
626
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:599)
|
|
627
|
+
stripWhitespace(2)
|
|
628
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:600)
|
|
625
629
|
break
|
|
626
630
|
}
|
|
627
631
|
} else if Package_css_what_src_parse.reName.test(jsSlice(selector, selectorIndex)) {
|
|
628
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
632
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:603)
|
|
629
633
|
name = try getName(0)
|
|
630
634
|
} else {
|
|
631
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
635
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:605)
|
|
632
636
|
break loop
|
|
633
637
|
}
|
|
634
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
638
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:608)
|
|
635
639
|
if jsCharCodeAt(selector, selectorIndex) == CharCode.Pipe
|
|
636
640
|
&& jsCharCodeAt(selector, selectorIndex + 1) != CharCode.Pipe
|
|
637
641
|
{
|
|
638
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:611)
|
|
639
|
-
namespace = (name as Any?)
|
|
640
642
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:612)
|
|
643
|
+
namespace = (name as Any?)
|
|
644
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:613)
|
|
641
645
|
if jsCharCodeAt(selector, selectorIndex + 1) == CharCode.Asterisk {
|
|
642
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:616)
|
|
643
|
-
name = "*"
|
|
644
646
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:617)
|
|
647
|
+
name = "*"
|
|
648
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:618)
|
|
645
649
|
selectorIndex += 2
|
|
646
650
|
} else {
|
|
647
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
651
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:620)
|
|
648
652
|
name = try getName(1)
|
|
649
653
|
}
|
|
650
654
|
}
|
|
651
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:
|
|
655
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:624)
|
|
652
656
|
_ = try jsUnwrap(tokens, "push").push(
|
|
653
657
|
(jsStringEquals((name ?? "undefined"), "*")
|
|
654
658
|
? (JSObject([("type", SelectorType.Universal), ("namespace", namespace as Any?)]) as Any?)
|
|
@@ -659,9 +663,9 @@ public enum Package_css_what_src_parse {
|
|
|
659
663
|
}
|
|
660
664
|
}
|
|
661
665
|
}
|
|
662
|
-
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:632)
|
|
663
|
-
try finalizeSubselector()
|
|
664
666
|
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:633)
|
|
667
|
+
try finalizeSubselector()
|
|
668
|
+
#sourceLocation(file:"@nativescript/core/css-what.src.parse.ts",line:634)
|
|
665
669
|
return selectorIndex
|
|
666
670
|
}
|
|
667
671
|
}
|