-
Notifications
You must be signed in to change notification settings - Fork 76
Feat/interface impl #533
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
base: master
Are you sure you want to change the base?
Feat/interface impl #533
Conversation
@@ -28,8 +28,17 @@ pub struct StructAttributes { | |||
|
|||
#[derive(FromMeta, Debug)] | |||
pub struct ClassEntryAttribute { | |||
ce: syn::Expr, | |||
stub: String, | |||
pub ce: syn::Expr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make pub cause not see necessary to duplicate
@@ -131,6 +131,41 @@ impl<'a> Function<'a> { | |||
format_ident!("_internal_{}", &self.ident) | |||
} | |||
|
|||
pub fn abstract_function_builder(&self) -> TokenStream { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make new builder, cause for interface we don't need a CallType
|
||
impl CleanPhpAttr for Vec<Attribute> { | ||
fn clean_php(&mut self) { | ||
self.retain(|attr| !attr.path().is_ident("php")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just tired write retain for php everywhere))
@@ -125,7 +125,7 @@ struct ParsedImpl<'a> { | |||
} | |||
|
|||
#[derive(Debug, Eq, Hash, PartialEq)] | |||
enum MethodModifier { | |||
pub enum MethodModifier { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make public to not duplicate
@@ -141,7 +141,7 @@ impl quote::ToTokens for MethodModifier { | |||
} | |||
|
|||
#[derive(Debug)] | |||
struct FnBuilder { | |||
pub struct FnBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make public to not duplicate
@@ -151,13 +151,19 @@ struct FnBuilder { | |||
} | |||
|
|||
#[derive(Debug)] | |||
struct Constant<'a> { | |||
pub struct Constant<'a> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make public to not duplicate
df8ad81
to
8a46b3a
Compare
Pull Request Test Coverage Report for Build 16880353614Details
💛 - Coveralls |
#[php_interface] | ||
#[php(extends(ce = ce::throwable, stub = "\\Throwable"))] | ||
#[php(name = "ExtPhpRs\\Interface\\EmptyObjectInterface")] | ||
pub trait EmptyObjectTrait |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Xenira you test for expand, i try make same as you in enum. But get error, i miss something, but idk what)
1cdd123
to
2abe85f
Compare
c4f06b9
to
a1a49ca
Compare
For classes with interface flags, declare __construct as abstract method
a1a49ca
to
b98feae
Compare
f28ffa1
to
b5788e1
Compare
b5788e1
to
3f709ab
Compare
Description
❤️ Thank you for your contribution!