Skip to content

Commit

Permalink
fix signatures of commented-out methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Oct 1, 2015
1 parent 1e8b639 commit ae32cbc
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/ceylon/language/meta/declaration/GettableDeclaration.ceylon
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,20 @@ import ceylon.language.meta.model {

"""Abstraction over declarations from which a value can be obtained, namely
* [[ValueDeclaration]]s which abstracts over values and attributes
* [[ValueConstructorDeclaration]]s which represents value constructors
* [[ValueDeclaration]] which abstracts over values and attributes
* [[ValueConstructorDeclaration]] which represents value constructors
"""
shared sealed interface GettableDeclaration {
//"Applies this value declaration in order to obtain a value model.
// See [this code sample](#toplevel-sample) for an example on how to use this."
//throws(`class IncompatibleTypeException`, "If the specified `Get` or `Set` type arguments are not compatible with the actual result.")
//shared formal ValueModel<Get, Set>&Gettable<Get> apply<Get=Anything, Set=Nothing>();
//
//"Applies the given closed container type to this attribute declaration in order to obtain an attribute model.
// See [this code sample](#member-sample) for an example on how to use this."
//throws(`class IncompatibleTypeException`, "If the specified `Container`, `Get` or `Set` type arguments are not compatible with the actual result.")
//shared formal ValueModel<Get, Set>&Qualified<ValueModel<Get,Set>, Container> memberApply<Container=Nothing, Get=Anything, Set=Nothing>(AppliedType<Object> containerType);

/*"Applies this value declaration in order to obtain a value model.
See [this code sample](#toplevel-sample) for an example on how to use this."
throws(`class IncompatibleTypeException`, "If the specified `Get` or `Set` type arguments are not compatible with the actual result.")
shared formal ValueModel<Get>&Gettable<Get> gettableApply<Get=Anything>();
"Applies the given closed container type to this attribute declaration in order to obtain an attribute model.
See [this code sample](#member-sample) for an example on how to use this."
throws(`class IncompatibleTypeException`, "If the specified `Container`, `Get` or `Set` type arguments are not compatible with the actual result.")
shared formal ValueModel<Get>&Qualified<ValueModel<Get>, Container> memberGettableApply<Container=Nothing, Get=Anything>(AppliedType<Object> containerType);*/

"Reads the current value of this toplevel value."
shared formal Anything get();
Expand All @@ -32,6 +33,5 @@ shared sealed interface GettableDeclaration {
throws(`class StorageException`,
"If this attribute is not stored at runtime, for example if it is neither shared nor captured.")
shared formal Anything memberGet(Object container);
//=> memberApply<Nothing, Anything, Nothing>(`Nothing`).bind(container).get();

}

0 comments on commit ae32cbc

Please sign in to comment.