Skip to content

Rejects duplicate symbol/import fields in the symbol table declaration#119

Merged
tgregg merged 6 commits intomasterfrom
duplicate_symbol_fields
Sep 6, 2017
Merged

Rejects duplicate symbol/import fields in the symbol table declaration#119
tgregg merged 6 commits intomasterfrom
duplicate_symbol_fields

Conversation

@wesboyt
Copy link
Copy Markdown
Contributor

@wesboyt wesboyt commented Aug 14, 2017

#35

@wesboyt wesboyt assigned tgregg and unassigned tgregg Aug 14, 2017
@wesboyt wesboyt requested a review from tgregg August 14, 2017 22:22
Copy link
Copy Markdown
Contributor

@tgregg tgregg left a comment

Choose a reason for hiding this comment

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

Looks good -- staying tuned for the added ion-tests coverage.

// As per the Spec, other field types are treated as
// empty lists
if(foundLocalSymbolList){
throw new IonException("Multiple symbol tables found.");
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.

"Multiple symbols fields found within a single local symbol table."

case IMPORTS_SID:
{
if(foundImportList){
throw new IonException("Multiple import tables found.");
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.

"Multiple imports fields found within a single local symbol table."

@tgregg tgregg closed this Sep 6, 2017
@tgregg tgregg reopened this Sep 6, 2017
@tgregg tgregg merged commit c92a567 into master Sep 6, 2017
@wesboyt wesboyt deleted the duplicate_symbol_fields branch September 6, 2017 18:49
// empty lists
if(foundLocalSymbolList){
throw new IonException("Multiple symbol tables found.");
throw new IonException("Multiple symbol fields found within a single local symbol table.");
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.

These error messages really need to include location information. Humans are going to want to debug this stuff, and we need to provide them with all relevant context at hand.

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.

3 participants