Esempio n. 1
0
File: node.py Progetto: rlofc/cldoc
    def parse_comment(self):
        # Just extract brief and doc
        m = Parser.parse(self._comment.text)

        if len(m.brief) > 0:
            self._comment.brief = m.brief
            self._comment.doc = m.body
Esempio n. 2
0
    def parse_comment(self):
        # Just extract brief and doc
        m = Parser.parse(self._comment.text)

        if len(m.brief) > 0:
            self._comment.brief = m.brief
            self._comment.doc = m.body
Esempio n. 3
0
    def parse_comment(self):
        # Just extract brief and doc
        self._parsed_comment = Parser.parse(self._comment.text)

        if len(self._parsed_comment.brief) > 0:
            self._comment.brief = self._parsed_comment.brief
            self._comment.doc = self._parsed_comment.body
Esempio n. 4
0
    def parse_comment(self):
        # Just extract brief and doc
        self._parsed_comment = Parser.parse(self._comment.text)

        if len(self._parsed_comment.brief) > 0:
            self._comment.brief = self._parsed_comment.brief
            self._comment.doc = self._parsed_comment.body
Esempio n. 5
0
    def parse_comment(self):
        m = Parser.parse(self._comment.text)

        if len(m.brief) > 0:
            self._comment.brief = m.brief
            self._comment.doc = m.body

            for p in m.preparam:
                cm = Comment(p.description, self._comment.location)
                self.template_type_comments[p.name] = cm

                if p.name in self.template_types:
                    self.template_types[p.name].merge_comment(cm)
    def parse_comment(self):
        m = Parser.parse(self._comment.text)

        if len(m.brief) > 0:
            self._comment.brief = m.brief
            self._comment.doc = m.body

            for p in m.preparam:
                cm = Comment(p.description, self._comment.location)
                self.template_type_comments[p.name] = cm

                if p.name in self.template_types:
                    self.template_types[p.name].merge_comment(cm)
Esempio n. 7
0
    def parse_comment(self):
        m = Parser.parse(self._comment.text)
        self._comment.params = {}

        if len(m.brief) > 0:
            self._comment.brief = m.brief
            self._comment.doc = m.body

            for pre in m.preparam:
                self._comment.params[pre.name] = pre.description

            for post in m.postparam:
                if post.name == 'return':
                    self._comment.returns = post.description
Esempio n. 8
0
    def parse_comment(self):
        m = Parser.parse(self._comment.text)
        self._comment.params = {}

        if len(m.brief) > 0:
            self._comment.brief = m.brief
            self._comment.doc = m.body

            for pre in m.preparam:
                self._comment.params[pre.name] = pre.description

            for post in m.postparam:
                if post.name == 'return':
                    self._comment.returns = post.description