#NEWLINE# def testScope_usedTypeAlias( self ) : #NEWLINE# #INDENT# 'Tests aliased symbols in type annotations.' #NEWLINE# input_lines = [ 'goog.scope(function() {' , 'var Event = goog.events.Event;' , '/** @type {Event} */;' , '});' ] #NEWLINE# namespaces_info = self . _GetNamespacesInfoForScript ( input_lines , [ 'goog' ] ) #NEWLINE# ( missing_requires , illegal_alias_stmts ) = namespaces_info . GetMissingRequires ( ) #NEWLINE# self . assertEquals ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , missing_requires ) #NEWLINE# self . assertEquals ( { #NEWLINE# #INDENT# 'goog.events' : 2 , #NEWLINE# #UNINDENT# } , _ToLineDict ( illegal_alias_stmts ) )