Home | History | Annotate | Download | only in src

Lines Matching refs:Script

158 const SCRIPT_TYPE = 'script';
369 * Check whether the mirror reflects a script.
370 * @returns {boolean} True if the mirror reflects a script
830 * Returns the script object for the function.
831 * @return {ScriptMirror or undefined} Script object for the function or
832 * undefined if the function has no script
834 FunctionMirror.prototype.script = function() {
835 // Return script if function is resolved. Otherwise just fall through
838 var script = %FunctionGetScript(this.value_);
839 if (script) {
840 return MakeMirror(script);
847 * Returns the script source position for the function. Only makes sense
848 * for functions which has a script defined.
849 * @return {Number or undefined} in-script position for the function
852 // Return script if function is resolved. Otherwise just fall through
861 * Returns the script source location object for the function. Only makes sense
862 * for functions which has a script defined.
863 * @return {Location or undefined} in-script location for the function begin
866 if (this.resolved() && this.script()) {
867 return this.script().locationFromPosition(this.sourcePosition_(),
1456 if (this.func().resolved() && this.func().script()) {
1457 return this.func().script().locationFromPosition(this.sourcePosition(),
1586 if (func.script()) {
1587 if (func.script().name()) {
1588 result += func.script().name();
1711 * Mirror object for script source.
1712 * @param {Script} script The script object
1716 function ScriptMirror(script) {
1718 this.script_ = script;
1719 this.context_ = new ContextMirror(script.context_data);
1828 * Returns a suggested script URL from comments in script code (if found),
1999 if (mirror.script()) {
2000 o.scriptId = mirror.script().id();
2093 // Script is represented by id, name and source attributes.
2113 // For compilation type eval emit information on the script from which
2114 // eval was called if a script is present.
2185 if (mirror.script()) {
2186 content.script = this.serializeReference(mirror.script());
2187 content.scriptId = mirror.script().id();
2290 if (func.script()) {
2291 content.script = this.serializeReference(func.script());