File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,19 @@ compilation_args(
60
60
string arg : string ref
61
61
);
62
62
63
+ /**
64
+ * The expanded arguments that were passed to the extractor for a
65
+ * compiler invocation. This is similar to `compilation_args`, but
66
+ * for a `@@@someFile` argument, it includes the arguments from that
67
+ * file, rather than just taking the argument literally.
68
+ */
69
+ #keyset[id, num]
70
+ compilation_expanded_args(
71
+ int id : @compilation ref,
72
+ int num : int ref,
73
+ string arg : string ref
74
+ );
75
+
63
76
/**
64
77
* The source files that are compiled by a compiler invocation.
65
78
* If `id` is for the compiler invocation
Original file line number Diff line number Diff line change @@ -83,6 +83,16 @@ class Compilation extends @compilation {
83
83
*/
84
84
string getArgument ( int i ) { compilation_args ( this , i , result ) }
85
85
86
+ /**
87
+ * Gets an expanded argument passed to the extractor on this invocation.
88
+ */
89
+ string getAnExpandedArgument ( ) { result = getExpandedArgument ( _) }
90
+
91
+ /**
92
+ * Gets the `i`th expanded argument passed to the extractor on this invocation.
93
+ */
94
+ string getExpandedArgument ( int i ) { compilation_expanded_args ( this , i , result ) }
95
+
86
96
/**
87
97
* Gets the total amount of CPU time spent processing all the files in the
88
98
* compiler.
You can’t perform that action at this time.
0 commit comments