Skip to content

Commit

Permalink
Merge pull request #41767 from poorna2152/worker_change_parser_test
Browse files Browse the repository at this point in the history
[Worker Change] Fix failing worker `on fail` parser test
  • Loading branch information
lochana-chathura authored Nov 27, 2023
2 parents e0db559 + d4eba64 commit b1d64b3
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -595,26 +595,36 @@
]
},
{
"kind": "VAR_TYPE_DESC",
"kind": "TYPED_BINDING_PATTERN",
"children": [
{
"kind": "VAR_KEYWORD",
"trailingMinutiae": [
"kind": "VAR_TYPE_DESC",
"children": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
"kind": "VAR_KEYWORD",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
}
]
}
]
},
{
"kind": "IDENTIFIER_TOKEN",
"value": "e",
"trailingMinutiae": [
},
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
"kind": "CAPTURE_BINDING_PATTERN",
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"value": "e",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
}
]
}
]
},
Expand Down Expand Up @@ -827,28 +837,48 @@
]
},
{
"kind": "ERROR_TYPE_DESC",
"kind": "TYPED_BINDING_PATTERN",
"children": [
{
"kind": "ERROR_KEYWORD"
},
{
"kind": "TYPE_PARAMETER",
"kind": "ERROR_TYPE_DESC",
"children": [
{
"kind": "LT_TOKEN"
"kind": "ERROR_KEYWORD"
},
{
"kind": "SIMPLE_NAME_REFERENCE",
"kind": "TYPE_PARAMETER",
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"value": "E"
"kind": "LT_TOKEN"
},
{
"kind": "SIMPLE_NAME_REFERENCE",
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"value": "E"
}
]
},
{
"kind": "GT_TOKEN",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
}
]
},
}
]
},
{
"kind": "CAPTURE_BINDING_PATTERN",
"children": [
{
"kind": "GT_TOKEN",
"kind": "IDENTIFIER_TOKEN",
"value": "e",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
Expand All @@ -860,16 +890,6 @@
}
]
},
{
"kind": "IDENTIFIER_TOKEN",
"value": "e",
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
},
{
"kind": "BLOCK_STATEMENT",
"children": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,28 +592,40 @@
]
},
{
"kind": "SIMPLE_NAME_REFERENCE",
"kind": "TYPED_BINDING_PATTERN",
"hasDiagnostics": true,
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"value": "f",
"trailingMinutiae": [
"kind": "SIMPLE_NAME_REFERENCE",
"children": [
{
"kind": "END_OF_LINE_MINUTIAE",
"value": "\n"
"kind": "IDENTIFIER_TOKEN",
"value": "f",
"trailingMinutiae": [
{
"kind": "END_OF_LINE_MINUTIAE",
"value": "\n"
}
]
}
]
},
{
"kind": "CAPTURE_BINDING_PATTERN",
"hasDiagnostics": true,
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"isMissing": true,
"hasDiagnostics": true,
"diagnostics": [
"ERROR_MISSING_IDENTIFIER"
]
}
]
}
]
},
{
"kind": "IDENTIFIER_TOKEN",
"isMissing": true,
"hasDiagnostics": true,
"diagnostics": [
"ERROR_MISSING_IDENTIFIER"
]
},
{
"kind": "BLOCK_STATEMENT",
"hasDiagnostics": true,
Expand Down Expand Up @@ -907,58 +919,70 @@
]
},
{
"kind": "SIMPLE_NAME_REFERENCE",
"kind": "TYPED_BINDING_PATTERN",
"hasDiagnostics": true,
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"value": "f",
"trailingMinutiae": [
"kind": "SIMPLE_NAME_REFERENCE",
"children": [
{
"kind": "END_OF_LINE_MINUTIAE",
"value": "\n"
"kind": "IDENTIFIER_TOKEN",
"value": "f",
"trailingMinutiae": [
{
"kind": "END_OF_LINE_MINUTIAE",
"value": "\n"
}
]
}
]
}
]
},
{
"kind": "IDENTIFIER_TOKEN",
"hasDiagnostics": true,
"value": "w4",
"leadingMinutiae": [
{
"kind": "END_OF_LINE_MINUTIAE",
"value": "\n"
},
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
},
{
"kind": "INVALID_NODE_MINUTIAE",
"invalidNode": {
"kind": "INVALID_TOKEN_MINUTIAE_NODE",
"hasDiagnostics": true,
"children": [
{
"kind": "WORKER_KEYWORD",
"hasDiagnostics": true,
"diagnostics": [
"ERROR_INVALID_TOKEN"
]
}
]
}
},
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
],
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
"kind": "CAPTURE_BINDING_PATTERN",
"hasDiagnostics": true,
"children": [
{
"kind": "IDENTIFIER_TOKEN",
"hasDiagnostics": true,
"value": "w4",
"leadingMinutiae": [
{
"kind": "END_OF_LINE_MINUTIAE",
"value": "\n"
},
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
},
{
"kind": "INVALID_NODE_MINUTIAE",
"invalidNode": {
"kind": "INVALID_TOKEN_MINUTIAE_NODE",
"hasDiagnostics": true,
"children": [
{
"kind": "WORKER_KEYWORD",
"hasDiagnostics": true,
"diagnostics": [
"ERROR_INVALID_TOKEN"
]
}
]
}
},
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
],
"trailingMinutiae": [
{
"kind": "WHITESPACE_MINUTIAE",
"value": " "
}
]
}
]
}
]
},
Expand Down

0 comments on commit b1d64b3

Please sign in to comment.