Commit f01486a
Improve the offset, length, and end getters in AstNodeImpl
While this does improve the performance of these getters (by about 5%)
the purpose of this CL is just to clean up the implementation of them.
It bothers my that they (especially `end`) are using such an indirect
way of computing their values.
Change-Id: I384890a9adc108c4c67b906864201edee9aa8598
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426400
Auto-Submit: Brian Wilkerson <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>1 parent ba40d9b commit f01486a
1 file changed
+3
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
| 1056 | + | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
1066 | | - | |
| 1062 | + | |
1067 | 1063 | | |
1068 | 1064 | | |
1069 | 1065 | | |
1070 | 1066 | | |
1071 | 1067 | | |
1072 | 1068 | | |
1073 | 1069 | | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
1077 | | - | |
| 1070 | + | |
1078 | 1071 | | |
1079 | 1072 | | |
1080 | 1073 | | |
| |||
0 commit comments