1. 04 4月, 2012 2 次提交
  2. 29 3月, 2012 1 次提交
  3. 13 3月, 2012 1 次提交
  4. 10 3月, 2012 1 次提交
  5. 07 3月, 2012 3 次提交
  6. 02 3月, 2012 1 次提交
  7. 24 2月, 2012 1 次提交
  8. 18 2月, 2012 1 次提交
  9. 14 2月, 2012 1 次提交
  10. 12 1月, 2012 1 次提交
  11. 28 12月, 2011 1 次提交
  12. 01 12月, 2011 1 次提交
    • S
      WritableScope.changeLockLevel() · 957b2173
      Stepan Koltsov 提交于
      This patch allows WritableScope "locking". WritableScope now has
      three lock levels: reading, writing, both. Scope modification is
      not allowed in "reading" state, scope data access is not allowed
      in "writing".
      
      Scope lock level can only be raised: from "writing" to "both" and
      from "both" to "reading".
      
      There are two reasons for this enhancement:
      
      1. Code self-documentation. It is clear where WritableScope is used
      as readonly scope. For example developers can see that class structure
      is not modified after DelegationResolver.process(), because
      MutableClassDescriptor.lockScopes() is called right after that
      method.
      
      2. Ease of debugging, program gets more assertions. For example,
      if some scope is not yet filled and some member resolution is
      triggered, IllegalStateException is thrown instead of wrong unresolved
      reference.
      
      Currently not all scope locks are configured strictly. In many cases
      lock level is set to safe "both" value.
      957b2173
  13. 30 11月, 2011 2 次提交
  14. 24 11月, 2011 1 次提交
  15. 30 10月, 2011 1 次提交
  16. 21 10月, 2011 1 次提交
  17. 20 10月, 2011 1 次提交
  18. 27 9月, 2011 1 次提交
  19. 25 9月, 2011 1 次提交