microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
src/extension/appLauncher.ts
376lines · modeblame
6e1bcd36RedMickey6 years ago | 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. | |
| 3 | | |
| 4 | import * as vscode from "vscode"; | |
| 5 | import {Packager} from "../common/packager"; | |
| 6 | import {RNPackageVersions} from "../common/projectVersionHelper"; | |
| 7 | import {ExponentHelper} from "./exponent/exponentHelper"; | |
| 8 | import {ReactDirManager} from "./reactDirManager"; | |
| 9 | import {SettingsHelper} from "./settingsHelper"; | |
| 10 | import {PackagerStatusIndicator} from "./packagerStatusIndicator"; | |
| 11 | import {CommandExecutor} from "../common/commandExecutor"; | |
| 12 | import {isNullOrUndefined} from "../common/utils"; | |
| 13 | import {OutputChannelLogger} from "./log/OutputChannelLogger"; | |
68a5b8d5JiglioNero5 years ago | 14 | import {MobilePlatformDeps, GeneralMobilePlatform} from "./generalMobilePlatform"; |
6e1bcd36RedMickey6 years ago | 15 | import {PlatformResolver} from "./platformResolver"; |
| 16 | import {ProjectVersionHelper} from "../common/projectVersionHelper"; | |
| 17 | import {TelemetryHelper} from "../common/telemetryHelper"; | |
| 18 | import {ErrorHelper} from "../common/error/errorHelper"; | |
| 19 | import {InternalErrorCode} from "../common/error/internalErrorCode"; | |
| 20 | import {TargetPlatformHelper} from "../common/targetPlatformHelper"; | |
| 21 | import {LogCatMonitor} from "./android/logCatMonitor"; | |
f872f4d5RedMickey6 years ago | 22 | import {ProjectsStorage} from "./projectsStorage"; |
a6562589RedMickey6 years ago | 23 | import {ReactNativeCDPProxy} from "../cdp-proxy/reactNativeCDPProxy"; |
| 24 | import {generateRandomPortNumber} from "../common/extensionHelper"; | |
5514e287RedMickey6 years ago | 25 | import {DEBUG_TYPES} from "./debugConfigurationProvider"; |
6e1bcd36RedMickey6 years ago | 26 | import * as nls from "vscode-nls"; |
7e74daf7Yuri Skorokhodov6 years ago | 27 | import { MultipleLifetimesAppWorker } from "../debugger/appWorker"; |
259c018fYuri Skorokhodov5 years ago | 28 | import { PlatformType } from "./launchArgs"; |
68a5b8d5JiglioNero5 years ago | 29 | import { LaunchScenariosManager } from "./launchScenariosManager"; |
| 30 | import { IVirtualDevice } from "./VirtualDeviceManager"; | |
2d8af448Yuri Skorokhodov6 years ago | 31 | nls.config({ messageFormat: nls.MessageFormat.bundle, bundleFormat: nls.BundleFormat.standalone })(); |
6e1bcd36RedMickey6 years ago | 32 | const localize = nls.loadMessageBundle(); |
| 33 | | |
| 34 | export class AppLauncher { | |
a6562589RedMickey6 years ago | 35 | private readonly cdpProxyPort: number; |
| 36 | private readonly cdpProxyHostAddress: string; | |
| 37 | | |
7e74daf7Yuri Skorokhodov6 years ago | 38 | private appWorker: MultipleLifetimesAppWorker | null; |
6e1bcd36RedMickey6 years ago | 39 | private packager: Packager; |
| 40 | private exponentHelper: ExponentHelper; | |
| 41 | private reactDirManager: ReactDirManager; | |
| 42 | private workspaceFolder: vscode.WorkspaceFolder; | |
| 43 | private reactNativeVersions?: RNPackageVersions; | |
a6562589RedMickey6 years ago | 44 | private rnCdpProxy: ReactNativeCDPProxy; |
6e1bcd36RedMickey6 years ago | 45 | private logger: OutputChannelLogger = OutputChannelLogger.getMainChannel(); |
| 46 | private logCatMonitor: LogCatMonitor | null = null; | |
68a5b8d5JiglioNero5 years ago | 47 | private launchScenariosManager: LaunchScenariosManager; |
6e1bcd36RedMickey6 years ago | 48 | |
f872f4d5RedMickey6 years ago | 49 | public static getAppLauncherByProjectRootPath(projectRootPath: string): AppLauncher { |
af1b9666RedMickey6 years ago | 50 | const appLauncher = ProjectsStorage.projectsCache[projectRootPath.toLowerCase()]; |
| 51 | if (!appLauncher) { | |
f872f4d5RedMickey6 years ago | 52 | throw new Error(`Could not find AppLauncher by the project root path ${projectRootPath}`); |
| 53 | } | |
af1b9666RedMickey6 years ago | 54 | |
| 55 | return appLauncher; | |
f872f4d5RedMickey6 years ago | 56 | } |
| 57 | | |
6e1bcd36RedMickey6 years ago | 58 | constructor(reactDirManager: ReactDirManager, workspaceFolder: vscode.WorkspaceFolder) { |
a6562589RedMickey6 years ago | 59 | // constants definition |
| 60 | this.cdpProxyPort = generateRandomPortNumber(); | |
| 61 | this.cdpProxyHostAddress = "127.0.0.1"; // localhost | |
| 62 | | |
6e1bcd36RedMickey6 years ago | 63 | const rootPath = workspaceFolder.uri.fsPath; |
68a5b8d5JiglioNero5 years ago | 64 | this.launchScenariosManager = new LaunchScenariosManager(rootPath); |
6e1bcd36RedMickey6 years ago | 65 | const projectRootPath = SettingsHelper.getReactNativeProjectRoot(rootPath); |
| 66 | this.exponentHelper = new ExponentHelper(rootPath, projectRootPath); | |
869b2b5cJiglioNero5 years ago | 67 | const packagerStatusIndicator: PackagerStatusIndicator = new PackagerStatusIndicator(rootPath); |
6e1bcd36RedMickey6 years ago | 68 | this.packager = new Packager(rootPath, projectRootPath, SettingsHelper.getPackagerPort(workspaceFolder.uri.fsPath), packagerStatusIndicator); |
c036b0d3JiglioNero6 years ago | 69 | this.packager.setExponentHelper(this.exponentHelper); |
6e1bcd36RedMickey6 years ago | 70 | this.reactDirManager = reactDirManager; |
| 71 | this.workspaceFolder = workspaceFolder; | |
a6562589RedMickey6 years ago | 72 | this.rnCdpProxy = new ReactNativeCDPProxy( |
| 73 | this.cdpProxyHostAddress, | |
| 74 | this.cdpProxyPort | |
| 75 | ); | |
| 76 | } | |
| 77 | | |
| 78 | public getCdpProxyPort(): number { | |
| 79 | return this.cdpProxyPort; | |
| 80 | } | |
| 81 | | |
| 82 | public getRnCdpProxy(): ReactNativeCDPProxy { | |
| 83 | return this.rnCdpProxy; | |
6e1bcd36RedMickey6 years ago | 84 | } |
| 85 | | |
| 86 | public getPackager(): Packager { | |
| 87 | return this.packager; | |
| 88 | } | |
| 89 | | |
| 90 | public getWorkspaceFolderUri(): vscode.Uri { | |
| 91 | return this.workspaceFolder.uri; | |
| 92 | } | |
| 93 | | |
| 94 | public getWorkspaceFolder(): vscode.WorkspaceFolder { | |
| 95 | return this.workspaceFolder; | |
| 96 | } | |
| 97 | | |
| 98 | public getReactNativeVersions(): RNPackageVersions | undefined { | |
| 99 | return this.reactNativeVersions; | |
| 100 | } | |
| 101 | | |
| 102 | public getExponentHelper(): ExponentHelper { | |
| 103 | return this.exponentHelper; | |
| 104 | } | |
| 105 | | |
| 106 | public getReactDirManager(): ReactDirManager { | |
| 107 | return this.reactDirManager; | |
| 108 | } | |
| 109 | | |
| 110 | public setReactNativeVersions(reactNativeVersions: RNPackageVersions): void { | |
| 111 | this.reactNativeVersions = reactNativeVersions; | |
| 112 | } | |
| 113 | | |
7e74daf7Yuri Skorokhodov6 years ago | 114 | public setAppWorker(appWorker: MultipleLifetimesAppWorker): void { |
| 115 | this.appWorker = appWorker; | |
| 116 | } | |
| 117 | | |
| 118 | public getAppWorker(): MultipleLifetimesAppWorker | null { | |
| 119 | return this.appWorker; | |
| 120 | } | |
| 121 | | |
6e1bcd36RedMickey6 years ago | 122 | public dispose(): void { |
de838bbfJiglioNero6 years ago | 123 | this.packager.getStatusIndicator().dispose(); |
6e1bcd36RedMickey6 years ago | 124 | this.packager.stop(true); |
| 125 | this.stopMonitoringLogCat(); | |
| 126 | } | |
| 127 | | |
| 128 | public stopMonitoringLogCat(): void { | |
| 129 | if (this.logCatMonitor) { | |
| 130 | this.logCatMonitor.dispose(); | |
| 131 | this.logCatMonitor = null; | |
| 132 | } | |
| 133 | } | |
| 134 | | |
ce5e88eeYuri Skorokhodov5 years ago | 135 | public openFileAtLocation(filename: string, lineNumber: number): Promise<void> { |
| 136 | return new Promise((resolve) => { | |
6e1bcd36RedMickey6 years ago | 137 | vscode.workspace.openTextDocument(vscode.Uri.file(filename)) |
| 138 | .then((document: vscode.TextDocument) => { | |
| 139 | vscode.window.showTextDocument(document) | |
| 140 | .then((editor: vscode.TextEditor) => { | |
| 141 | let range = editor.document.lineAt(lineNumber - 1).range; | |
| 142 | editor.selection = new vscode.Selection(range.start, range.end); | |
| 143 | editor.revealRange(range, vscode.TextEditorRevealType.InCenter); | |
ce5e88eeYuri Skorokhodov5 years ago | 144 | resolve(); |
6e1bcd36RedMickey6 years ago | 145 | }); |
| 146 | }); | |
| 147 | }); | |
| 148 | } | |
| 149 | | |
| 150 | public getPackagerPort(projectFolder: string): number { | |
| 151 | return SettingsHelper.getPackagerPort(projectFolder); | |
| 152 | } | |
| 153 | | |
| 154 | public launch(launchArgs: any): Promise<any> { | |
| 155 | let mobilePlatformOptions = this.requestSetup(launchArgs); | |
| 156 | | |
| 157 | // We add the parameter if it's defined (adapter crashes otherwise) | |
| 158 | if (!isNullOrUndefined(launchArgs.logCatArguments)) { | |
| 159 | mobilePlatformOptions.logCatArguments = [this.parseLogCatArguments(launchArgs.logCatArguments)]; | |
| 160 | } | |
| 161 | | |
| 162 | if (!isNullOrUndefined(launchArgs.variant)) { | |
| 163 | mobilePlatformOptions.variant = launchArgs.variant; | |
| 164 | } | |
| 165 | | |
| 166 | if (!isNullOrUndefined(launchArgs.scheme)) { | |
| 167 | mobilePlatformOptions.scheme = launchArgs.scheme; | |
| 168 | } | |
| 169 | | |
| 170 | if (!isNullOrUndefined(launchArgs.productName)) { | |
| 171 | mobilePlatformOptions.productName = launchArgs.productName; | |
| 172 | } | |
| 173 | | |
| 174 | if (!isNullOrUndefined(launchArgs.launchActivity)) { | |
| 175 | mobilePlatformOptions.debugLaunchActivity = launchArgs.launchActivity; | |
| 176 | } | |
| 177 | | |
5514e287RedMickey6 years ago | 178 | if (launchArgs.type === DEBUG_TYPES.REACT_NATIVE_DIRECT) { |
6e1bcd36RedMickey6 years ago | 179 | mobilePlatformOptions.isDirect = true; |
| 180 | } | |
| 181 | | |
| 182 | mobilePlatformOptions.packagerPort = SettingsHelper.getPackagerPort(launchArgs.cwd || launchArgs.program); | |
| 183 | const platformDeps: MobilePlatformDeps = { | |
| 184 | packager: this.packager, | |
| 185 | }; | |
| 186 | const mobilePlatform = new PlatformResolver() | |
| 187 | .resolveMobilePlatform(launchArgs.platform, mobilePlatformOptions, platformDeps); | |
| 188 | return new Promise((resolve, reject) => { | |
| 189 | let extProps: any = { | |
| 190 | platform: { | |
| 191 | value: launchArgs.platform, | |
| 192 | isPii: false, | |
| 193 | }, | |
| 194 | }; | |
| 195 | | |
| 196 | if (mobilePlatformOptions.isDirect) { | |
| 197 | extProps.isDirect = { | |
| 198 | value: true, | |
| 199 | isPii: false, | |
| 200 | }; | |
| 201 | } | |
| 202 | | |
ce5e88eeYuri Skorokhodov5 years ago | 203 | return ProjectVersionHelper.getReactNativePackageVersionsFromNodeModules(mobilePlatformOptions.projectRoot, true) |
6e1bcd36RedMickey6 years ago | 204 | .then(versions => { |
| 205 | mobilePlatformOptions.reactNativeVersions = versions; | |
| 206 | extProps = TelemetryHelper.addPropertyToTelemetryProperties(versions.reactNativeVersion, "reactNativeVersion", extProps); | |
259c018fYuri Skorokhodov5 years ago | 207 | if (launchArgs.platform === PlatformType.Windows) { |
6e1bcd36RedMickey6 years ago | 208 | if (ProjectVersionHelper.isVersionError(versions.reactNativeWindowsVersion)) { |
| 209 | throw ErrorHelper.getInternalError(InternalErrorCode.ReactNativeWindowsIsNotInstalled); | |
| 210 | } | |
| 211 | extProps = TelemetryHelper.addPropertyToTelemetryProperties(versions.reactNativeWindowsVersion, "reactNativeWindowsVersion", extProps); | |
| 212 | } | |
| 213 | TelemetryHelper.generate("launch", extProps, (generator) => { | |
68a5b8d5JiglioNero5 years ago | 214 | generator.step("resolveEmulator"); |
| 215 | return this.resolveAndSaveVirtualDevice(mobilePlatform, launchArgs, mobilePlatformOptions) | |
259c018fYuri Skorokhodov5 years ago | 216 | .then(() => mobilePlatform.beforeStartPackager()) |
| 217 | .then(() => { | |
| 218 | generator.step("checkPlatformCompatibility"); | |
| 219 | TargetPlatformHelper.checkTargetPlatformSupport(mobilePlatformOptions.platform); | |
| 220 | }) | |
| 221 | .then(() => { | |
| 222 | generator.step("startPackager"); | |
| 223 | return mobilePlatform.startPackager(); | |
| 224 | }) | |
| 225 | .then(() => { | |
| 226 | // We've seen that if we don't prewarm the bundle cache, the app fails on the first attempt to connect to the debugger logic | |
| 227 | // and the user needs to Reload JS manually. We prewarm it to prevent that issue | |
| 228 | generator.step("prewarmBundleCache"); | |
| 229 | this.logger.info(localize("PrewarmingBundleCache", "Prewarming bundle cache. This may take a while ...")); | |
| 230 | return mobilePlatform.prewarmBundleCache(); | |
| 231 | }) | |
| 232 | .then(() => { | |
| 233 | generator.step("mobilePlatform.runApp").add("target", mobilePlatformOptions.target, false); | |
| 234 | this.logger.info(localize("BuildingAndRunningApplication", "Building and running application.")); | |
| 235 | return mobilePlatform.runApp(); | |
| 236 | }) | |
| 237 | .then(() => { | |
| 238 | if (mobilePlatformOptions.isDirect || !mobilePlatformOptions.enableDebug) { | |
| 239 | if (mobilePlatformOptions.isDirect && launchArgs.platform === PlatformType.Android) { | |
| 240 | generator.step("mobilePlatform.enableDirectDebuggingMode"); | |
| 241 | if (mobilePlatformOptions.enableDebug) { | |
| 242 | this.logger.info(localize("PrepareHermesDebugging", "Prepare Hermes debugging (experimental)")); | |
| 243 | } else { | |
| 244 | this.logger.info(localize("PrepareHermesLaunch", "Prepare Hermes launch (experimental)")); | |
| 245 | } | |
5514e287RedMickey6 years ago | 246 | } else { |
259c018fYuri Skorokhodov5 years ago | 247 | generator.step("mobilePlatform.disableJSDebuggingMode"); |
| 248 | this.logger.info(localize("DisableJSDebugging", "Disable JS Debugging")); | |
6e1bcd36RedMickey6 years ago | 249 | } |
259c018fYuri Skorokhodov5 years ago | 250 | return mobilePlatform.disableJSDebuggingMode(); |
6e1bcd36RedMickey6 years ago | 251 | } |
259c018fYuri Skorokhodov5 years ago | 252 | generator.step("mobilePlatform.enableJSDebuggingMode"); |
| 253 | this.logger.info(localize("EnableJSDebugging", "Enable JS Debugging")); | |
| 254 | return mobilePlatform.enableJSDebuggingMode(); | |
| 255 | }) | |
| 256 | .then(resolve) | |
| 257 | .catch(error => { | |
| 258 | if (!mobilePlatformOptions.enableDebug && launchArgs.platform === PlatformType.iOS && launchArgs.type === DEBUG_TYPES.REACT_NATIVE) { | |
| 259 | // If we disable debugging mode for iOS scenarios, we'll we ignore the error and run the 'run-ios' command anyway, | |
| 260 | // since the error doesn't affects an application launch process | |
| 261 | return resolve(); | |
| 262 | } | |
| 263 | generator.addError(error); | |
| 264 | this.logger.error(error); | |
| 265 | reject(error); | |
| 266 | }); | |
6e1bcd36RedMickey6 years ago | 267 | }); |
| 268 | }) | |
| 269 | .catch(error => { | |
| 270 | if (error && error.errorCode) { | |
| 271 | if (error.errorCode === InternalErrorCode.ReactNativePackageIsNotInstalled) { | |
| 272 | TelemetryHelper.sendErrorEvent( | |
| 273 | "ReactNativePackageIsNotInstalled", | |
| 274 | ErrorHelper.getInternalError(InternalErrorCode.ReactNativePackageIsNotInstalled) | |
| 275 | ); | |
| 276 | } else if (error.errorCode === InternalErrorCode.ReactNativeWindowsIsNotInstalled) { | |
| 277 | TelemetryHelper.sendErrorEvent( | |
| 278 | "ReactNativeWindowsPackageIsNotInstalled", | |
| 279 | ErrorHelper.getInternalError(InternalErrorCode.ReactNativeWindowsIsNotInstalled) | |
| 280 | ); | |
| 281 | } | |
| 282 | } | |
| 283 | this.logger.error(error); | |
| 284 | reject(error); | |
| 285 | }); | |
| 286 | }); | |
| 287 | } | |
| 288 | | |
68a5b8d5JiglioNero5 years ago | 289 | private resolveAndSaveVirtualDevice(mobilePlatform: GeneralMobilePlatform, launchArgs: any, mobilePlatformOptions: any): Promise<void> { |
259c018fYuri Skorokhodov5 years ago | 290 | if (launchArgs.target && (mobilePlatformOptions.platform === PlatformType.Android || mobilePlatformOptions.platform === PlatformType.iOS)) { |
68a5b8d5JiglioNero5 years ago | 291 | return mobilePlatform.resolveVirtualDevice(launchArgs.target) |
| 292 | .then((emulator: IVirtualDevice | null) => { | |
30e70966JiglioNero5 years ago | 293 | if (emulator) { |
259c018fYuri Skorokhodov5 years ago | 294 | if (emulator.name && launchArgs.platform === PlatformType.Android) { |
119d7878JiglioNero5 years ago | 295 | mobilePlatformOptions.target = emulator.id; |
30e70966JiglioNero5 years ago | 296 | this.launchScenariosManager.updateLaunchScenario(launchArgs, {target: emulator.name}); |
68a5b8d5JiglioNero5 years ago | 297 | } |
259c018fYuri Skorokhodov5 years ago | 298 | if (launchArgs.platform === PlatformType.iOS) { |
119d7878JiglioNero5 years ago | 299 | this.launchScenariosManager.updateLaunchScenario(launchArgs, {target: emulator.id}); |
| 300 | } | |
30e70966JiglioNero5 years ago | 301 | launchArgs.target = emulator.id; |
68a5b8d5JiglioNero5 years ago | 302 | } |
507fd5fdJiglioNero5 years ago | 303 | else if (mobilePlatformOptions.target.indexOf("device") < 0) { |
| 304 | this.cleanupTargetModifications(mobilePlatform, mobilePlatformOptions); | |
| 305 | } | |
| 306 | }) | |
| 307 | .catch(error => { | |
| 308 | if (error && error.errorCode && error.errorCode === InternalErrorCode.VirtualDeviceSelectionError) { | |
| 309 | TelemetryHelper.sendErrorEvent( | |
| 310 | "VirtualDeviceSelectionError", | |
| 311 | ErrorHelper.getInternalError(InternalErrorCode.VirtualDeviceSelectionError) | |
| 312 | ); | |
| 313 | | |
| 314 | this.logger.warning(error); | |
| 315 | this.logger.warning(localize("ContinueWithRnCliWorkflow", "Continue using standard RN CLI workflow.")); | |
| 316 | | |
| 317 | if (mobilePlatformOptions.target.indexOf("device") < 0) { | |
| 318 | this.cleanupTargetModifications(mobilePlatform, mobilePlatformOptions); | |
| 319 | } | |
| 320 | return Promise.resolve(); | |
| 321 | } | |
| 322 | else { | |
| 323 | return Promise.reject(error); | |
68a5b8d5JiglioNero5 years ago | 324 | } |
| 325 | }); | |
| 326 | } | |
| 327 | return Promise.resolve(); | |
| 328 | } | |
| 329 | | |
507fd5fdJiglioNero5 years ago | 330 | private cleanupTargetModifications(mobilePlatform: GeneralMobilePlatform, mobilePlatformOptions: any) { |
| 331 | mobilePlatformOptions.target = "simulator"; | |
| 332 | mobilePlatform.runArguments = mobilePlatform.getRunArguments(); | |
| 333 | } | |
| 334 | | |
6e1bcd36RedMickey6 years ago | 335 | private requestSetup(args: any): any { |
| 336 | const workspaceFolder: vscode.WorkspaceFolder = <vscode.WorkspaceFolder>vscode.workspace.getWorkspaceFolder(vscode.Uri.file(args.cwd || args.program)); | |
| 337 | const projectRootPath = this.getProjectRoot(args); | |
| 338 | let mobilePlatformOptions: any = { | |
| 339 | workspaceRoot: workspaceFolder.uri.fsPath, | |
| 340 | projectRoot: projectRootPath, | |
| 341 | platform: args.platform, | |
| 342 | env: args.env, | |
| 343 | envFile: args.envFile, | |
| 344 | target: args.target || "simulator", | |
5514e287RedMickey6 years ago | 345 | enableDebug: args.enableDebug, |
6e1bcd36RedMickey6 years ago | 346 | }; |
| 347 | | |
259c018fYuri Skorokhodov5 years ago | 348 | if (args.platform === PlatformType.Exponent) { |
6e1bcd36RedMickey6 years ago | 349 | mobilePlatformOptions.expoHostType = args.expoHostType || "tunnel"; |
| 350 | } | |
| 351 | | |
| 352 | CommandExecutor.ReactNativeCommand = SettingsHelper.getReactNativeGlobalCommandName(workspaceFolder.uri); | |
| 353 | | |
| 354 | if (!args.runArguments) { | |
| 355 | let runArgs = SettingsHelper.getRunArgs(args.platform, args.target || "simulator", workspaceFolder.uri); | |
| 356 | mobilePlatformOptions.runArguments = runArgs; | |
| 357 | } else { | |
| 358 | mobilePlatformOptions.runArguments = args.runArguments; | |
| 359 | } | |
| 360 | | |
| 361 | return mobilePlatformOptions; | |
| 362 | } | |
| 363 | | |
| 364 | private getProjectRoot(args: any): string { | |
| 365 | return SettingsHelper.getReactNativeProjectRoot(args.cwd || args.program); | |
| 366 | } | |
| 367 | | |
| 368 | /** | |
| 369 | * Parses log cat arguments to a string | |
| 370 | */ | |
| 371 | private parseLogCatArguments(userProvidedLogCatArguments: any): string { | |
| 372 | return Array.isArray(userProvidedLogCatArguments) | |
| 373 | ? userProvidedLogCatArguments.join(" ") // If it's an array, we join the arguments | |
| 374 | : userProvidedLogCatArguments; // If not, we leave it as-is | |
| 375 | } | |
| 376 | } |