Skip to content

Commit

Permalink
Remove git rebase message
Browse files Browse the repository at this point in the history
  • Loading branch information
kanghyojun committed Apr 20, 2017
1 parent 19e4d9e commit 16dff98
Showing 1 changed file with 6 additions and 16 deletions.
22 changes: 6 additions & 16 deletions src/Nirum/Targets/Python.hs
Original file line number Diff line number Diff line change
Expand Up @@ -694,18 +694,12 @@ class $className(object):
def __hash__(self){ret "int"}:
return hash(($hashText,))
|]
<<<<<<< b134a67f11ff6a67c8d8da509e3f78fc07bd781a
compileTypeDeclaration src d@TypeDeclaration { typename = typename'
, type' = UnionType tags
} = do
tagCodes <- mapM (compileUnionTag src typename') $ toList tags
=======
compileTypeDeclaration src
TypeDeclaration { typename = typename'
, type' = UnionType tags
, typeAnnotations = annotations } = do
fieldCodes <- mapM (uncurry (compileUnionTag src typename')) tagNameNFields
>>>>>>> Compile throws syntax on Python
d@TypeDeclaration { typename = typename'
, type' = UnionType tags
, typeAnnotations = annotations
} = do
tagCodes <- mapM (compileUnionTag src typename') $ toList tags
let className = toClassName' typename'
tagCodes' = T.intercalate "\n\n" tagCodes
enumMembers = toIndentedCodes
Expand All @@ -720,12 +714,8 @@ compileTypeDeclaration src
ret <- returnCompiler
arg <- parameterCompiler
return [qq|
<<<<<<< b134a67f11ff6a67c8d8da509e3f78fc07bd781a
class $className(object):
{compileDocstring " " d}
=======
class $className({T.intercalate "," $ compileExtendClasses annotations}):
>>>>>>> Compile throws syntax on Python
{compileDocstring " " d}

__nirum_union_behind_name__ = '{I.toSnakeCaseText $ N.behindName typename'}'
__nirum_field_names__ = name_dict_type([
Expand Down

0 comments on commit 16dff98

Please sign in to comment.