Permalink
Browse files

Function newInterface is optimized.

  • Loading branch information...
1 parent 2588796 commit 14bd8bef058186771c31fc99ebf8c7f37c14974a @MaximTrushin committed Mar 3, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/Boo.OMeta.Parser/AST.boo
  2. +1 −1 src/Boo.OMeta.Parser/BooParser.boo
@@ -298,7 +298,7 @@ def newNamedArgument(name, value):
return ExpressionPair(First: newReference(name), Second: value)
def newInterface(attributes, modifiers, name, genericParameters, baseTypes, members):
- return setUpType(InterfaceDefinition(Name: tokenValue(name)), attributes, modifiers, genericParameters, baseTypes, members)
+ return setUpType(InterfaceDefinition(Name: name), attributes, modifiers, genericParameters, baseTypes, members)
def newInvocation(target as Expression, args as List, genericArgs as object):
@@ -180,7 +180,7 @@ ometa BooParser(compilerParameters as CompilerParameters) < WhitespaceSensitiveT
attributes >> attrs,
member_modifiers >> mod,
INTERFACE, ID >> name, optional_generic_parameters >> genericParameters, super_types >> superTypes, begin_block, interface_body >> body, end_block
- ) ^ newInterface(attrs, mod, name, genericParameters, superTypes, body)
+ ) ^ newInterface(attrs, mod, tokenValue(name), genericParameters, superTypes, body)
enum_def = (
attributes >> attrs,

0 comments on commit 14bd8be

Please sign in to comment.