Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: pkg/analyzer_experimental/lib/src/generated/utilities_collection.dart

Issue 45573002: Rename analyzer_experimental to analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweaks before publishing. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer_experimental/lib/src/generated/utilities_collection.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/utilities_collection.dart b/pkg/analyzer_experimental/lib/src/generated/utilities_collection.dart
deleted file mode 100644
index adda610786f910e99281029149130a17de48fb6d..0000000000000000000000000000000000000000
--- a/pkg/analyzer_experimental/lib/src/generated/utilities_collection.dart
+++ /dev/null
@@ -1,124 +0,0 @@
-// This code was auto-generated, is not intended to be edited, and is subject to
-// significant change. Please see the README file for more information.
-library engine.utilities.collection;
-import 'java_core.dart';
-import 'scanner.dart' show Token;
-/**
- * The class `BooleanArray` defines methods for operating on integers as if they were arrays
- * of booleans. These arrays can be indexed by either integers or by enumeration constants.
- */
-class BooleanArray {
-
- /**
- * Return the value of the element at the given index.
- *
- * @param array the array being accessed
- * @param index the index of the element being accessed
- * @return the value of the element at the given index
- * @throws IndexOutOfBoundsException if the index is not between zero (0) and 31, inclusive
- */
- static bool get(int array, Enum index) => get2(array, index.ordinal);
-
- /**
- * Return the value of the element at the given index.
- *
- * @param array the array being accessed
- * @param index the index of the element being accessed
- * @return the value of the element at the given index
- * @throws IndexOutOfBoundsException if the index is not between zero (0) and 31, inclusive
- */
- static bool get2(int array, int index) {
- checkIndex(index);
- return (array & (1 << index)) > 0;
- }
-
- /**
- * Set the value of the element at the given index to the given value.
- *
- * @param array the array being modified
- * @param index the index of the element being set
- * @param value the value to be assigned to the element
- * @return the updated value of the array
- * @throws IndexOutOfBoundsException if the index is not between zero (0) and 31, inclusive
- */
- static int set(int array, Enum index, bool value) => set2(array, index.ordinal, value);
-
- /**
- * Set the value of the element at the given index to the given value.
- *
- * @param array the array being modified
- * @param index the index of the element being set
- * @param value the value to be assigned to the element
- * @return the updated value of the array
- * @throws IndexOutOfBoundsException if the index is not between zero (0) and 31, inclusive
- */
- static int set2(int array, int index, bool value) {
- checkIndex(index);
- if (value) {
- return array | (1 << index);
- } else {
- return array & ~(1 << index);
- }
- }
-
- /**
- * Throw an exception if the index is not within the bounds allowed for an integer-encoded array
- * of boolean values.
- *
- * @throws IndexOutOfBoundsException if the index is not between zero (0) and 31, inclusive
- */
- static void checkIndex(int index) {
- if (index < 0 || index > 30) {
- throw new RangeError("Index not between 0 and 30: ${index}");
- }
- }
-}
-/**
- * Instances of the class `TokenMap` map one set of tokens to another set of tokens.
- */
-class TokenMap {
-
- /**
- * A table mapping tokens to tokens. This should be replaced by a more performant implementation.
- * One possibility is a pair of parallel arrays, with keys being sorted by their offset and a
- * cursor indicating where to start searching.
- */
- Map<Token, Token> _map = new Map<Token, Token>();
-
- /**
- * Return the token that is mapped to the given token, or `null` if there is no token
- * corresponding to the given token.
- *
- * @param key the token being mapped to another token
- * @return the token that is mapped to the given token
- */
- Token get(Token key) => _map[key];
-
- /**
- * Map the key to the value.
- *
- * @param key the token being mapped to the value
- * @param value the token to which the key will be mapped
- */
- void put(Token key, Token value) {
- _map[key] = value;
- }
-}
-/**
- * The class `ListUtilities` defines utility methods useful for working with [List
- ].
- */
-class ListUtilities {
-
- /**
- * Add all of the elements in the given array to the given list.
- *
- * @param list the list to which the elements are to be added
- * @param elements the elements to be added to the list
- */
- static void addAll(List list, List<Object> elements) {
- for (Object element in elements) {
- list.add(element);
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698