Changeset View
Changeset View
Standalone View
Standalone View
parser/parsesession.h
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Line(s) | 47 | public: | |||
---|---|---|---|---|---|
91 | void setFeatures(KDevelop::TopDUContext::Features features); | 91 | void setFeatures(KDevelop::TopDUContext::Features features); | ||
92 | 92 | | |||
93 | QString textForNode(go::AstNode* node); | 93 | QString textForNode(go::AstNode* node); | ||
94 | 94 | | |||
95 | void setIncludePaths(const QList<QString> &paths); | 95 | void setIncludePaths(const QList<QString> &paths); | ||
96 | 96 | | |||
97 | void setCanonicalImports(QHash<QString, QString>* imports); | 97 | void setCanonicalImports(QHash<QString, QString>* imports); | ||
98 | 98 | | |||
99 | | ||||
99 | /** | 100 | /** | ||
100 | * Returns doc comment preceding given token. | 101 | * Returns doc comment preceding given token. | ||
101 | * GoDoc comments are multilined /*-style comments | 102 | * GoDoc comments are multilined dash-star-style comments (/\*) | ||
102 | * or several consecutive single-lined //-style comments | 103 | * or several consecutive single-lined dash-dash-style comments (//) | ||
103 | * with no empty line between them. | 104 | * with no empty line between them. | ||
104 | * Comment must start on a new line and end a line before given declaration. | 105 | * Comment must start on a new line and end a line before given declaration. | ||
105 | **/ | 106 | **/ | ||
106 | QByteArray commentBeforeToken(qint64 token); | 107 | QByteArray commentBeforeToken(qint64 token); | ||
107 | 108 | | |||
108 | /** | 109 | /** | ||
109 | * Don't use this function! | 110 | * Don't use this function! | ||
110 | * Most of the times you don't need to access lexer of parseSession directly, | 111 | * Most of the times you don't need to access lexer of parseSession directly, | ||
Show All 31 Lines |