public ResolvedUsingScope(CppTypeResolveContext context, UsingScope usingScope) { if (context == null) { throw new ArgumentNullException("context"); } if (usingScope == null) { throw new ArgumentNullException("usingScope"); } this.parentContext = context; this.usingScope = usingScope; if (usingScope.Parent != null) { if (context.CurrentUsingScope == null) { throw new InvalidOperationException(); } } else { if (context.CurrentUsingScope != null) { throw new InvalidOperationException(); } } }
/// <summary> /// Creates a new nested using scope. /// </summary> /// <param name="parent">The parent using scope.</param> /// <param name="shortName">The short namespace name.</param> public UsingScope(UsingScope parent, string shortName) { if (parent == null) throw new ArgumentNullException("parent"); if (shortName == null) throw new ArgumentNullException("shortName"); this.parent = parent; this.shortName = shortName; }
public CppParsedFile(string fileName) { if (fileName == null) { throw new ArgumentNullException("fileName"); } this.fileName = fileName; this.rootUsingScope = new UsingScope(); }
/// <summary> /// Creates a new nested using scope. /// </summary> /// <param name="parent">The parent using scope.</param> /// <param name="shortName">The short namespace name.</param> public UsingScope(UsingScope parent, string shortName) { if (parent == null) { throw new ArgumentNullException("parent"); } if (shortName == null) { throw new ArgumentNullException("shortName"); } this.parent = parent; this.shortName = shortName; }
public ResolvedUsingScope(CppTypeResolveContext context, UsingScope usingScope) { if (context == null) throw new ArgumentNullException("context"); if (usingScope == null) throw new ArgumentNullException("usingScope"); this.parentContext = context; this.usingScope = usingScope; if (usingScope.Parent != null) { if (context.CurrentUsingScope == null) throw new InvalidOperationException(); } else { if (context.CurrentUsingScope != null) throw new InvalidOperationException(); } }
public CppUnresolvedTypeDefinition(CppUnresolvedTypeDefinition declaringTypeDefinition, string name) : base(declaringTypeDefinition, name) { this.usingScope = declaringTypeDefinition.usingScope; this.AddDefaultConstructorIfRequired = true; }
public CppUnresolvedTypeDefinition(UsingScope usingScope, string name) : base(usingScope.NamespaceName, name) { this.usingScope = usingScope; this.AddDefaultConstructorIfRequired = true; }