Updated symbol_table
This commit is contained in:
parent
9cb60b0606
commit
8fe69a6b72
7 changed files with 11 additions and 9 deletions
|
@ -1,9 +1,8 @@
|
|||
# Belatuk Merge Map
|
||||
|
||||
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.1-brightgreen)](https://pub.dartlang.org/packages/belatuk_merge_map)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/belatuk-common-utilities)](https://github.com/dart-backend/belatuk-common-utilities/packages/code_buffer/LICENSE)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/belatuk-common-utilities)](https://github.com/dart-backend/belatuk-common-utilities/packages/merge_map/LICENSE)
|
||||
|
||||
**Replacement of `package:merge_map` with breaking changes to support NNBD.**
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
* Upgraded from `pendantic` to `lints` linter
|
||||
* Published as `belatuk_symbol_table` package
|
||||
* Fixed linter warnings
|
||||
|
||||
## 2.0.2
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# Belatuk Merge Map
|
||||
# Belatuk Symbol Table
|
||||
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.0-brightgreen)](https://pub.dartlang.org/packages/belatuk_symbol_table)
|
||||
[![version](https://img.shields.io/badge/pub-v3.0.1-brightgreen)](https://pub.dartlang.org/packages/belatuk_symbol_table)
|
||||
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)
|
||||
[![Gitter](https://img.shields.io/gitter/room/angel_dart/discussion)](https://gitter.im/angel_dart/discussion)
|
||||
[![License](https://img.shields.io/github/license/dart-backend/belatuk-common-utilities)](https://github.com/dart-backend/belatuk-common-utilities/packages/symbol_table/LICENSE)
|
||||
|
||||
[![License](https://img.shields.io/github/license/dukefirehawk/angel)](https://github.com/dukefirehawk/angel/tree/angel3/packages/symbol_table/LICENSE)
|
||||
**Replacement of `package:symbol_table` with breaking changes to support NNBD.**
|
||||
|
||||
A generic symbol table implementation in Dart, with support for scopes and constants.
|
||||
The symbol tables produced by this package are hierarchical (in this case, tree-shaped),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:belatuk_symbol_table/belatuk_symbol_table.dart';
|
||||
|
||||
void main(List<String> args) {
|
||||
//var mySymbolTable = SymbolTable<int>();
|
||||
|
|
|
@ -139,7 +139,9 @@ class SymbolTable<T> {
|
|||
|
||||
void _wipeLookupCache(String key) {
|
||||
_lookupCache.remove(key);
|
||||
_children.forEach((c) => c._wipeLookupCache(key));
|
||||
for (var c in _children) {
|
||||
c._wipeLookupCache(key);
|
||||
}
|
||||
}
|
||||
|
||||
/// Use [create] instead.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import 'package:angel3_symbol_table/angel3_symbol_table.dart';
|
||||
import 'package:belatuk_symbol_table/belatuk_symbol_table.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
|
|
Loading…
Reference in a new issue