(uri: string)
| 1925 | // Returns the shared namespace for `uri`. Finding it costs the length of |
| 1926 | // `uri`, which is part of the declaration being read. |
| 1927 | private intern(uri: string): Namespace { |
| 1928 | let namespace = this.namespacesByName.get(uri) |
| 1929 | if (namespace === undefined) { |
| 1930 | namespace = { uri: copyString(uri) } |
| 1931 | this.namespacesByName.set(namespace.uri, namespace) |
| 1932 | } |
| 1933 | return namespace |
| 1934 | } |
| 1935 | |
| 1936 | // Undoes the binding changes made since `undo` was the length of the log |
| 1937 | private restore(undo: number): void { |
no test coverage detected