Skip to content

Commit 9a4ca01

Browse files
eernstgCommit Queue
authored and
Commit Queue
committed
Adjust Dart.g to allow prefix on Function as a type
This CL changes the specification grammar Dart.g such that it allows using `p.Function` to denote the built-in type `Function`. This is necessary in the case where 'dart:core' has been imported with an import prefix `p` (and it hasn't been imported without a prefix at the same time). The corresponding spec update is in dart-lang/language#3492. Change-Id: Iaaba1c3bc8f5d3a8700c8e62ec3a1af92334840b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/339561 Reviewed-by: Chloe Stefantsova <[email protected]> Commit-Queue: Erik Ernst <[email protected]>
1 parent 9b4c2f0 commit 9a4ca01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/spec_parser/Dart.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ typeNotFunction
14411441
14421442
typeNotVoidNotFunction
14431443
: typeName typeArguments?
1444-
| FUNCTION
1444+
| (typeIdentifier '.')? FUNCTION
14451445
;
14461446
14471447
typeName

0 commit comments

Comments
 (0)