Examples of Scope


Examples of com.google.caja.parser.quasiliteral.Scope

   */
  public Block optimize(Block js, MessageQueue mq) {
    finishInference();
    while (true) {
      Result out = new Result();
      Scope s = Scope.fromProgram(js, mq);
      optimize(s, js, false, false, false, false, out);
      Block optimized = ConstLocalOptimization.optimize((Block) out.node);
      if (optimized == js) { return optimized; }
      js = optimized;
    }
View Full Code Here

Examples of com.google.collide.client.code.debugging.DebuggerApiTypes.Scope

    // Render the Scope Variables pane.
    JsonArray<RemoteObjectNode> rootNodes = JsonCollections.createArray();

    JsonArray<Scope> scopeChain = callFrame.getScopeChain();
    for (int i = 0, n = scopeChain.size(); i < n; ++i) {
      Scope scope = scopeChain.get(i);
      String name = StringUtils.capitalizeFirstLetter(scope.getType().toString());
      RemoteObject remoteObject = scope.getObject();

      RemoteObjectNode.Builder scopeNodeBuilder = new RemoteObjectNode.Builder(name, remoteObject)
          .setOrderIndex(i)
          .setWritable(false)
          .setDeletable(false)
          .setTransient(scope.isTransient());

      // Append the call frame "this" object to the top scope.
      if (i == 0 && callFrame.getThis() != null) {
        RemoteObjectNode thisNode = new RemoteObjectNode.Builder("this", callFrame.getThis())
            .setWritable(false)
View Full Code Here

Examples of com.google.dart.engine.internal.scope.Scope

   * @param identifier the identifier that might have been imported using a prefix
   * @return the element that was found
   */
  private Element findImportWithoutPrefix(SimpleIdentifier identifier) {
    Element element = null;
    Scope nameScope = resolver.getNameScope();
    for (ImportElement importElement : definingLibrary.getImports()) {
      PrefixElement prefixElement = importElement.getPrefix();
      if (prefixElement != null) {
        Identifier prefixedIdentifier = new SyntheticIdentifier(prefixElement.getName() + "."
            + identifier.getName());
        Element importedElement = nameScope.lookup(prefixedIdentifier, definingLibrary);
        if (importedElement != null) {
          if (element == null) {
            element = importedElement;
          } else {
            element = MultiplyDefinedElementImpl.fromElements(
View Full Code Here

Examples of com.google.enterprise.connector.ldap.LdapHandler.LdapRule.Scope

    return ldapHandler;
  }

  private static LdapRule makeSimpleLdapRule() {
    String filter = getTestFilter();
    Scope scope = Scope.SUBTREE;
    LdapRule ldapRule = new LdapRule(scope, filter);
    return ldapRule;
  }
View Full Code Here

Examples of com.google.inject.Scope

    if (scoping.isNoScope()) {
      return creator;
    }

    Scope scope = scoping.getScopeInstance();

    try {
      SingletonScope.singletonCreationPerRootInjectorLock.set(injector.state.singletonCreationLock());
      Provider<T> scoped
          = scope.scope(key, new ProviderToInternalFactoryAdapter<T>(injector, creator));
      return new InternalFactoryToProviderAdapter<T>(scoped, source);
    } finally {
      SingletonScope.singletonCreationPerRootInjectorLock.set(null);
    }
  }
View Full Code Here

Examples of com.google.javascript.jscomp.GlobalTypeInfo.Scope

    }
    return env;
  }

  private void collectTypesForFreeVarsFwd(Node callee, TypeEnv env) {
    Scope calleeScope = currentScope.getScope(callee.getQualifiedName());
    for (String freeVar : calleeScope.getOuterVars()) {
      if (calleeScope.getDeclaredTypeOf(freeVar) == null) {
        FunctionType summary = summaries.get(calleeScope).getFunType();
        JSType outerType = envGetType(env, freeVar);
        JSType innerType = summary.getOuterVarPrecondition(freeVar);
        if (outerType != null && JSType.meet(outerType, innerType).isBottom()) {
          warnings.add(JSError.make(callee, CROSS_SCOPE_GOTCHA,
View Full Code Here

Examples of com.google.javascript.jscomp.Scope

    // then the NAME must be the child of a VAR node, and we must
    // be in a VAR assignment.
    Node aliasParent = alias.node.getParent();
    if (aliasParent.getType() == Token.NAME) {
      // Ensure that the local variable is well defined and never reassigned.
      Scope scope = alias.scope;
      Var aliasVar = scope.getVar(aliasParent.getString());
      ReferenceCollectingCallback collector =
          new ReferenceCollectingCallback(compiler,
              ReferenceCollectingCallback.DO_NOTHING_BEHAVIOR,
              Predicates.<Var>equalTo(aliasVar));
      (new NodeTraversal(compiler, collector)).traverseAtScope(scope);
View Full Code Here

Examples of com.googlecode.goclipse.go.lang.model.Scope

  /**
   * @param tokenizer
   */
  public ScopeParser(Tokenizer tokenizer, File file) {
    tokenizer.addTokenListener(this);
    root_scope   = new Scope(null, "root");
    this.file    = file;
    currentScope = root_scope;
    currentScope.setFile(file);
    stack.push(currentScope);
  }
View Full Code Here

Examples of com.hp.hpl.jena.sdb.core.Scope

    {
        ScopeEntry e1 = sqlNode.getIdScope().findScopeForVar(var) ;
        if ( e1 == null )
        {
            // Debug.
            Scope scope = sqlNode.getIdScope() ;
            // Variable not actually in results.
            return sqlNode ;
        }
       
        // Already in scope (from a condition)?
View Full Code Here

Examples of com.jetbrains.lang.dart.ide.runner.unittest.DartUnitRunnerParameters.Scope

  @Override
  protected void applyEditorTo(DartUnitRunConfiguration configuration) throws ConfigurationException {
    final DartUnitRunnerParameters parameters = configuration.getRunnerParameters();

    final Scope scope = (Scope)myScopeCombo.getSelectedItem();
    parameters.setScope(scope);
    parameters.setFilePath(StringUtil.nullize(FileUtil.toSystemIndependentName(myFileField.getText().trim()), true));
    parameters.setTestName(scope == Scope.ALL ? null : StringUtil.nullize(myTestNameField.getText()));
    parameters.setArguments(StringUtil.nullize(myArguments.getText(), true));
    parameters.setVMOptions(StringUtil.nullize(myVMOptions.getText(), true));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.