Skip to content

SIDzero support#120

Merged
wesboyt merged 15 commits intomasterfrom
symbol_id_zero
Sep 6, 2017
Merged

SIDzero support#120
wesboyt merged 15 commits intomasterfrom
symbol_id_zero

Conversation

@wesboyt
Copy link
Copy Markdown
Contributor

@wesboyt wesboyt commented Sep 6, 2017

-changed functionality that assumed that fieldID is a unique identifier for a symbolID
-removed testHugeWrite due to travis memory restrictions.
-added support for sid0 in ID lookup logic.

final void setFieldNameSymbol(SymbolToken name)
{
assert(this.getContainer() == null);
//assert(this.getContainer() == null);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just delete the line.

public final SymbolToken getKnownFieldNameSymbol()
{
SymbolToken token = this.getFieldNameSymbol();
if(this.getFieldName() == null && token.getSid() != 0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this.getFieldName(), why isn't this just token.getName()?

IonValueLite copy = child.clone(childContext);
if (isStruct) copy.setFieldName(child.getFieldName());
if (isStruct) {
copy.setFieldNameSymbol(child.getKnownFieldNameSymbol());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is indented with 8 spaces, should be 4 to match the rest of the file.

@wesboyt wesboyt merged commit 3dddf97 into master Sep 6, 2017
@wesboyt wesboyt deleted the symbol_id_zero branch September 6, 2017 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants