Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
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ç
Batuhan Osman TASKAYA
geany
Commits
58f0a20b
Kaydet (Commit)
58f0a20b
authored
Tem 29, 2014
tarafından
SiegeLord
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rust: Update test sources to be valid Rust code.
üst
d9e56939
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
12 deletions
+12
-12
test_input.rs
tests/ctags/test_input.rs
+10
-10
test_input.rs.tags
tests/ctags/test_input.rs.tags
+1
-1
test_input2.rs
tests/ctags/test_input2.rs
+1
-1
No files found.
tests/ctags/test_input.rs
Dosyayı görüntüle @
58f0a20b
#
!
fn
ignored_in_comment
()
{}
#
[feature(globs)]
;
#
[feature(macro_rules)]
;
#
!
[
feature
(
globs
)]
#
!
[
feature
(
macro_rules
)]
use
std
::
*
;
use
std
::
io
::
stdio
::
println
;
use
test_input2
::
*
;
...
...
@@ -55,18 +55,18 @@ macro_rules! test_macro
macro_rules!
ignore
((
$
(
$x:tt
)
*
)
=>
(()))
fn
yada
(
a
:
int
,
c
:
Foo
,
b
:
test_input2
::
fruit
::
SomeStruct
)
->
~
str
{
a
.to_str
()
fn
yada
(
a
:
int
,
c
:
Foo
,
b
:
test_input2
::
fruit
::
SomeStruct
)
->
String
{
a
.to_str
ing
()
}
fn
main
()
{
use
test_input2
::
fruit
::
*
;
io
::
println
(
foo_bar_test_func
(
SomeStruct
{
red_value
:
1
,
green_value
:
2
,
blue_value
:
3
},(
4
,
5
))
.to_str
());
io
::
println
(
foo_bar_test_func
(
SomeStruct
{
red_value
:
1
,
green_value
:
2
,
blue_value
:
3
},(
4
,
5
))
.to_str
ing
()
.as_slice
());
let
a
=
Foo
{
foo_field_1
:
2
};
a
.my_method
(
1
);
let
c
=
a_cat
(
3
);
let
d
=
Foo
{
foo_field_1
:
a
.foo_field_1
+
2
};
a
.test
();
println
(
a
.foo_field_1
.to_str
());
println
(
a
.foo_field_1
.to_str
ing
()
.as_slice
());
ignore!
(
fn
ignored_inside_macro
()
{}
...
...
@@ -122,21 +122,21 @@ trait DoZ {
impl Testable for Foo {
fn test(&self) {
println(self.foo_field_1.to_str());
println(self.foo_field_1.to_str
ing().as_slice
());
}
fn test1(&self) {
println(self.foo_field_1.to_str());
println(self.foo_field_1.to_str
ing().as_slice
());
}
fn test2(&self) {
println(self.foo_field_1.to_str());
println(self.foo_field_1.to_str
ing().as_slice
());
}
}
impl DoZ for Foo {
fn do_z(&self) {
println(self.foo_field_1.to_str());
println(self.foo_field_1.to_str
ing().as_slice
());
}
}
...
...
tests/ctags/test_input.rs.tags
Dosyayı görüntüle @
58f0a20b
...
...
@@ -49,4 +49,4 @@ test_macro
x8Foo20
x8TraitedStructTest0
y8Foo20
yada16(a:int,c:Foo,b:test_input2::fruit::SomeStruct) ->
~str
0
yada16(a:int,c:Foo,b:test_input2::fruit::SomeStruct) ->
String
0
tests/ctags/test_input2.rs
Dosyayı görüntüle @
58f0a20b
#
!
[
cfg
(
not
(
test
))]
fn
not_hashbang
()
{}
use
std
::
io
::
stdio
::
println
;
pub
fn
foo_bar_test_func
(
apples
:
fruit
::
SomeStruct
,(
oranges
,
lemon
):(
int
,
int
))
->
int
{
use
std
::
io
::
stdio
::
println
;
let
some_var_name
=
2
*
oranges
;
let
a
=
SomeLongStructName
{
v
:
0
};
println
(
"a"
);
println
(
"b"
);
println
(
"c"
);
...
...
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