diff options
author | matthewsotoudeh <matthewsot@outlook.com> | 2014-11-27 21:20:28 -0800 |
---|---|---|
committer | matthewsotoudeh <matthewsot@outlook.com> | 2014-11-27 21:20:28 -0800 |
commit | de95d52cbf167a0392528d5beb73eb29d2281dda (patch) | |
tree | fa9715a1cd4a3bfb51500368e0f399bae8b16bad | |
parent | 53c8b86aa81b3121b1b9fefb179770c4d3c767a2 (diff) |
fixed parameter syntax parser
-rw-r--r-- | SharpSwift/SharpSwift/Converters/ParameterSyntaxParser.cs | 2 | ||||
-rw-r--r-- | SharpSwift/SharpSwift/SharpSwift.csproj | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/SharpSwift/SharpSwift/Converters/ParameterSyntaxParser.cs b/SharpSwift/SharpSwift/Converters/ParameterSyntaxParser.cs index b7c95eb..13aa097 100644 --- a/SharpSwift/SharpSwift/Converters/ParameterSyntaxParser.cs +++ b/SharpSwift/SharpSwift/Converters/ParameterSyntaxParser.cs @@ -39,7 +39,7 @@ namespace SharpSwift.Converters [ParsesType(typeof(TypeParameterSyntax))] public static string TypeParameter(TypeParameterSyntax param) { - if (!(param.Parent.Parent is MethodDeclarationSyntax)) return param.Identifier.Text + constraint; + if (!(param.Parent.Parent is MethodDeclarationSyntax)) return param.Identifier.Text; var typeConstraints = ((MethodDeclarationSyntax)param.Parent.Parent).ConstraintClauses; var constraints = typeConstraints diff --git a/SharpSwift/SharpSwift/SharpSwift.csproj b/SharpSwift/SharpSwift/SharpSwift.csproj index ca7edf2..606746a 100644 --- a/SharpSwift/SharpSwift/SharpSwift.csproj +++ b/SharpSwift/SharpSwift/SharpSwift.csproj @@ -66,17 +66,20 @@ </ItemGroup> <ItemGroup> <Compile Include="ArgData.cs" /> + <Compile Include="Converters\ArgumentSyntaxParser.cs" /> <Compile Include="Converters\AttributeSyntaxParser.cs" /> <Compile Include="Converters\DeclarationSyntaxParser.cs" /> <Compile Include="Converters\ExpressionSyntaxParser.cs" /> <Compile Include="Converters\LambdaSyntaxParser.cs" /> + <Compile Include="Converters\LogicSyntaxParser.cs" /> <Compile Include="Converters\LoopSyntaxParser.cs" /> <Compile Include="Converters\ListSyntaxParser.cs" /> <Compile Include="Converters\MemberDeclarationParser.cs" /> <Compile Include="Converters\MiscellaneousSyntaxParser.cs" /> <Compile Include="Converters\NameSyntaxParser.cs" /> + <Compile Include="Converters\ParameterSyntaxParser.cs" /> <Compile Include="Converters\ParsesTypeAttribute.cs" /> - <Compile Include="Converters\InitializerSyntaxParser.cs" /> + <Compile Include="Converters\ClauseSyntaxParser.cs" /> <Compile Include="Converters\StatementSyntaxParser.cs" /> <Compile Include="Converters\SyntaxNodeConverter.cs" /> <Compile Include="Converters\TypeParser.cs" /> |