Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: Source/devtools/front_end/RuntimeModel.js

Issue 203443010: DevTools: [JsDocValidator] Fix checking of receivers specified as arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a suppression hint message Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 */ 247 */
248 function evaluated(result, wasThrown) 248 function evaluated(result, wasThrown)
249 { 249 {
250 if (!result || wasThrown) { 250 if (!result || wasThrown) {
251 completionsReadyCallback([]); 251 completionsReadyCallback([]);
252 return; 252 return;
253 } 253 }
254 254
255 /** 255 /**
256 * @param {string} primitiveType 256 * @param {string} primitiveType
257 * @suppressReceiverCheck
257 * @this {WebInspector.RuntimeModel} 258 * @this {WebInspector.RuntimeModel}
258 */ 259 */
259 function getCompletions(primitiveType) 260 function getCompletions(primitiveType)
260 { 261 {
261 var object; 262 var object;
262 if (primitiveType === "string") 263 if (primitiveType === "string")
263 object = new String(""); 264 object = new String("");
264 else if (primitiveType === "number") 265 else if (primitiveType === "number")
265 object = new Number(0); 266 object = new Number(0);
266 else if (primitiveType === "boolean") 267 else if (primitiveType === "boolean")
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 /** 596 /**
596 * @return {string} 597 * @return {string}
597 */ 598 */
598 displayName: function() 599 displayName: function()
599 { 600 {
600 return this._url; 601 return this._url;
601 }, 602 },
602 603
603 __proto__: WebInspector.ExecutionContextList.prototype 604 __proto__: WebInspector.ExecutionContextList.prototype
604 } 605 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/RemoteObject.js ('k') | Source/devtools/scripts/compiler-runner/closure-runner.jar » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698