Skip to content

Commit

Permalink
Update the file
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaiyarasiganeshalingam committed Aug 14, 2023
2 parents d3d5cd7 + 335415d commit 0b5eaef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private void processTypeDefinitionNode(TypeDefinitionNode typeDefinitionNode) {
Node typeDescriptor = typeDefinitionNode.typeDescriptor();
if (typeDescriptor instanceof RecordTypeDescriptorNode) {
RecordTypeDescriptorNode recordTypeDescriptorNode = (RecordTypeDescriptorNode) typeDescriptor;
Record record = new Record(typeDefinitionNode.typeName().text(), typeDefinitionNode.location());
Record record = new Record(typeDefinitionNode.typeName().text().trim(), typeDefinitionNode.location());
typeDefinitionNode.metadata().ifPresent(metadataNode -> {
NodeList<AnnotationNode> annotations = metadataNode.annotations();
for (AnnotationNode annotationNode : annotations) {
Expand Down

0 comments on commit 0b5eaef

Please sign in to comment.