Udostępnij za pośrednictwem


ScopeKind Enumeration

Specifies the kind of scope being constructed during parsing for a Babel Package language service; for example, a class, procedure, or variable.

enum ScopeKind { 
   ScopeUnknown = 0,
   ScopeModule,
   ScopeClass,
   ScopeInterface,
   ScopeUnion,
   ScopeProcedure,
   ScopeVariable,
   ScopeBlock
};

Elements

  • ScopeUnknown
    Scope type is unknown.

  • ScopeModule
    Specifies a module.

  • ScopeClass
    Specifies a class.

  • ScopeInterface
    Specifies an interface.

  • ScopeUnion
    Specifies a union.

  • ScopeProcedure
    Use this value to indicate that the scope is for a method or a parameter.

  • ScopeVariable
    Specifies a variable.

  • ScopeBlock
    Specifies a block.

Remarks

The kind of scope specified has no significance beyond the icon used to display scope information, with the following exceptions:

  • Method information is only shown if the ScopeKind is ScopeProcedure**.**

  • Parameter information for a method is only shown if the ScopeKind is ScopeProcedure and the ScopeStorage Enumeration is StorageParameter.

Requirements

Header: babelservice.idl

See Also

Reference

IParseSink::AddScope Method

ScopeStorage Enumeration

ScopeAccess Enumeration

Other Resources

Babel Enumerations