Skip to content

Commit

Permalink
Elements. Print new elements for resolved AST.
Browse files Browse the repository at this point in the history
Change-Id: I629151c61fafea61b4fe8cd1ff94a828d2a99754
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/385800
Reviewed-by: Brian Wilkerson <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
  • Loading branch information
scheglov authored and Commit Queue committed Sep 19, 2024
1 parent bb59b5c commit 6e0f03f
Show file tree
Hide file tree
Showing 153 changed files with 7,786 additions and 4 deletions.
91 changes: 91 additions & 0 deletions pkg/analyzer/test/generated/strong_mode_test.dart

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pkg/analyzer/test/src/dart/analysis/driver_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,7 @@ var B = 0;
selectedNode: SimpleIdentifier
token: B
staticElement: package:test/b.dart::<fragment>::@getter::B
element: package:test/b.dart::<fragment>::@getter::B#element
staticType: int
[status] idle
''');
Expand All @@ -884,6 +885,7 @@ var B = 1.2;
selectedNode: SimpleIdentifier
token: B
staticElement: package:test/b.dart::<fragment>::@getter::B
element: package:test/b.dart::<fragment>::@getter::B#element
staticType: double
[status] idle
''');
Expand Down
7 changes: 7 additions & 0 deletions pkg/analyzer/test/src/dart/resolution/as_expression_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ AsExpression
expression: SimpleIdentifier
token: a
staticElement: <testLibraryFragment>::@getter::a
element: <testLibraryFragment>::@getter::a#element
staticType: num
asOperator: as
type: NamedType
name: int
element: dart:core::<fragment>::@class::int
element2: dart:core::<fragment>::@class::int#element
type: int
staticType: int
''');
Expand All @@ -54,11 +56,13 @@ AsExpression
expression: SimpleIdentifier
token: v
staticElement: v@17
element: v@17
staticType: num
asOperator: as
type: NamedType
name: int
element: dart:core::<fragment>::@class::int
element2: dart:core::<fragment>::@class::int#element
type: int
staticType: int
''');
Expand All @@ -85,6 +89,7 @@ AsExpression
type: NamedType
name: T
element: T@8
element2: <not-implemented>
type: T
staticType: T
''');
Expand All @@ -108,6 +113,7 @@ AsExpression
expression: SimpleIdentifier
token: x
staticElement: <testLibraryFragment>::@function::f::@parameter::x
element: <not-implemented>
staticType: Object?
rightParenthesis: )
leftBracket: {
Expand All @@ -127,6 +133,7 @@ AsExpression
type: NamedType
name: double
element: dart:core::<fragment>::@class::double
element2: dart:core::<fragment>::@class::double#element
type: double
staticType: double
''');
Expand Down
Loading

0 comments on commit 6e0f03f

Please sign in to comment.