Lines Matching refs:w
30 input func(w *ninjaWriter)
34 input: func(w *ninjaWriter) {
35 ck(w.Comment("foo"))
40 input: func(w *ninjaWriter) {
41 ck(w.Pool("foo"))
46 input: func(w *ninjaWriter) {
47 ck(w.Rule("foo"))
52 input: func(w *ninjaWriter) {
53 ck(w.Build("foo comment", "foo", testNinjaStrings("o1", "o2"),
61 input: func(w *ninjaWriter) {
62 ck(w.Build("foo comment", "foo",
71 input: func(w *ninjaWriter) {
72 ck(w.Default(nil, testNinjaStrings("foo")...))
77 input: func(w *ninjaWriter) {
78 ck(w.Assign("foo", "bar"))
83 input: func(w *ninjaWriter) {
84 ck(w.ScopedAssign("foo", "bar"))
89 input: func(w *ninjaWriter) {
90 ck(w.Subninja("build.ninja"))
95 input: func(w *ninjaWriter) {
96 ck(w.BlankLine())
101 input: func(w *ninjaWriter) {
102 ck(w.Pool("p"))
103 ck(w.ScopedAssign("depth", "3"))
104 ck(w.BlankLine())
105 ck(w.Comment("here comes a rule"))
106 ck(w.Rule("r"))
107 ck(w.ScopedAssign("command", "echo out: $out in: $in _arg: $_arg"))
108 ck(w.ScopedAssign("pool", "p"))
109 ck(w.BlankLine())
110 ck(w.Build("r comment", "r", testNinjaStrings("foo.o"),
112 ck(w.ScopedAssign("_arg", "arg value"))
132 w := newNinjaWriter(buf)
133 testCase.input(w)