MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getFileExtForBackend

Method getFileExtForBackend

lib/compilers/v.ts:132–152  ·  view source on GitHub ↗
(backend: string)

Source from the content-addressed store, hash-verified

130 }
131
132 getFileExtForBackend(backend: string): string | undefined {
133 switch (backend) {
134 case 'c':
135 case 'go':
136 case 'wasm': {
137 return '.' + backend;
138 }
139 case 'js':
140 case 'js_node':
141 case 'js_browser':
142 case 'js_freestanding': {
143 return '.js';
144 }
145 case 'native': {
146 return '';
147 }
148 default: {
149 return undefined;
150 }
151 }
152 }
153
154 patchOutputFilename(outputFilename: string): string {
155 const parts = outputFilename.split('.');

Callers 1

optionsForFilterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected