// IExpression public Scope ReturningScope() { if (CodeType == null) { return(parseInfo.TranslateInfo.PlayerVariableScope); } else { return(CodeType.GetObjectScope()); } }
public DefinedConstructor(ParseInfo parseInfo, CodeType type, DeltinScriptParser.ConstructorContext context) : base( type, new LanguageServer.Location(parseInfo.Script.Uri, DocRange.GetRange(context.name)), context.accessor()?.GetAccessLevel() ?? AccessLevel.Private) { this.parseInfo = parseInfo; this.context = context; CallInfo = new CallInfo(this, parseInfo.Script); ConstructorScope = type.GetObjectScope().Child(); if (Type is DefinedType) { ((DefinedType)Type).AddLink(DefinedAt); } }
public Scope ReturningScope() => CodeType?.GetObjectScope() ?? _parseInfo.TranslateInfo.PlayerVariableScope;
public Scope ReturningScope() => baseType?.GetObjectScope();