Home | History | Annotate | Download | only in src

Lines Matching refs:script

159 var SCRIPT_TYPE = 'script';
381 * Check whether the mirror reflects a script.
382 * @returns {boolean} True if the mirror reflects a script
883 * Returns the script object for the function.
884 * @return {ScriptMirror or undefined} Script object for the function or
885 * undefined if the function has no script
887 FunctionMirror.prototype.script = function() {
888 // Return script if function is resolved. Otherwise just fall through
891 var script = %FunctionGetScript(this.value_);
892 if (script) {
893 return MakeMirror(script);
900 * Returns the script source position for the function. Only makes sense
901 * for functions which has a script defined.
902 * @return {Number or undefined} in-script position for the function
905 // Return script if function is resolved. Otherwise just fall through
914 * Returns the script source location object for the function. Only makes sense
915 * for functions which has a script defined.
916 * @return {Location or undefined} in-script location for the function begin
919 if (this.resolved() && this.script()) {
920 return this.script().locationFromPosition(this.sourcePosition_(),
1630 if (this.func().resolved() && this.func().script()) {
1631 return this.func().script().locationFromPosition(this.sourcePosition(),
1678 var script = this.func().script();
1686 var offset = script.locationFromPosition(funcOffset + stepInRaw[i],
1795 if (func.script()) {
1796 if (func.script().name()) {
1797 result += func.script().name();
1970 * Mirror object for script source.
1971 * @param {Script} script The script object
1975 function ScriptMirror(script) {
1977 this.script_ = script;
1978 this.context_ = new ContextMirror(script.context_data);
2239 if (mirror.script()) {
2240 o.scriptId = mirror.script().id();
2334 // Script is represented by id, name and source attributes.
2354 // For compilation type eval emit information on the script from which
2355 // eval was called if a script is present.
2427 if (mirror.script()) {
2428 content.script = this.serializeReference(mirror.script());
2429 content.scriptId = mirror.script().id();
2577 if (func.script()) {
2578 content.script = this.serializeReference(func.script());