Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply reviewers feedback
  • Loading branch information
tugorez committed Mar 6, 2024
commit 1ef16c4d5bad59d6ce60083f73fdbbdefb661045
10 changes: 5 additions & 5 deletions packages/rfw/lib/src/dart/text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2377,11 +2377,6 @@ class _Parser {
_advance();
return _withSourceRange(StateReference(_readParts()), start);
}
if (widgetBuilderScope.contains(identifier)) {
final SourceLocation? start = _getSourceLocation();
_advance();
return _withSourceRange(WidgetBuilderArgReference(identifier, _readParts()), start);
}
if (identifier == 'switch') {
final SourceLocation? start = _getSourceLocation();
_advance();
Expand All @@ -2397,6 +2392,11 @@ class _Parser {
final Object value = _readValue(widgetBuilderScope: widgetBuilderScope, extended: true);
return _withSourceRange(SetStateHandler(stateReference, value), start);
}
if (widgetBuilderScope.contains(identifier)) {
final SourceLocation? start = _getSourceLocation();
_advance();
return _withSourceRange(WidgetBuilderArgReference(identifier, _readParts()), start);
}
final int index = _loopIdentifiers.lastIndexOf(identifier) + 1;
if (index > 0) {
final SourceLocation? start = _getSourceLocation();
Expand Down