public IScope createSimpleFeatureCallScope ( EObject context , IFeatureScopeSession session , IResolvedTypes resolvedTypes ) { IScope root = IScope . NULLSCOPE ; if ( context instanceof XFeatureCall ) { XFeatureCall featureCall = ( XFeatureCall ) context ; if ( ! featureCall . isExplicitOperationCallOrBuilderSyntax ( ) ) { root = createTypeLiteralScope ( context , QualifiedName . EMPTY , root , session , resolvedTypes ) ; if ( isDefiniteTypeLiteral ( featureCall ) ) { return root ; } } } IScope staticImports = createStaticFeaturesScope ( context , root , session ) ; IScope staticMembers = createStaticScope ( asAbstractFeatureCall ( context ) , null , null , staticImports , session , resolvedTypes ) ; IScope staticExtensions = createStaticExtensionsScope ( null , null , context , staticMembers , session , resolvedTypes ) ; // we don't want to use captured instances of 'IT' as dynamic extension implicit argument // thus the dynamic extension scope only works for the *real* local variables IScope dynamicExtensions = createDynamicExtensionsScope ( null , null , context , staticExtensions , session , resolvedTypes ) ; IScope localVariables = createImplicitFeatureCallAndLocalVariableScope ( context , dynamicExtensions , session , resolvedTypes ) ; return localVariables ; }
This method serves as an entry point for the content assist scoping for simple feature calls .