Home | History | Annotate | Download | only in dmd

Lines Matching refs:STC

257             StorageClass stc = p.storageClass;
258 if (!p.type && !stc)
259 stc = STC.auto_;
260 if (stcToBuffer(buf, stc))
408 StorageClass stc = p.storageClass;
409 if (!p.type && !stc)
410 stc = STC.auto_;
411 if (stcToBuffer(buf, stc))
915 hasSTC = stcToBuffer(buf, stcd.stc);
1443 if (d.storage_class & STC.local)
1488 if (d.storage_class & STC.local)
1533 if (!tf.next || f.storage_class & STC.auto_)
1725 if (stcToBuffer(buf, d.storage_class & ~STC.static_))
1741 if (stcToBuffer(buf, d.storage_class & ~STC.static_))
1800 if (stcToBuffer(buf, d.storage_class & ~STC.static_))
2263 if (!ve || !(ve.var.storage_class & STC.temp))
2831 bool stcToBuffer(OutBuffer* buf, StorageClass stc)
2833 //printf("stc: %llx\n", stc);
2836 if (stc & STC.scopeinferred)
2839 stc &= ~(STC.scope_ | STC.scopeinferred);
2841 if (stc & STC.returninferred)
2843 //buf.writestring((stc & STC.returnScope) ? "return-scope-inferred " : "return-ref-inferred ");
2844 stc &= ~(STC.return_ | STC.returninferred);
2850 const isout = (stc & STC.out_) != 0;
2851 //printf("bsr = %d %llx\n", buildScopeRef(stc), stc);
2852 final switch (buildScopeRef(stc))
2868 stc &= ~(STC.out_ | STC.scope_ | STC.ref_ | STC.return_);
2872 while (stc)
2874 const s = stcToString(stc);
2887 * Pick off one of the storage classes from stc,
2889 * stc is reduced by the one picked.
2891 string stcToString(ref StorageClass stc)
2895 StorageClass stc;
2903 SCstring(STC.auto_, Token.toString(TOK.auto_)),
2904 SCstring(STC.scope_, Token.toString(TOK.scope_)),
2905 SCstring(STC.static_, Token.toString(TOK.static_)),
2906 SCstring(STC.extern_, Token.toString(TOK.extern_)),
2907 SCstring(STC.const_, Token.toString(TOK.const_)),
2908 SCstring(STC.final_, Token.toString(TOK.final_)),
2909 SCstring(STC.abstract_, Token.toString(TOK.abstract_)),
2910 SCstring(STC.synchronized_, Token.toString(TOK.synchronized_)),
2911 SCstring(STC.deprecated_, Token.toString(TOK.deprecated_)),
2912 SCstring(STC.override_, Token.toString(TOK.override_)),
2913 SCstring(STC.lazy_, Token.toString(TOK.lazy_)),
2914 SCstring(STC.alias_, Token.toString(TOK.alias_)),
2915 SCstring(STC.out_, Token.toString(TOK.out_)),
2916 SCstring(STC.in_, Token.toString(TOK.in_)),
2917 SCstring(STC.manifest, Token.toString(TOK.enum_)),
2918 SCstring(STC.immutable_, Token.toString(TOK.immutable_)),
2919 SCstring(STC.shared_, Token.toString(TOK.shared_)),
2920 SCstring(STC.nothrow_, Token.toString(TOK.nothrow_)),
2921 SCstring(STC.wild, Token.toString(TOK.inout_)),
2922 SCstring(STC.pure_, Token.toString(TOK.pure_)),
2923 SCstring(STC.ref_, Token.toString(TOK.ref_)),
2924 SCstring(STC.return_, Token.toString(TOK.return_)),
2925 SCstring(STC.gshared, Token.toString(TOK.gshared)),
2926 SCstring(STC.nogc, "@nogc"),
2927 SCstring(STC.live, "@live"),
2928 SCstring(STC.property, "@property"),
2929 SCstring(STC.safe, "@safe"),
2930 SCstring(STC.trusted, "@trusted"),
2931 SCstring(STC.system, "@system"),
2932 SCstring(STC.disable, "@disable"),
2933 SCstring(STC.future, "@__future"),
2934 SCstring(STC.local, "__local"),
2938 const StorageClass tbl = entry.stc;
2939 assert(tbl & STC.visibleStorageClasses);
2940 if (stc & tbl)
2942 stc &= ~tbl;
2946 stc = %llx\n", stc);
3149 if (stcToBuffer(buf, pl.stc))
3184 if (p.storageClass & STC.auto_)
3187 StorageClass stc = p.storageClass;
3188 if (p.storageClass & STC.in_)
3191 if (global.params.previewIn && p.storageClass & STC.ref_)
3192 stc &= ~STC.ref_;
3194 else if (p.storageClass & STC.lazy_)
3196 else if (p.storageClass & STC.alias_)
3200 stc &= ~STC.shared_;
3202 if (stcToBuffer(buf, stc & (STC.const_ | STC.immutable_ | STC.wild | STC.shared_ |
3203 STC.return_ | STC.returninferred | STC.scope_ | STC.scopeinferred | STC.out_ | STC.ref_ | STC.returnScope)))
3206 if (p.storageClass & STC.alias_)
3220 typeToBuffer(p.type, p.ident, buf, hgs, (stc & STC.in_) ? MODFlags.const_ : 0);