示例#1
0
 internal VariableSymbol(string name, bool isReadOnly, bool isGlobal, bool isFunctional, TypeSymbol type, Text.TextLocation location)
     : base(name, location)
 {
     IsReadOnly   = isReadOnly;
     IsGlobal     = isGlobal;
     IsFunctional = isFunctional;
     Type         = type;
 }
 internal GlobalVariableSymbol(string name, bool isReadOnly, TypeSymbol type, Text.TextLocation location = new Text.TextLocation())
     : base(name, isReadOnly, true, false, type, location)
 {
 }
示例#3
0
 internal FunctionalVariableSymbol(string name, bool isReadOnly, TypeSymbol type, bool isVirtual, bool isOverride, Text.TextLocation location = new Text.TextLocation())
     : base(name, isReadOnly, true, true, type, location)
 {
     IsVirtual  = isVirtual;
     IsOverride = isOverride;
 }
 public ParameterSymbol(string name, TypeSymbol type, int ordinal, Text.TextLocation location = new Text.TextLocation())
     : base(name, isReadOnly: true, type, location)
 {
     Ordinal = ordinal;
 }
示例#5
0
 public ClassSymbol(string name, ClassDeclarationSyntax declaration = null, bool isStatic = false, bool isIncluded = false, bool isAbstract = false, bool isSerializable = false, ClassSymbol parentSym = null, Text.TextLocation location = new Text.TextLocation())
     : base(name, location)
 {
     Declaration    = declaration;
     IsStatic       = isStatic;
     IsIncluded     = isIncluded;
     IsAbstract     = isAbstract;
     IsSerializable = isSerializable;
     ParentSym      = parentSym;
 }
示例#6
0
 public EnumSymbol(string name, Dictionary <string, int> values, TypeSymbol type, Text.TextLocation location = new Text.TextLocation())
     : base(name, location)
 {
     Values = values;
     Type   = type;
 }
 public FunctionSymbol(string name, ImmutableArray <ParameterSymbol> parameters, TypeSymbol type, FunctionDeclarationSyntax declaration = null, bool isPublic = false, string package = "", bool isVirtual = false, bool isOverride = false, Text.TextLocation location = new Text.TextLocation())
     : base(name, location)
 {
     Parameters  = parameters;
     Type        = type;
     Declaration = declaration;
     IsPublic    = isPublic;
     Package     = package;
     IsVirtual   = isVirtual;
     IsOverride  = isOverride;
 }
示例#8
0
 public TypeSymbol(string name, bool array = false, Text.TextLocation location = new Text.TextLocation())
     : base(name, location)
 {
     isArray = array;
 }