def declaredDependencies(self):
        '''
        flat list of all js modules we have been declared to depend on.
        no actual resolution done here.
        '''
        deps = set() # make this a set in order to eliminate repetitions
        def autocomplete(name):
            if '.' in name: return name
            return name + self.default_extension

        for line in self.read().splitlines():
            line = line.strip()
            if line.startswith('//'):
                words = filter(None, self.noWordRe.split(line))
                if words and words[0] == self.declarationPhrase:
                    scripts = [ autocomplete(x) for x in words[1:] ]
                    deps |= set(scripts)
        return deps

        flat list of all js modules we have been declared to depend on.
        no actual resolution done here.
        
recipes/Python/498265_Server_side_JavaScript_dependency/recipe-498265.py