Add 'ParseReturnValuesOnly' to the lua prototype parser.
This commit is contained in:
@@ -86,14 +86,29 @@ private:
|
||||
//
|
||||
void Empty();
|
||||
|
||||
// Parse a function prototype.
|
||||
// Parse comma-separated "type name" pairs into ReturnValues.
|
||||
//
|
||||
void Parse(const FString &proto);
|
||||
void ParseReturnValues();
|
||||
|
||||
// Parse a full function prototype (assumes already tokenized).
|
||||
//
|
||||
void Parse();
|
||||
|
||||
// Tokenize the input string.
|
||||
//
|
||||
bool Tokenize(const FString &str);
|
||||
|
||||
public:
|
||||
// Construct with a prototype.
|
||||
// Parse a full function prototype.
|
||||
//
|
||||
FlxParsedProto(const FString &str) { Parse(str); }
|
||||
static FlxParsedProto ParsePrototype(const FString &str);
|
||||
|
||||
// Parse just a comma-separated list of "type name" pairs.
|
||||
//
|
||||
static FlxParsedProto ParseReturnValuesOnly(const FString &str);
|
||||
|
||||
private:
|
||||
FlxParsedProto() { Empty(); }
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user