1
- /*
2
- * Copyright 2007-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License").
5
- * You may not use this file except in compliance with the License.
6
- * A copy of the License is located at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * or in the "license" file accompanying this file. This file is distributed
11
- * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12
- * express or implied. See the License for the specific language governing
13
- * permissions and limitations under the License.
14
- */
15
-
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
16
3
package com .amazon .ion .impl ;
17
4
18
5
import static com .amazon .ion .SystemSymbols .ION_1_0 ;
@@ -267,6 +254,7 @@ private static final class IonReaderTextSpan
267
254
implements Span , TextSpan , OffsetSpan
268
255
{
269
256
private final UnifiedDataPageX _data_page ;
257
+ private final SymbolTable _symbols ;
270
258
private final IonType _container_type ;
271
259
272
260
private final long _start_offset ;
@@ -284,6 +272,7 @@ private static final class IonReaderTextSpan
284
272
// page of buffered input Which is the case for the time
285
273
// being. Later, when this is stream aware, this needs to change.
286
274
_data_page = current_stream ._buffer .getCurrentPage ();
275
+ _symbols = reader .getSymbolTable ();
287
276
_container_type = reader .getContainerType ();
288
277
289
278
_start_offset = reader ._value_start_offset - reader ._physical_start_offset ;
@@ -391,6 +380,7 @@ private void hoistImpl(Span span)
391
380
}
392
381
IonType container = text_span .getContainerType ();
393
382
re_init (iis , container , text_span ._start_line , text_span ._start_column );
383
+ _symbols = text_span ._symbols ;
394
384
}
395
385
396
386
0 commit comments