Add 'ctx.actions' and implement 'ctx.action.declare_file'.

RELNOTES: None.
PiperOrigin-RevId: 160264501
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java b/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java
index 20a7084..c7bec75 100644
--- a/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java
+++ b/src/test/java/com/google/devtools/build/lib/syntax/ParserTest.java
@@ -471,8 +471,8 @@
     assertThat(parseFile("x[1::2]").toString()).isEqualTo("[x[1::2]\n]");
     assertThat(parseFile("x[1:]").toString()).isEqualTo("[x[1:]\n]");
     assertThat(parseFile("str[42]").toString()).isEqualTo("[str[42]\n]");
-    assertThat(parseFile("ctx.new_file('hello')").toString())
-        .isEqualTo("[ctx.new_file(\"hello\")\n]");
+    assertThat(parseFile("ctx.actions.declare_file('hello')").toString())
+        .isEqualTo("[ctx.actions.declare_file(\"hello\")\n]");
     assertThat(parseFile("new_file(\"hello\")").toString()).isEqualTo("[new_file(\"hello\")\n]");
   }