protected virtual ConsList <TypeSymbol> GetBasesBeingResolved(LanguageSyntaxNode expression)
 {
     return(null);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a speculative SemanticModel for a TypeSyntax node at a position within an existing MemberSemanticModel.
 /// </summary>
 public SpeculativeMemberSemanticModel(SyntaxTreeSemanticModel parentSemanticModel, Symbol owner, LanguageSyntaxNode root, Binder rootBinder, int position)
     : base(root, owner, rootBinder, containingSemanticModelOpt: null, parentSemanticModelOpt: parentSemanticModel, speculatedPosition: position)
 {
 }
Exemplo n.º 3
0
 protected LanguageSyntaxNode(GreenNode green, LanguageSyntaxNode parent, int position)
     : base(green, parent, position)
 {
 }
Exemplo n.º 4
0
 private SpeculativeSyntaxTreeSemanticModel(SyntaxTreeSemanticModel parentSemanticModel, LanguageSyntaxNode root, Binder rootBinder, int position, SpeculativeBindingOption bindingOption)
     : base(parentSemanticModel.Compilation, (LanguageSyntaxTree)parentSemanticModel.SyntaxTree, (LanguageSyntaxTree)root.SyntaxTree)
 {
     _parentSemanticModel = parentSemanticModel;
     _root          = root;
     _rootBinder    = rootBinder;
     _position      = position;
     _bindingOption = bindingOption;
 }
Exemplo n.º 5
0
 internal override BoundNode Bind(Binder binder, LanguageSyntaxNode node, DiagnosticBag diagnostics)
 {
     return(_parentSemanticModel.Bind(binder, node, diagnostics));
 }
Exemplo n.º 6
0
        private static SpeculativeSyntaxTreeSemanticModel CreateCore(SyntaxTreeSemanticModel parentSemanticModel, LanguageSyntaxNode root, Binder rootBinder, int position, SpeculativeBindingOption bindingOption)
        {
            Debug.Assert(parentSemanticModel is SyntaxTreeSemanticModel);
            Debug.Assert(root != null);
            Debug.Assert(rootBinder != null);
            Debug.Assert(rootBinder.IsSemanticModelBinder);

            var speculativeModel = new SpeculativeSyntaxTreeSemanticModel(parentSemanticModel, root, rootBinder, position, bindingOption);

            return(speculativeModel);
        }
Exemplo n.º 7
0
 public static SpeculativeSyntaxTreeSemanticModel Create(SyntaxTreeSemanticModel parentSemanticModel, LanguageSyntaxNode root, Binder rootBinder, int position, SpeculativeBindingOption bindingOption)
 {
     return(CreateCore(parentSemanticModel, root, rootBinder, position, bindingOption));
 }
Exemplo n.º 8
0
 internal override LanguageTypeInfo GetTypeInfoWorker(LanguageSyntaxNode node, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(_parentSemanticModel.GetSpeculativeTypeInfoWorker(_position, node, this.GetSpeculativeBindingOption(node)));
 }
Exemplo n.º 9
0
 public static bool IsStatement(this LanguageSyntaxNode node)
 {
     return(node.Language.SyntaxFacts.IsStatement(node));
 }
Exemplo n.º 10
0
 public static bool IsExpression(this LanguageSyntaxNode node)
 {
     return(node.Language.SyntaxFacts.IsExpression(node));
 }