firefly-compiler 0.4.85 → 0.4.86
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/compiler/Parser.ff
CHANGED
|
@@ -1185,7 +1185,7 @@ extend self: Parser {
|
|
|
1185
1185
|
|
|
1186
1186
|
parseDynamicMember(record: Term): Term {
|
|
1187
1187
|
self.skip(LArrowThin)
|
|
1188
|
-
let token = self.skip(LLower)
|
|
1188
|
+
let token = if(self.current().is(LUpper)) {self.skip(LUpper)} else {self.skip(LLower)}
|
|
1189
1189
|
let member = EString(token.at(), "\"" + token.raw() + "\"")
|
|
1190
1190
|
if(self.current().rawIs("(")) {
|
|
1191
1191
|
let arguments = self.parseFunctionArguments(record.at, False)
|
|
@@ -1540,7 +1540,9 @@ return result_
|
|
|
1540
1540
|
|
|
1541
1541
|
export function Parser_parseDynamicMember(self_, record_) {
|
|
1542
1542
|
ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LArrowThin());
|
|
1543
|
-
const token_ = ff_compiler_Parser.
|
|
1543
|
+
const token_ = (ff_compiler_Token.Token_is(ff_compiler_Parser.Parser_current(self_), ff_compiler_Token.LUpper())
|
|
1544
|
+
? ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LUpper())
|
|
1545
|
+
: ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LLower()));
|
|
1544
1546
|
const member_ = ff_compiler_Syntax.EString(ff_compiler_Token.Token_at(token_), (("\"" + ff_compiler_Token.Token_raw(token_)) + "\""));
|
|
1545
1547
|
if(ff_compiler_Token.Token_rawIs(ff_compiler_Parser.Parser_current(self_), "(")) {
|
|
1546
1548
|
const arguments_ = ff_compiler_Parser.Parser_parseFunctionArguments(self_, record_.at_, false);
|
|
@@ -3103,7 +3105,9 @@ return result_
|
|
|
3103
3105
|
|
|
3104
3106
|
export async function Parser_parseDynamicMember$(self_, record_, $task) {
|
|
3105
3107
|
ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LArrowThin());
|
|
3106
|
-
const token_ = ff_compiler_Parser.
|
|
3108
|
+
const token_ = (ff_compiler_Token.Token_is(ff_compiler_Parser.Parser_current(self_), ff_compiler_Token.LUpper())
|
|
3109
|
+
? ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LUpper())
|
|
3110
|
+
: ff_compiler_Parser.Parser_skip(self_, ff_compiler_Token.LLower()));
|
|
3107
3111
|
const member_ = ff_compiler_Syntax.EString(ff_compiler_Token.Token_at(token_), (("\"" + ff_compiler_Token.Token_raw(token_)) + "\""));
|
|
3108
3112
|
if(ff_compiler_Token.Token_rawIs(ff_compiler_Parser.Parser_current(self_), "(")) {
|
|
3109
3113
|
const arguments_ = ff_compiler_Parser.Parser_parseFunctionArguments(self_, record_.at_, false);
|
package/package.json
CHANGED
package/vscode/package.json
CHANGED