Skip to content

Commit

Permalink
feat: rename token to value
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon committed Feb 23, 2023
1 parent fa97ad9 commit 2486013
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

A Command-Line Interface for explorer flutter/dart simplified ast.

**The goal is to have the type, name, value, offset and end in the file.**

---

## Getting Started 🚀
Expand Down
2 changes: 1 addition & 1 deletion lib/src/commands/tree/ast/dart_simple_identifier.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ class DartSimpleIdentifier extends DartAstNode {
String get token => _entity.token.lexeme;

@override
Map<String, Object?> toMap() => super.toMap()..addAll({'token': token});
Map<String, Object?> toMap() => super.toMap()..addAll({'value': token});
}
Loading

0 comments on commit 2486013

Please sign in to comment.