blob: f6e424c378c90da3eded3dc0157b7a83047f4ed2 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is the library
library foo;
using something.or.another as thing;
struct arrays {
array<handle>:1 handle_0;
};
// My oh my
struct DirectoryObject {
int32 y;
};
const uint64 w = 9021;
// Random comment
const uint32 x= 9021;
const uint32 y =9021;
// My wonderful constant
const uint32 z=9021;
// Comment requiring space
enum Enum2:uint32{
enum_0 = 0; // More comments
};
union MyUnion { // super annoying!
string? s;
};
/// Doc comments
/// of multiple
/// lines
struct Foo {
request<Iface>? nullable_request;
vector<handle<channel > > monoid;
vector<handle<channel>>drahvin;
};
// This { should } not be indented
// My interface is so wonderful.
// It is the most wonderful interface of them all.
[Discoverable]
interface Iface
{
Foo()
-> (int i);
[Awesome]
Analyze(handle<process> process, handle<thread> thread)
-> ();
// Figure it out.
-> Bar ( int32 i,int32 k);
Baz(int32 j, string k ) -> ( int32 y );
Nimon(int32 j, string k )
-> ( int32 y );
Cat(string? s) -> (bool b); Karfel(
int32 x) -> (int y);
Gavrok // ( heh heh ->
( // ( An annoying comment.
int a, int b) -> ();
->Goo(int32 p, string : 32 s);
Baz(int32 j, string:40 k
) ->(int32 y );
SomeMethodWithAResponse() -> ();
// A comment that isn't so annoying
MethodResponse(int a, int b, string:40 c,
int d, int e) -> (int f, int g,
int h);
MethodResponse2()
-> ();
MethodResponse3(int64 a) ->
();
/// Doc Comment and
[Attribute]
-> End();
/// Multiple
/// Doc Comments and
[Attribute]
-> End();
-> End();
-> End();
}
;
// Comments at EOF