/* valacodenode.vala
*
- * Copyright (C) 2006-2009 Jürg Billeter
+ * Copyright (C) 2006-2010 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* been written.
*/
public SourceReference? source_reference { get; set; }
-
+
+ public bool unreachable { get; set; }
+
/**
* Contains all attributes that have been specified for this code node.
*/
private bool unreachable (CodeNode node) {
if (current_block == null) {
+ node.unreachable = true;
if (!unreachable_reported) {
Report.warning (node.source_reference, "unreachable code detected");
unreachable_reported = true;