Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
6b6b827d
Commit
6b6b827d
authored
Jan 19, 2010
by
Roberto Raggi
Browse files
Added helper method QmlJSIndenter::tokenText().
parent
a5df2e7b
Changes
2
Show whitespace changes
Inline
Side-by-side
src/libs/qmljs/qmljsindenter.cpp
View file @
6b6b827d
...
...
@@ -321,6 +321,11 @@ Token QmlJSIndenter::lastToken() const
return
Token
();
}
QStringRef
QmlJSIndenter
::
tokenText
(
const
Token
&
token
)
const
{
return
yyLinizerState
.
line
.
midRef
(
token
.
offset
,
token
.
length
);
}
/*
Saves and restores the state of the global linizer. This enables
backtracking.
...
...
src/libs/qmljs/qmljsindenter.h
View file @
6b6b827d
...
...
@@ -85,6 +85,7 @@ private:
int
indentForStandaloneLine
();
Token
lastToken
()
const
;
QStringRef
tokenText
(
const
Token
&
token
)
const
;
private:
int
ppHardwareTabSize
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment