Commits

SirAlaran committed 7cd9413

Fixed handling of ref attribute, Fixed lua output for interfaces

  • Participants
  • Parent commits 7481c0a

Comments (0)

Files changed (3)

 		TokenType.t__gshared, TokenType.tShared, TokenType.tImmutable,
 		TokenType.tInout, TokenType.tSynchronized, TokenType.atDisable,
 		TokenType.atProperty, TokenType.atSafe, TokenType.atSystem,
-		TokenType.atTrusted, TokenType.tNothrow, TokenType.tPure)(input);
+		TokenType.atTrusted, TokenType.tNothrow, TokenType.tPure,
+		TokenType.tRef)(input);
 }
 
 template expandCases(options...)
 			case TokenType.tShared:
 			case TokenType.tImmutable:
 			case TokenType.tInout:
+			case TokenType.tRef:
 				tokens ~= range.popFront();
 				if (range.front() == TokenType.lParen)
 				{
 					tokens[$-1].type = TokenType.identifier;
 					tokens[$-1].value ~= "(";
-					foreach(t; betweenBalancedParens(range))
+					foreach (t; betweenBalancedParens(range))
 						tokens[$-1].value ~= t.value;
 					tokens[$-1].value ~= ")";
 					if (range.front() == TokenType.star)
 		.printStringArrayLua(file, "parents", parents);
 		file.write(",");
 		.printLua(file, "functions", functions);
+		file.write(",");
+		.printLua(file, "variables", []);
 		file.write("}");
 	}