Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Make sure the super type of a member exists
Browse files Browse the repository at this point in the history
  • Loading branch information
pksunkara committed Apr 1, 2015
1 parent 97759b7 commit 6109609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/mson-member-type-name.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports =
superType = member.content.valueDefinition.typeDefinition.typeSpecification.name

# If super type is a valid symbol
if typeof superType is 'object' and superType?.literal
if typeof superType is 'object' and superType?.literal and @dataStructures[superType.literal]
@expandMember superType.literal, @dataStructures[superType.literal]

superTypeBaseName = @dataStructures[superType.literal].typeDefinition.typeSpecification.name
Expand Down

0 comments on commit 6109609

Please sign in to comment.