Skip to content

[libSyntax] Support parsing several type kinds #13143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 30, 2017

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Nov 29, 2017

  • ArrayType ([Elem])
  • DictionaryType ([Key: Val])
  • OptionalType (?)
  • ImplicitlyUnwrappedOptionalType (!)
  • MetatypeType (.Type, .Protocol)

@rintaro
Copy link
Member Author

rintaro commented Nov 29, 2017

@swift-ci Please smoke test

@rintaro rintaro requested a review from nkcsgexi November 29, 2017 14:23
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

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

Looking good! One minor comment.

.usePeriod(SyntaxContext->popToken())
.useBaseType(SyntaxContext->popIf<TypeSyntax>().getValue());
SyntaxContext->addSyntax(Builder.build());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we extract a function for the above block to reduce dupe?

* OptionalType (?)
* ImplicitlyUnwrappedOptional (!)
* MetatypeType (.Type, .Protocol)
@rintaro rintaro force-pushed the syntax-parse-type-collection branch from 9cc2772 to d389a81 Compare November 30, 2017 05:32
@rintaro
Copy link
Member Author

rintaro commented Nov 30, 2017

@swift-ci Please smoke test

@rintaro rintaro merged commit 6c18230 into swiftlang:master Nov 30, 2017
@rintaro rintaro deleted the syntax-parse-type-collection branch January 23, 2018 16:30
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