[vala] Make all Literal constructors accept null SourceReferences



commit afaa34702725d63d7a6cd89c0e5b2eb35a5be19e
Author: Evan Nemerson <evan coeus-group com>
Date:   Sun Mar 14 12:35:29 2010 -0700

    Make all Literal constructors accept null SourceReferences

 vala/valabooleanliteral.vala   |    2 +-
 vala/valacharacterliteral.vala |    2 +-
 vala/valarealliteral.vala      |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/vala/valabooleanliteral.vala b/vala/valabooleanliteral.vala
index db05f0a..bf0842f 100644
--- a/vala/valabooleanliteral.vala
+++ b/vala/valabooleanliteral.vala
@@ -38,7 +38,7 @@ public class Vala.BooleanLiteral : Literal {
 	 * @param source reference to source code
 	 * @return       newly created boolean literal
 	 */
-	public BooleanLiteral (bool b, SourceReference source) {
+	public BooleanLiteral (bool b, SourceReference? source = null) {
 		value = b;
 		source_reference = source;
 	}
diff --git a/vala/valacharacterliteral.vala b/vala/valacharacterliteral.vala
index 9ab7a8c..3d858b4 100644
--- a/vala/valacharacterliteral.vala
+++ b/vala/valacharacterliteral.vala
@@ -52,7 +52,7 @@ public class Vala.CharacterLiteral : Literal {
 	 * @param source reference to source code
 	 * @return       newly created character literal
 	 */
-	public CharacterLiteral (string c, SourceReference source) {
+	public CharacterLiteral (string c, SourceReference? source = null) {
 		value = c;
 		source_reference = source;
 
diff --git a/vala/valarealliteral.vala b/vala/valarealliteral.vala
index cbfca7c..6f327d4 100644
--- a/vala/valarealliteral.vala
+++ b/vala/valarealliteral.vala
@@ -38,7 +38,7 @@ public class Vala.RealLiteral : Literal {
 	 * @param source reference to source code
 	 * @return       newly created real literal
 	 */
-	public RealLiteral (string r, SourceReference source) {
+	public RealLiteral (string r, SourceReference? source = null) {
 		value = r;
 		source_reference = source;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]