mirror of
https://github.com/github/codeql.git
synced 2026-05-14 03:09:26 +02:00
unified: add proper fields for availability_condition
This commit is contained in:
@@ -1304,7 +1304,7 @@ module.exports = grammar({
|
||||
")"
|
||||
),
|
||||
_availability_argument: ($) =>
|
||||
choice(seq($.identifier, sep1($.integer_literal, ".")), "*"),
|
||||
choice(seq(field("platform", $.identifier), sep1(field("version", $.integer_literal), ".")), "*"),
|
||||
////////////////////////////////
|
||||
// Declarations - https://docs.swift.org/swift-book/ReferenceManual/Declarations.html
|
||||
////////////////////////////////
|
||||
|
||||
@@ -142,7 +142,8 @@ named:
|
||||
platform*: simple_identifier
|
||||
version*: integer_literal
|
||||
availability_condition:
|
||||
$children*: [identifier, integer_literal]
|
||||
platform*: identifier
|
||||
version*: integer_literal
|
||||
await_expression:
|
||||
expr: expression
|
||||
bang:
|
||||
|
||||
Reference in New Issue
Block a user