Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
0f8f733e
Kaydet (Commit)
0f8f733e
authored
Şub 16, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
move parsing of method ags into SvIdlParser
Change-Id: I2fb969529c0670ae93c3cba69bf207d2c87887dc
üst
291a10ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
12 deletions
+23
-12
lex.hxx
idl/inc/lex.hxx
+1
-7
types.hxx
idl/inc/types.hxx
+2
-1
parser.cxx
idl/source/prj/parser.cxx
+20
-4
No files found.
idl/inc/lex.hxx
Dosyayı görüntüle @
0f8f733e
...
...
@@ -166,7 +166,7 @@ public:
return
*
(
*
pRetToken
).
get
();
}
SvToken
&
GetToken_Next
All
()
SvToken
&
GetToken_Next
()
{
std
::
vector
<
std
::
unique_ptr
<
SvToken
>
>::
iterator
pRetToken
=
pCurToken
++
;
...
...
@@ -178,12 +178,6 @@ public:
return
*
(
*
pRetToken
).
get
();
}
SvToken
&
GetToken_Next
()
{
// comments get removed initially
return
GetToken_NextAll
();
}
SvToken
&
GetToken
()
const
{
return
*
(
*
pCurToken
).
get
();
}
bool
ReadIf
(
char
cChar
)
...
...
idl/inc/types.hxx
Dosyayı görüntüle @
0f8f733e
...
...
@@ -62,7 +62,6 @@ class SvMetaType : public SvMetaReference
SvStream
&
rOutStm
);
protected
:
bool
ReadNamesSvIdl
(
SvTokenStream
&
rInStm
);
virtual
void
ReadContextSvIdl
(
SvIdlDataBase
&
,
SvTokenStream
&
rInStm
)
override
;
bool
ReadHeaderSvIdl
(
SvIdlDataBase
&
,
SvTokenStream
&
rInStm
);
public
:
...
...
@@ -71,6 +70,8 @@ public:
virtual
~
SvMetaType
();
virtual
void
ReadContextSvIdl
(
SvIdlDataBase
&
,
SvTokenStream
&
rInStm
)
override
;
SvRefMemberList
<
SvMetaAttribute
*>&
GetAttrList
()
{
return
aAttrList
;
}
sal_uLong
GetAttrCount
()
const
{
return
aAttrList
.
size
();
}
...
...
idl/source/prj/parser.cxx
Dosyayı görüntüle @
0f8f733e
...
...
@@ -404,11 +404,27 @@ bool SvIdlParser::ReadInterfaceOrShellMethodOrAttribute( SvMetaAttribute& rAttr
rAttr
.
aSlotId
.
SetValue
(
n
);
bOk
=
true
;
SvToken
&
rTok
=
rInStm
.
GetToken
();
if
(
rTok
.
IsChar
()
&&
rTok
.
GetChar
()
==
'('
)
if
(
rInStm
.
ReadIf
(
'('
)
)
{
bOk
=
rAttr
.
aType
->
ReadMethodArgs
(
rBase
,
rInStm
);
}
// read method arguments
tools
::
SvRef
<
SvMetaType
>
xT
(
new
SvMetaType
()
);
xT
->
SetRef
(
rAttr
.
GetType
()
);
rAttr
.
aType
=
xT
;
sal_uInt32
nBeginPos
=
0
;
// can not happen with Tell
while
(
nBeginPos
!=
rInStm
.
Tell
()
)
{
nBeginPos
=
rInStm
.
Tell
();
tools
::
SvRef
<
SvMetaAttribute
>
xAttr
(
new
SvMetaAttribute
()
);
if
(
xAttr
->
ReadSvIdl
(
rBase
,
rInStm
)
)
{
if
(
xAttr
->
Test
(
rInStm
)
)
rAttr
.
aType
->
GetAttrList
().
push_back
(
xAttr
);
}
rInStm
.
ReadIfDelimiter
();
}
ReadChar
(
')'
);
rAttr
.
aType
->
SetType
(
MetaTypeType
::
Method
);
}
if
(
bOk
&&
rInStm
.
ReadIf
(
'['
)
)
{
ReadChar
(
']'
);
...
...
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