File tree Expand file tree Collapse file tree 6 files changed +12
-16
lines changed Expand file tree Collapse file tree 6 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ impl Displayable for Document {
40
40
41
41
impl Displayable for Definition {
42
42
fn display ( & self , f : & mut Formatter ) {
43
+ f. margin ( ) ;
43
44
match * self {
44
45
Definition :: SchemaDefinition ( ref s) => s. display ( f) ,
45
46
Definition :: TypeDefinition ( ref t) => t. display ( f) ,
@@ -283,8 +284,9 @@ impl Displayable for EnumType {
283
284
f. endline ( ) ;
284
285
}
285
286
f. end_block ( ) ;
287
+ } else {
288
+ f. endline ( ) ;
286
289
}
287
- f. endline ( ) ;
288
290
}
289
291
}
290
292
Original file line number Diff line number Diff line change @@ -47,5 +47,4 @@ fn roundtrip2(filename: &str) {
47
47
#[ test] fn input_type ( ) { roundtrip ( "input_type" ) ; }
48
48
#[ test] fn extend_input ( ) { roundtrip2 ( "extend_input" ) ; }
49
49
#[ test] fn directive ( ) { roundtrip ( "directive" ) ; }
50
- // Not yet fully supported
51
- // #[test] fn kitchen_sink() { roundtrip2("kitchen-sink"); }
50
+ #[ test] fn kitchen_sink ( ) { roundtrip2 ( "kitchen-sink" ) ; }
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ enum Site {
2
2
DESKTOP
3
3
MOBILE
4
4
}
5
-
Original file line number Diff line number Diff line change 1
1
type Type1 implements IOne
2
+
2
3
type Type1 implements IOne & ITwo
Original file line number Diff line number Diff line change 1
1
type Type1 implements IOne & ITwo
2
+
2
3
type Type2 implements IOne
Original file line number Diff line number Diff line change 4
4
}
5
5
6
6
"""
7
- This is a description
8
- of the `Foo` type.
7
+ This is a description
8
+ of the `Foo` type.
9
9
"""
10
10
type Foo implements Bar & Baz {
11
11
one : Type
@@ -50,7 +50,7 @@ union Feed = Story | Article | Advert
50
50
51
51
union AnnotatedUnion @onUnion = A | B
52
52
53
- union AnnotatedUnionTwo @onUnion = | A | B
53
+ union AnnotatedUnionTwo @onUnion = A | B
54
54
55
55
union UndefinedUnion
56
56
@@ -94,19 +94,13 @@ input AnnotatedInput @onInputObject {
94
94
input UndefinedInput
95
95
96
96
extend input InputType {
97
- other : Float = 1.23 e4
97
+ other : Float = 12300
98
98
}
99
99
100
100
extend input InputType @onInputObject
101
101
102
102
directive @skip (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
103
103
104
- directive @include (if : Boolean ! )
105
- on FIELD
106
- | FRAGMENT_SPREAD
107
- | INLINE_FRAGMENT
104
+ directive @include (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
108
105
109
- directive @include2 (if : Boolean ! ) on
110
- | FIELD
111
- | FRAGMENT_SPREAD
112
- | INLINE_FRAGMENT
106
+ directive @include2 (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
You can’t perform that action at this time.
0 commit comments