示例#1
0
文件: node.py 项目: 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
示例#2
0
文件: node.py 项目: oscarmike/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
示例#3
0
文件: node.py 项目: CTrauma/cldoc
    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
示例#4
0
文件: node.py 项目: topisani/cldoc
    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
示例#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)
示例#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
示例#8
0
文件: function.py 项目: rlofc/cldoc
    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